{"$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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"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":"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":"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":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"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":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_expr (cyclomatic 300): Writer::write_expr has cyclomatic complexity 300 (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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2445}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f8853414ecf1df4ad696f08090aa38eb4a7bb8ce63cf497a4b4f35a96da93c"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::next_block (cyclomatic 290): Frontend::next_block has cyclomatic complexity 290 (threshold 15). Of this number, 288 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bae12ec0178af241190741b47e9115f91d31fc1b2498de2bf3ebd23d849bd69"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockContext::cache_expression_value (cyclomatic 251): BlockContext::cache_expression_value has cyclomatic complexity 251 (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":"naga/src/back/spv/block.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e671691ddbba3c5a7c6b0c27495a1decc1b3c13c35678612589dd1e3b1153da"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator::validate_expression (cyclomatic 219): Validator::validate_expression has cyclomatic complexity 219 (threshold 15). Of this number, 213 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. 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":"naga/src/valid/expression.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff26223ba81edb44dd509802d2bd7cdc909d470c8750e8e9ecea0c63181f91b0"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::put_expression (cyclomatic 207): Writer::put_expression has cyclomatic complexity 207 (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":"naga/src/back/msl/writer.rs"},"region":{"startLine":2218}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af75d132dd50d0a5ddaa56e4ef5932f9959595bcb0f3e62bec692aa803e1f26"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_functions (cyclomatic 190): Writer::write_functions has cyclomatic complexity 190 (threshold 15). To reduce it, separate the cases: extract each independent 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":7050}}}],"partialFingerprints":{"codehealthFindingId/v1":"48727a5bba0a4278c82869874fac7d3847a4f5ff77e03caef4997aa8fa0d1e47"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::front::glsl::builtins::inject_standard_builtins (cyclomatic 177): naga::front::glsl::builtins::inject_standard_builtins has cyclomatic complexity 177 (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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94a32980894902c3ff9a4e8d02bb5daad7ea78520ead358c0b2eb91731c6813"}},{"ruleId":"D1","level":"warning","message":{"text":"Queue::process (cyclomatic 177): Queue::process has cyclomatic complexity 177 (threshold 15). To reduce it, separate the cases: extract each independent 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":"wgpu-hal/src/gles/queue.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ea5e4193841508ece6fde6cfadbc0b383b12c19ef3cf0882da672172c0a225"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator::validate_block_impl (cyclomatic 149): Validator::validate_block_impl has cyclomatic complexity 149 (threshold 15). To reduce it, separate the cases: extract each independent 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":"naga/src/valid/function.rs"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55433de8af8572576a8da710b26f299add8132eb563d4d2d56183c10d33d5bc"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_math_expression (cyclomatic 135): Writer::write_math_expression has cyclomatic complexity 135 (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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3271}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfde02d7804057af53b5028161c29ebcf80fa529859d9234010facfb8ff7a691"}},{"ruleId":"D1","level":"warning","message":{"text":"CapabilitiesQuery::new (cyclomatic 135): CapabilitiesQuery::new has cyclomatic complexity 135 (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":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"4161b9a731ae517d8dfde685e82f2becc18c027ec27dee931a8d759d4796d2d0"}},{"ruleId":"D1","level":"warning","message":{"text":"VaryingContext::validate_impl (cyclomatic 133): VaryingContext::validate_impl has cyclomatic complexity 133 (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":"naga/src/valid/interface.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6cb76f478c632b48a17d9907390925c9382efaac185e8038ffb643c9e4a0f22"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_expr (cyclomatic 132): Writer::write_expr has cyclomatic complexity 132 (threshold 15). To reduce it, separate the cases: extract each independent 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3939}}}],"partialFingerprints":{"codehealthFindingId/v1":"da720493eaabdd3ec8550302a83c1f36f4d9ddc7047ecb80301cf7a3a01259fd"}},{"ruleId":"D1","level":"warning","message":{"text":"Error::as_parse_error (cyclomatic 125): Error::as_parse_error has cyclomatic complexity 125 (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":"naga/src/front/wgsl/error.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"83198729e679ca7d9a051de523ef4e8429ed28b9cec5a04a373266ab6fcd3324"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_stmt (cyclomatic 123): Writer::write_stmt has cyclomatic complexity 123 (threshold 15). To reduce it, separate the cases: extract each independent 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2388}}}],"partialFingerprints":{"codehealthFindingId/v1":"094027d6d36ea4f2e86698537ad42db5c4567571f9b923cdfb10246dba9888c4"}},{"ruleId":"D1","level":"warning","message":{"text":"PrivateCapabilities::map_texture_format (cyclomatic 122): PrivateCapabilities::map_texture_format has cyclomatic complexity 122 (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":"wgpu-hal/src/vulkan/conv.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52740add4fbfa9c2b48e724e6b7fe1f4816b8114dbf81a0653bd23dcd9a6076"}},{"ruleId":"D1","level":"warning","message":{"text":"PrivateTextureFormatCapabilities::map_format (cyclomatic 120): PrivateTextureFormatCapabilities::map_format has cyclomatic complexity 120 (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":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cf3c903fe8cc973216ac293e386a15f809602a0e3f9770f7a91cfcf4e8c97e"}},{"ruleId":"D1","level":"warning","message":{"text":"ConstantEvaluator::cast (cyclomatic 119): ConstantEvaluator::cast has cyclomatic complexity 119 (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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":2478}}}],"partialFingerprints":{"codehealthFindingId/v1":"03be227b50a4ace10ef75a809aad36d8d3270dcd3bf8c5897ecddb6685e00408"}},{"ruleId":"D1","level":"warning","message":{"text":"ConstantEvaluator::binary_op (cyclomatic 119): ConstantEvaluator::binary_op has cyclomatic complexity 119 (threshold 15). Of this number, 116 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"c669881364251587a7304c38ff8eecf2fbc5eb3a6b0176a19f8bcca14846f668"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_render_pipeline_or_error_inner (cyclomatic 105): Device::create_render_pipeline_or_error_inner has cyclomatic complexity 105 (threshold 15). To reduce it, separate the cases: extract each independent 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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4737}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b3b1377091decf1faa032fdd58aa2d2f1767e145e1f9a7b345f823946277db"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_stmt (cyclomatic 103): Writer::write_stmt has cyclomatic complexity 103 (threshold 15). To reduce it, separate the cases: extract each independent 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb3769d811208e1c4b6e05b72ce2de94cca2c4edd268775b51d569fc4789fce"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_stmt (cyclomatic 103): Writer::write_stmt has cyclomatic complexity 103 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"f317b0622f7f8a5ec0335ac3fef2628554be7e447a75e97d5699b0d0ae349364"}},{"ruleId":"D1","level":"warning","message":{"text":"ResolveContext::resolve (cyclomatic 103): ResolveContext::resolve has cyclomatic complexity 103 (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":"naga/src/proc/typifier.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d704d43811145fd8a721e9693cd87c43ab6efe40289b4353cb39f36eb35177"}},{"ruleId":"D1","level":"warning","message":{"text":"Adapter::expose (cyclomatic 103): Adapter::expose has cyclomatic complexity 103 (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":"wgpu-hal/src/dx12/adapter.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6b2499d7615d0ebf04405765174eed70de901e02acf975eaaed52008b12a63"}},{"ruleId":"D1","level":"warning","message":{"text":"Adapter::expose (cyclomatic 96): Adapter::expose has cyclomatic complexity 96 (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":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde9ff744012fae601967f008a1c60c6418684802bead64000ccdd85a75e9f93"}},{"ruleId":"D1","level":"warning","message":{"text":"ConstantEvaluator::math (cyclomatic 93): ConstantEvaluator::math has cyclomatic complexity 93 (threshold 15). Of this number, 86 points are the body\u0027s own statements and 7 belong to 4 function items inside it that branch. 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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"292f26ae468ebe382e61fce10ae8b0cf5e0eaaa7ecd03c039635391437edfb5c"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::front::wgsl::parse::conv::map_predeclared_type (cyclomatic 93): naga::front::wgsl::parse::conv::map_predeclared_type has cyclomatic complexity 93 (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":"naga/src/front/wgsl/parse/conv.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"472a8952e3a2024465af4a879cffe4699a66fe66b3b14c96da471571bd269a90"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::front::glsl::builtins::inject_common_builtin (cyclomatic 91): naga::front::glsl::builtins::inject_common_builtin has cyclomatic complexity 91 (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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"da77bf791b4c41cd7b69c561ab19b203815c18ce407bf1d64e24ac41f2fe173b"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::put_block (cyclomatic 90): Writer::put_block has cyclomatic complexity 90 (threshold 15). To reduce it, separate the cases: extract each independent 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":4133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a201fcd68f879383ab61c33390d828003e876c726a3cea19de4d751be8b3a04"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer::next (cyclomatic 90): Lexer::next has cyclomatic complexity 90 (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":"naga/src/front/glsl/lex.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"9330720a5db5ab978edaba62c3b48838f7abbfac69073189937be47929a638d7"}},{"ruleId":"D1","level":"warning","message":{"text":"Interface::check_stage (cyclomatic 89): Interface::check_stage has cyclomatic complexity 89 (threshold 15). To reduce it, separate the cases: extract each independent 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":"wgpu-core/src/validation.rs"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fea17b32a353cbcbf3329debd7c3d7edb534a2238fb87105e57442b3ddfec12"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator::validate_type (cyclomatic 86): Validator::validate_type has cyclomatic complexity 86 (threshold 15). To reduce it, separate the cases: extract each independent 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":"naga/src/valid/type.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"211151470b50da2f31c7a6053234fbe4b0616ede5e0de8b5e5c3dfb213f3b98a"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockContext::write_block (cyclomatic 84): BlockContext::write_block has cyclomatic complexity 84 (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":"naga/src/back/spv/block.rs"},"region":{"startLine":3560}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37329ed1aedf8ca756f21bba5f3b42d6cd970ad8cfe1d212182854aafba6861"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_expr_plain_form (cyclomatic 83): Writer::write_expr_plain_form has cyclomatic complexity 83 (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":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbe0ce13347038fe158ad11eac914a2b7131be1f83b7f72676a9a76d7a9c85c"}},{"ruleId":"D1","level":"warning","message":{"text":"TextureFormat::guaranteed_format_features (cyclomatic 82): TextureFormat::guaranteed_format_features has cyclomatic complexity 82 (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":"wgpu-types/src/texture/format.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd47631239803d58f063984a90d7d219f5cfe537fa6288961cbf3ae7e2c9d03"}},{"ruleId":"D1","level":"warning","message":{"text":"StatementGraph::add (cyclomatic 79): StatementGraph::add has cyclomatic complexity 79 (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":"naga/src/back/dot/mod.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a6d862ec76eac0aa800799679568be067c66754620a1622e7d4d303a33fc69"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator::validate_entry_point (cyclomatic 79): Validator::validate_entry_point has cyclomatic complexity 79 (threshold 15). To reduce it, separate the cases: extract each independent 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":"naga/src/valid/interface.rs"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"f755b005d928b605150ba787e0f5fd0a71faf285d281ab4311daf1efba66a2e4"}},{"ruleId":"D1","level":"warning","message":{"text":"Lowerer::call_builtin (cyclomatic 74): Lowerer::call_builtin has cyclomatic complexity 74 (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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3142}}}],"partialFingerprints":{"codehealthFindingId/v1":"279ad3deb1d870cf8d4000c8cec9c6baf969efbf74c3d661bfb9db71bbd73e84"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::map_binding (cyclomatic 73): Writer::map_binding has cyclomatic complexity 73 (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":"naga/src/back/spv/writer.rs"},"region":{"startLine":3219}}}],"partialFingerprints":{"codehealthFindingId/v1":"799475f73fcbfdf3e6bf5117e0002b0634bca835f46365ba18a287b6a4c9383a"}},{"ruleId":"D1","level":"warning","message":{"text":"Context::lower_inner (cyclomatic 71): Context::lower_inner has cyclomatic complexity 71 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/context.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"646030d4d71bf16a025770aa63ec4011fccae653eb6c33ec1f5978dfcd8ced2f"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::front::glsl::builtins::inject_builtin (cyclomatic 70): naga::front::glsl::builtins::inject_builtin has cyclomatic complexity 70 (threshold 15). To reduce it, separate the cases: extract each independent 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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"62538b2abe9ed1f81a5f2c671393d828cd9563c91864e6fbbca610e72b87f823"}},{"ruleId":"D1","level":"warning","message":{"text":"FeaturesManager::check_availability (cyclomatic 69): FeaturesManager::check_availability has cyclomatic complexity 69 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/features.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdeaa4224859679d6ea21e667ca6731616c473aeee1256346ec82fbb156bd84c"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::back::dot::write_function_expressions (cyclomatic 64): naga::back::dot::write_function_expressions has cyclomatic complexity 64 (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":"naga/src/back/dot/mod.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd3e07bb871a44f9808b36e1961f30489e7bc45dbe652158867c14b676363fa"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::collect_required_features (cyclomatic 62): Writer::collect_required_features has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/features.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64a632399be3d7a14bd1297070d7403f0480a38e8382c1548653ae1ed84380b"}},{"ruleId":"D1","level":"warning","message":{"text":"RenderPassInfo::start (cyclomatic 59): RenderPassInfo::start has cyclomatic complexity 59 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddb6b6a39751bae794f90c557796588d3d5066813fd0defce676a89ebce7bfa"}},{"ruleId":"D1","level":"warning","message":{"text":"InstanceShared::inspect (cyclomatic 59): InstanceShared::inspect has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent 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":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3b15b330fccf0cfc777a81969d84b19fb49827168ee2ab103fd5da7b7f0284"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_function (cyclomatic 57): Writer::write_function has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent 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":"naga/src/back/spv/writer.rs"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea0494de230384cfbaa186dae888bb9e0c62c99eadff2d009d4d272807a2c26"}},{"ruleId":"D1","level":"warning","message":{"text":"Player::process (cyclomatic 57): Player::process has cyclomatic complexity 57 (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":"player/src/lib.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fdbdf6484d35698dba6c98728d8840b5eb494800d6751ba4f5f9e632b41d38"}},{"ruleId":"D1","level":"warning","message":{"text":"Lowerer::statement (cyclomatic 55): Lowerer::statement has cyclomatic complexity 55 (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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"fecb7f9eb57ddb58b89964711b59e4b803c7802b952318d44c220af9111e30df"}},{"ruleId":"D1","level":"warning","message":{"text":"Adapter::texture_format_capabilities (cyclomatic 55): Adapter::texture_format_capabilities has cyclomatic complexity 55 (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":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ea76a251ef1928ce5ac66a7f6960d6dd361a5611019ad88c90f2d6e70e0903"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::parse (cyclomatic 53): Frontend::parse has cyclomatic complexity 53 (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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"8638800b1f500968e22591bc2e69cd0eb9522568cb4e90f2ad09eeb7c5d1785e"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser::global_decl (cyclomatic 53): Parser::global_decl has cyclomatic complexity 53 (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":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"583dc0272b5523cd637edd345c8a93f5ed38776bfc06bbeff40159d60f3205c7"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionInfo::process_expression (cyclomatic 52): FunctionInfo::process_expression has cyclomatic complexity 52 (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":"naga/src/valid/analyzer.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59c81fa0c1cb30e4917c53a94ee907137afd1205e6c1a883b20c4465ea9cb88"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionInfo::process_block (cyclomatic 52): FunctionInfo::process_block has cyclomatic complexity 52 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/analyzer.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"957b64898fdda04f285bb81453d8717e3f451f63d6512b9c3480c72d96982697"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator::validate_global_var (cyclomatic 52): Validator::validate_global_var has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent 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":"naga/src/valid/interface.rs"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e6c8b8c61ecf13f5dc4346e6747bf3c650642513942864321c7cdff927cd61"}},{"ruleId":"D1","level":"warning","message":{"text":"Adapter::texture_format_capabilities (cyclomatic 50): Adapter::texture_format_capabilities has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent 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":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"8410de98c3a9a826ced4f1c3e34fd31ebab892f47bddfc2e43fc9ab4c6b7dbe6"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_render_pipeline (cyclomatic 50): Device::create_render_pipeline has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent 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":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ac79f4277c26f0f0cd6374fe8a917b7f16e54effd1a54f5afbaacd8603120d"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::validate_texture_descriptor_inner (cyclomatic 49): Device::validate_texture_descriptor_inner has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent 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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":1827}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ee47dd9389f7dd019f8424a9f6eae7f6cfb9c380af9aa4646fda07214fb4ed"}},{"ruleId":"D1","level":"warning","message":{"text":"wgpu_core::command::ray_tracing::iter_blas (cyclomatic 49): wgpu_core::command::ray_tracing::iter_blas has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent 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":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"51068f714d66c09e5f648724e71a33f966b8cd0c8114c62d4e57ea93c3aafc77"}},{"ruleId":"D1","level":"warning","message":{"text":"PhysicalDeviceProperties::get_required_extensions (cyclomatic 48): PhysicalDeviceProperties::get_required_extensions has cyclomatic complexity 48 (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":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c1d20159d17c9ab5aa9561464d847931292e4422d4a8f590c9093023cfde13"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write (cyclomatic 47): Writer::write has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0023a7e6edd6fc69e20168c15f32c9082d79696ef6cde5cf4086b0a67d3a0cc"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::front::wgsl::parse::lexer::consume_token (cyclomatic 47): naga::front::wgsl::parse::lexer::consume_token has cyclomatic complexity 47 (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":"naga/src/front/wgsl/parse/lexer.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe0b0ed9c423bcd5bc00376b977c0ad1033ba3af27099aca10889b1c91a60b9"}},{"ruleId":"D1","level":"warning","message":{"text":"Adapter::device_from_raw (cyclomatic 47): Adapter::device_from_raw has cyclomatic complexity 47 (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":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":2663}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a09c40295cbc0ff4cf86b8b2547a1f08e0b11496f4b4295d6568cb39ff36e0"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::back::pipeline_constants::adjust_stmt (cyclomatic 46): naga::back::pipeline_constants::adjust_stmt has cyclomatic complexity 46 (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":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1329c5a544574e36b03192af0260b4dc809fa4ec6341a73f32e9fc626696005"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::compact::compact (cyclomatic 46): naga::compact::compact has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/mod.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd94ef92d5d94f21acc017d784a0ea567a6a39b094fb4a7dc354fd8d0fa38b8"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsingContext::parse_statement (cyclomatic 45): ParsingContext::parse_statement has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/functions.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b670ae647a421534cdf0221a74bfa9147f29fea240b01330a2cd9cd5901425"}},{"ruleId":"D1","level":"warning","message":{"text":"Texture::create_view_inner (cyclomatic 45): Texture::create_view_inner has cyclomatic complexity 45 (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":"wgpu-core/src/resource.rs"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"22777063d49d68719aa349a96779ab03e881be7c4641b72f381f661c99340d01"}},{"ruleId":"D1","level":"warning","message":{"text":"wgpu_xtask::cts::run_cts (cyclomatic 45): wgpu_xtask::cts::run_cts has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/cts.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cff577b9860452b257a8c911792bfba7067bc675b2b761a66f2efa372959971"}},{"ruleId":"D1","level":"warning","message":{"text":"ResolvedBinding::try_fmt (cyclomatic 44): ResolvedBinding::try_fmt has cyclomatic complexity 44 (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":"naga/src/back/msl/mod.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9337f458c03d3fb98eecb34621ca9abda148d7537009902e3e20b608cc0629"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::front::glsl::builtins::inject_double_builtin (cyclomatic 44): naga::front::glsl::builtins::inject_double_builtin has cyclomatic complexity 44 (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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff85282a9ca75592190fa21b4d0b9a1a1ad91f41b9f1fa07f6e7d69867a6c18"}},{"ruleId":"D1","level":"warning","message":{"text":"MacroCall::call (cyclomatic 43): MacroCall::call has cyclomatic complexity 43 (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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e94eb25cee7ba29d6c6ba2595faf434d5eff5130bfb69d2811e3b38770e50df"}},{"ruleId":"D1","level":"warning","message":{"text":"FeaturesManager::write (cyclomatic 42): FeaturesManager::write has cyclomatic complexity 42 (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":"naga/src/back/glsl/features.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"713e2333bd8b737b318942ae0a439456669c03d7ad39edbd302724627c10e53d"}},{"ruleId":"D1","level":"warning","message":{"text":"Lowerer::expression_for_reference (cyclomatic 42): Lowerer::expression_for_reference has cyclomatic complexity 42 (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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":2438}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea260fe9eacdac66aead7416f98b2fb76224e42299f281a42ce691ae38f18a8"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_logical_layout (cyclomatic 41): Writer::write_logical_layout has cyclomatic complexity 41 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":3814}}}],"partialFingerprints":{"codehealthFindingId/v1":"370f0e9410fef8cb9e18f83be10c367e714356ca05ac2fd551c6dc0fff719271"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::parse_image_sample (cyclomatic 41): Frontend::parse_image_sample has cyclomatic complexity 41 (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":"naga/src/front/spv/image.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"e431796c38faf4e658f2e90a0f150b54de13f714fee2dea48238677ea6f8ecfa"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator::validate_block_handles (cyclomatic 41): Validator::validate_block_handles has cyclomatic complexity 41 (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":"naga/src/valid/handles.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07c5f7bf0b7ce4418e15fc3353f3f965b769e2a39bde0c4a36444b5dc30700b"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_function (cyclomatic 40): Writer::write_function has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d825135ee7beac256edbf9302df825a9612009d1ef1a1a8bda30121628d9f3"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_enable_declarations (cyclomatic 39): Writer::write_enable_declarations has cyclomatic complexity 39 (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":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"9994992ddd2d1b8d7db781ef4187c9fa9b91e598883e8d4c64d24a6b16fb453a"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::common::wgsl::types::try_write_type_inner (cyclomatic 39): naga::common::wgsl::types::try_write_type_inner has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/common/wgsl/types.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb9aaca217dd60ea4464d1630bba67c0e2164fdb18b9da6ef1b555aeca6fabb"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::front::glsl::types::parse_type (cyclomatic 39): naga::front::glsl::types::parse_type has cyclomatic complexity 39 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 9 belong to 2 function items inside it that branch. 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":"naga/src/front/glsl/types.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f932284a255dde454024619e3907ec56a2b817256970a5dbdb504424b5accf"}},{"ruleId":"D1","level":"warning","message":{"text":"PhysicalDeviceFeatures::from_extensions_and_requested_features (cyclomatic 39): PhysicalDeviceFeatures::from_extensions_and_requested_features has cyclomatic complexity 39 (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":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7049d6837a6906fdb0d59db6c434e4b99833b1eb3cb564087857e114807caf5"}},{"ruleId":"D1","level":"warning","message":{"text":"PhysicalDeviceFeatures::to_wgpu (cyclomatic 39): PhysicalDeviceFeatures::to_wgpu has cyclomatic complexity 39 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c565546359d8f661d7eab021b0c6b74c87f025f8c1807cf534b04dadf33c15f"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator::validate_module_handles (cyclomatic 38): Validator::validate_module_handles has cyclomatic complexity 38 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/handles.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"634877c77bc59615866fa060e25a6b0f0908158899eaff721ed59cf7736e4f79"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::back::pipeline_constants::adjust_expr (cyclomatic 38): naga::back::pipeline_constants::adjust_expr has cyclomatic complexity 38 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce21f3922575b101406cb4ce040ef23bac1de50b1f9243c99cc1ca9dc47962c"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_pipeline_layout (cyclomatic 38): Device::create_pipeline_layout has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"89709358f13dcf70540814aa07fd434269c39e4a087364cd38a0902167ff4dd8"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::function_call (cyclomatic 37): Frontend::function_call has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75e4ece1802ee8533322f310df7820f19df04b565e93e66789a90f3bd4c11c5"}},{"ruleId":"D1","level":"warning","message":{"text":"ExpressionTracer::trace_expression (cyclomatic 36): ExpressionTracer::trace_expression has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/expressions.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40e3702eeffd6895c2c521f3e4183306067b21f693ae51c516fe724d40807ee"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionTracer::trace_block_impl (cyclomatic 36): FunctionTracer::trace_block_impl has cyclomatic complexity 36 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/statements.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c709a7fe45835baf363ca01a0e90e252e52b580557971219a3efa31126b1dfe7"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write (cyclomatic 35): Writer::write has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9a5781288679e3a9ef6a2d5008a60579fd31706e01c215dbab20b895bdee95"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeContext::fmt (cyclomatic 35): TypeContext::fmt has cyclomatic complexity 35 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: Writer::write_unpacking_function (cyclomatic 43) 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"d471a006b7d72deb623123316872df4468fe30ad587acd92e663ffaac520c595"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionMap::adjust_body (cyclomatic 35): FunctionMap::adjust_body has cyclomatic complexity 35 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/statements.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"b030b0c3bb871ff26818252be25addebdc3508f557aad9c32f606cf279b2fc5f"}},{"ruleId":"D1","level":"warning","message":{"text":"Resource::check_binding_use (cyclomatic 35): Resource::check_binding_use has cyclomatic complexity 35 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: Interface::populate (cyclomatic 59) 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":"wgpu-core/src/validation.rs"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4126fe2a45d9083febde9a143979a3259ed115b44bf18b98aaff69faf9b29f"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_bind_group_layout_impl (cyclomatic 34): Device::create_bind_group_layout_impl has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":3093}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f041ea7b951926bc128b26f9d405beba0f8f961b595a79c61599eec7715692"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandEncoder::begin_render_pass (cyclomatic 34): CommandEncoder::begin_render_pass has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2992ab1c2a5ff86ce562f5a719d0d67ab6d8586e11c189683f04f3c928a1cd2"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_wrapper_function (cyclomatic 33): Writer::write_wrapper_function has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/mesh_shader.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c69f81c166cd1ca2a3e888d5d0f5487bb16b263a9ed5d202354c4ef9784ff6c"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::back::glsl::conv::glsl_built_in (cyclomatic 33): naga::back::glsl::conv::glsl_built_in has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: naga::back::glsl::conv::glsl_storage_format (cyclomatic 41) 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":"naga/src/back/glsl/conv.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0690982c548d886f6a6f4f199e6081b601fca3a85aea466df648ef088fbbbcda"}},{"ruleId":"D1","level":"warning","message":{"text":"Lowerer::construct (cyclomatic 31): Lowerer::construct has cyclomatic complexity 31 (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":"naga/src/front/wgsl/lower/construction.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b8ec477abc4a84970e8371fbfce18626c7e5db5bdf7970e75bad3032ef97b4"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser::statement (cyclomatic 31): Parser::statement has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f2f048630875770b77396f4314e33d7a48ccb23e834d4a8eb170b46e860aef"}},{"ruleId":"D1","level":"warning","message":{"text":"naga_cli::bin::naga::run (cyclomatic 31): naga_cli::bin::naga::run has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga-cli/src/bin/naga.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4ef2782a9b425538b49d8ca252fb97d4df7f75bc9e6f83be50b2fc74af29a6"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandEncoder::update_bind_group_state (cyclomatic 31): CommandEncoder::update_bind_group_state has cyclomatic complexity 31 (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":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50f58a1729a61b67fd81c54e411ff17352dee11f9847f529a93494fda2f32ea"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockContext::write_as_expression (cyclomatic 30): BlockContext::write_as_expression has cyclomatic complexity 30 (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":"naga/src/back/spv/block.rs"},"region":{"startLine":2326}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe8152f22f4d92d4b95cd60f67b8a60febc8114a94fb04669f66de7b2cf9fc7"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::front::wgsl::parse::number::parse_hex_float_parts (cyclomatic 30): naga::front::wgsl::parse::number::parse_hex_float_parts has cyclomatic complexity 30 (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":"naga/src/front/wgsl/parse/number.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bc1455670efb071a21441ab08dac073aa80cf00d2bdfa4cd5e3c5cc49f34b1"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandEncoder::begin_render_pass_inner::fill_arc_desc (cyclomatic 30): CommandEncoder::begin_render_pass_inner::fill_arc_desc has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":1887}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d08b145520c846e3317ac60eb8b16136281d4108be5de23e96311095dbebfb"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_entry_point_mesh_shader_info (cyclomatic 29): Writer::write_entry_point_mesh_shader_info has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/mesh_shader.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd7d75e1e4399a02e1a31ed245d6162fce9ab352d33bde728a3e394c4928098"}},{"ruleId":"D1","level":"warning","message":{"text":"wgpu_core::command::render::encode_render_pass (cyclomatic 29): wgpu_core::command::render::encode_render_pass has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":2265}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50e27afb3f65f1d16a54a1f01e8f0db5749ce3e5a8aa3e103fbe1b9a5fb1642"}},{"ruleId":"D1","level":"warning","message":{"text":"Inner::create (cyclomatic 29): Inner::create has cyclomatic complexity 29 (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":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"edebd7b5106802aab66ed6765e9350eef2b0324ebf7e35e83271eb63b5fa0954"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_wrapped_binary_op (cyclomatic 28): Writer::write_wrapped_binary_op has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: Writer::write_unpacking_function (cyclomatic 43) 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":6144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b06cd86def4b9c59a3ccb1e87da01e561a942492d5cfa9ef05ca0462e015fd8"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::lookup_variable (cyclomatic 28): Frontend::lookup_variable has cyclomatic complexity 28 (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":"naga/src/front/glsl/variables.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa83d72479f87f039c15a1629000a93cc0ae1593a4f6b75e7ddec76cdaed2070"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::back::pipeline_constants::map_value_to_literal (cyclomatic 28): naga::back::pipeline_constants::map_value_to_literal has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a310dc810797fb80e878a664cb937529aa5a79a6b617cf8a57f8b2e3c6dfeae"}},{"ruleId":"D1","level":"warning","message":{"text":"player::bin::play::main (cyclomatic 27): player::bin::play::main 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":"player/src/bin/play.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadcd84e8470ad4c6cc668ced269f0aefdb1262fdb3443308b73ed7679c5b995"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_buffer_inner (cyclomatic 27): Device::create_buffer_inner has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa9df25a1f0fadbf873af20d48cbc1ddfe685d986c3b75c528f6c5dea734a41"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::texture_use_parameters (cyclomatic 27): Device::texture_use_parameters 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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4150}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d27fc4b95f4fcd3f86084ebccf1d4c15408535481bf0be9c07610dcf1aa27d"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandEncoder::begin_render_pass (cyclomatic 27): CommandEncoder::begin_render_pass 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":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a6e5f83b994abab38e52a09438139fafaf107a17a6177322cf7111140326d6"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::load_shader (cyclomatic 27): Device::load_shader has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: wgpu_hal::metal::device::convert_vertex_format_to_naga (cyclomatic 43) 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":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0a9c1d489fc3abad0dc519e7e35579beee3c03b53faab01374602ff61f0639"}},{"ruleId":"D1","level":"warning","message":{"text":"PhysicalDeviceFeatures::add_to_device_create (cyclomatic 27): PhysicalDeviceFeatures::add_to_device_create has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00b6879908946cde58f568fc23f66a91060e4635c46e452d1d52d309394abcc"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_global (cyclomatic 26): Writer::write_global has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"13890013485a323978a8cca8a08d5add83ded0021afe4242a4cf04e7a6c2c54b"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_attributes_to (cyclomatic 26): Writer::write_attributes_to has cyclomatic complexity 26 (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":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"569c39d15f3f011bb6bb109e04bbefc277b8f577fccb4a6b76399aea497dfa3e"}},{"ruleId":"D1","level":"warning","message":{"text":"Namer::reset (cyclomatic 26): Namer::reset has cyclomatic complexity 26 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/namer.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fac32e31df9021b66604202db89b16f24972cab10f7f315dda2f92f8bfb0baa"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::front::wgsl::parse::number::parse (cyclomatic 26): naga::front::wgsl::parse::number::parse has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/parse/number.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b27ade01254070493c88f503cc3686fe8154826a60943c743a4efd9c421c26"}},{"ruleId":"D1","level":"warning","message":{"text":"RenderBundle::execute (cyclomatic 26): RenderBundle::execute has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b06fc406bcf7a556d75abbab1d9312006d8250dd09e3d87b6fff6188c8e97d"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_render_pipeline (cyclomatic 26): Device::create_render_pipeline has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fe369ff0ac3c161cf8eb59279d04c4d0e79538277a9232393ee4a7a0295e5f"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_pipeline_layout (cyclomatic 26): Device::create_pipeline_layout has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: wgpu_hal::metal::device::convert_vertex_format_to_naga (cyclomatic 43) 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":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"0379789bbfd6d357c2f2af7bcd56320a514954826527e84be4d3957ef8cf1f1f"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_render_pipeline (cyclomatic 26): Device::create_render_pipeline has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d095a8098b4f3ef6108b959d0ec3a4442b9d8e45457b2910412ad20e74ca0f0"}},{"ruleId":"D1","level":"warning","message":{"text":"Instance::expose_adapter (cyclomatic 26): Instance::expose_adapter has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":2284}}}],"partialFingerprints":{"codehealthFindingId/v1":"be97b439ee265e9a905bade478075a6ca9b7c4f66782e1528efb5ddd4243dba3"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_function (cyclomatic 25): Writer::write_function 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b8bec7ee6445cf871fb0260f59d7d4be7f37fcdf31bb6926887f80886e07ff"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_ray_query_stmt (cyclomatic 25): Writer::write_ray_query_stmt 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":"naga/src/back/msl/ray.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8ad5d9c5bdc5d302ef54d1519eb51465363d2fa69e1bf32708a0e9dcd42f4a"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_wrapped_functions (cyclomatic 25): Writer::write_wrapped_functions 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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1999}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e887a1dda5b79b10f80b465d3488d9b183804aad2f9836634928d5329018aa7"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::process_entry_point (cyclomatic 25): Frontend::process_entry_point 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":"naga/src/front/spv/function.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f7d7aecff652700696ee3a644f77b336c3d45b246b45174c853a08ad2173cd"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator::validate_atomic (cyclomatic 25): Validator::validate_atomic 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":"naga/src/valid/function.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6cbe30095621db15da8ca6692032d0c7a03c7cf85cdbf57854851ace093d06"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::back::pipeline_constants::process_overrides (cyclomatic 25): naga::back::pipeline_constants::process_overrides 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":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23c76fc3f40ef6795cb65d863d03d6e1e54cb16d08c9c6b513871711ccb2da3"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandEncoder::encode_commands (cyclomatic 25): CommandEncoder::encode_commands has cyclomatic complexity 25 (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":"wgpu-core/src/command/mod.rs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"849790637d4ae8cffa51fb5f39fcbf12f97c42d2e45782f90fa6249af2d198e5"}},{"ruleId":"D1","level":"warning","message":{"text":"Instance::init_with_callback (cyclomatic 25): Instance::init_with_callback has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/instance.rs"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"de45a82095687329c04fe3d67486497bdbb6288b74e7b807e2b0a8d2deeeabd1"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::update_expressions_to_bake (cyclomatic 24): Writer::update_expressions_to_bake has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"037c05a1b291a110599022d5847890fb557b038257087209cbe6aa13011380fd"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_image_load (cyclomatic 24): Writer::write_image_load has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":4120}}}],"partialFingerprints":{"codehealthFindingId/v1":"54992918a45efa5b6afc7a4cf55d3d7c5cd3a9fe1489856d60f68479add347c5"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_global_variable (cyclomatic 24): Writer::write_global_variable has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":3553}}}],"partialFingerprints":{"codehealthFindingId/v1":"6791c6b9b1f59f3dad19c0925ef33a3657a81069ff5ede01bd9037fa323477df"}},{"ruleId":"D1","level":"warning","message":{"text":"Queue::submit_inner (cyclomatic 24): Queue::submit_inner has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/queue.rs"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d3a3e5a5c8293266c09199f0b98429081e5b9cf0ac366de4e3b8b069987d7c"}},{"ruleId":"D1","level":"warning","message":{"text":"Interface::new (cyclomatic 24): Interface::new has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: Interface::populate (cyclomatic 59) 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":"wgpu-core/src/validation.rs"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd35297a68036b055e78c759baaabe4626518b6fbe4eb76b17470e1bed01e096"}},{"ruleId":"D1","level":"warning","message":{"text":"wgpu_core::command::ray_tracing::build_acceleration_structures (cyclomatic 24): wgpu_core::command::ray_tracing::build_acceleration_structures has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ca3bc55be8ace8f3897074de56e1fa9c1ce6eab5484431d9401ba87d90d0a7"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_varying (cyclomatic 23): Writer::write_varying 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b6c904519742585b1e81fbb9c35d9065f8679f1604e42dd1b5af81ec72e6b3"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_switch (cyclomatic 23): Writer::write_switch 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"143e140072de4e533c87cf97cabfd606021aedd057443e7f91f6e366e1c6ce6a"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_std140_compat_type_declaration (cyclomatic 23): Writer::write_std140_compat_type_declaration 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":"naga/src/back/spv/writer.rs"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd4bb8956e3f0f2721ffb88e198230beeefbbb56c5fde865a375259456969f0"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::parse_global_variable (cyclomatic 23): Frontend::parse_global_variable has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: Frontend::next_decoration (cyclomatic 25) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":2941}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e57984a5e94792b088177b6fa7b31ad1b8af7715786040e786e0bca77f5221"}},{"ruleId":"D1","level":"warning","message":{"text":"ConstantEvaluator::unary_op (cyclomatic 23): ConstantEvaluator::unary_op has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: ConstantEvaluator::try_eval_and_append_impl (cyclomatic 30) 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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":2792}}}],"partialFingerprints":{"codehealthFindingId/v1":"914104b34397204856f778a53ca1d1f384fa0b165e54589d0e2cd0c32ebbbdd5"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_bind_group (cyclomatic 23): Device::create_bind_group has cyclomatic complexity 23 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf49434ec60c5235033187359b32ecd1aaf051634ce70d73f10aadb0c52e4fc9"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandEncoder::begin_render_pass (cyclomatic 23): CommandEncoder::begin_render_pass 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":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe0375230f281414f7c1a777dc1010feba92fccaed97a227500eb3d775e2ca7"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_bind_group (cyclomatic 23): Device::create_bind_group has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: wgpu_hal::metal::device::convert_vertex_format_to_naga (cyclomatic 43) 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":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b90f1b8c06ad74eddbef81fe6f204327e71ea94167862c87f574f70d2e7b966"}},{"ruleId":"D1","level":"warning","message":{"text":"wgpu_hal::metal::icb_probe::supports_render_icb (cyclomatic 23): wgpu_hal::metal::icb_probe::supports_render_icb has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/icb_probe.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1c1319e15e7283d6aa52aa1cb275c7fcd92a58df150ec41c2f70ba30678b46"}},{"ruleId":"D1","level":"warning","message":{"text":"wgpu_hal::vulkan::instance::debug_utils_messenger_callback (cyclomatic 23): wgpu_hal::vulkan::instance::debug_utils_messenger_callback has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/instance.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efb38f283723823a29a329dcc01732b8f99a383a061cfba16143cc6c1c7b41d"}},{"ruleId":"D1","level":"warning","message":{"text":"lock_analyzer::main (cyclomatic 22): lock_analyzer::main has cyclomatic complexity 22 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock-analyzer/src/main.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a17519db6aee5293bb03dbf6c4365d8f28c2a69b8b8a30a99514a34d0d205e1"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_wrapped_binary_ops (cyclomatic 22): Writer::write_wrapped_binary_ops has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6ebd0f60f2f1dff9472d949957e2c87ab5faf07293f3d4096d139bf0eb790b"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_possibly_const_expression (cyclomatic 22): Writer::write_possibly_const_expression has cyclomatic complexity 22 (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":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fc8a6ed4e88c2f198095b1df893987a878122ae7546356e2f4db17b2b75210"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsingContext::parse_type_qualifiers (cyclomatic 22): ParsingContext::parse_type_qualifiers has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: naga::front::glsl::parser::types::map_image_format (cyclomatic 41) 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":"naga/src/front/glsl/parser/types.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"46da7dc467c54e9c97a31f33958f9748fc112165d2b20deec5ef07e3534b5e6e"}},{"ruleId":"D1","level":"warning","message":{"text":"Module::analyze_mesh_shader_info (cyclomatic 22): Module::analyze_mesh_shader_info has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: MathFunction::argument_count (cyclomatic 79) 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":"naga/src/proc/mod.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aab20cc658814d85a943b2c71cedd1adbe4837797aa06f8687f21b50fffdb32"}},{"ruleId":"D1","level":"warning","message":{"text":"Resource::derive_binding_type (cyclomatic 22): Resource::derive_binding_type has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: Interface::populate (cyclomatic 59) 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":"wgpu-core/src/validation.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d8fd27147595e2549dca607f6956b087cd7414c72175b53ab6875308688255"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandEncoder::update_root_elements (cyclomatic 22): CommandEncoder::update_root_elements has cyclomatic complexity 22 (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":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"e185a9eae26d9dd172e5c758651eb56d9d5d703879a473362492bb99f991fa2a"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::put_literal (cyclomatic 21): Writer::put_literal has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: Writer::write_unpacking_function (cyclomatic 43) 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":2016}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c189c4e4f15d7642e8477787de03154f6d5ce59987977d9edaafc44f3994cc"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator::validate_function (cyclomatic 21): Validator::validate_function has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/function.rs"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fad1fe01f19f14d89b550b2ac739534a065f94dd5e19d293e4e60c885f13e01"}},{"ruleId":"D1","level":"warning","message":{"text":"Buffer::try_map_async (cyclomatic 21): Buffer::try_map_async has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/resource.rs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"95addba01194791961a6809bda6e26bd857d254e9307a4080e2650b2fc131060"}},{"ruleId":"D1","level":"warning","message":{"text":"wgpu_core::track::texture::update (cyclomatic 21): wgpu_core::track::texture::update has cyclomatic complexity 21 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/texture.rs"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc858abb896b5f26b373828d5c22c5c0489a9cc9bd4e704c59047883f2dcd20a"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandEncoder::set_render_pipeline (cyclomatic 21): CommandEncoder::set_render_pipeline has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"984ccf8da7654d274bca9443f39c20dc28521876fb9d3f038f414ef585aec502"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_possibly_const_expr (cyclomatic 20): Writer::write_possibly_const_expr has cyclomatic complexity 20 (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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2352}}}],"partialFingerprints":{"codehealthFindingId/v1":"4251bdd52e12102e09340e3c184ae635d962617cf0269b4f94dbb89def72a52d"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_type_defs (cyclomatic 20): Writer::write_type_defs has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: Writer::write_unpacking_function (cyclomatic 43) 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":4883}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab5fd0207e90ce3b21aba649f5e2518003ba6066b41113fb261791fd1b535b4"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_wrapped_binary_op (cyclomatic 20): Writer::write_wrapped_binary_op has cyclomatic complexity 20 (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":"naga/src/back/spv/writer.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9f277f4a26c957ff1e1a6d9291de6d619c0996e0446c962a3952b1bae52a33"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write (cyclomatic 20): Writer::write 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":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe349f0cfde3f8cdf71a7dcc69b48731b8bfa2c92abc939f6b8d135699b97893"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::handle_directive (cyclomatic 20): Frontend::handle_directive has cyclomatic complexity 20 (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":"naga/src/front/glsl/parser.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3b86381949d47b4b32284c0abbf141ee64700dfe16f673d32c1c713927f2ee"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::add_global_var (cyclomatic 20): Frontend::add_global_var 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":"naga/src/front/glsl/variables.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30eac5cc337f2e0a1ebec9404c23027ae55de926872295f5adadf4eec6ac942"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsingContext::parse_declaration (cyclomatic 20): ParsingContext::parse_declaration 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":"naga/src/front/glsl/parser/declarations.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb3a09a561bf00634bcb58807f9fd6ecad717123c4c025b8b2805abc5986309"}},{"ruleId":"D1","level":"warning","message":{"text":"Lowerer::lower (cyclomatic 20): Lowerer::lower 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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec68601f56cd0178b7d4d483a2e1c08ebb0c60e3043cd58d7cffc03f2533633"}},{"ruleId":"D1","level":"warning","message":{"text":"Lowerer::function (cyclomatic 20): Lowerer::function 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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"042adefd783ecff799c012e584e13c0b3dbf94576e49e246a66fd1180c3209a8"}},{"ruleId":"D1","level":"warning","message":{"text":"Lowerer::finalize_type (cyclomatic 20): Lowerer::finalize_type has cyclomatic complexity 20 (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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":2865}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8c9a785353f5612e2f40afeccecaf4985fe161dcfe01636d678d9f0da45036"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_bind_group_inner (cyclomatic 20): Device::create_bind_group_inner has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":3847}}}],"partialFingerprints":{"codehealthFindingId/v1":"685655687771cfd6d95869e9fcd21e37202c69cbbaf1ca4ab52b14ef80cff9bd"}},{"ruleId":"D1","level":"warning","message":{"text":"Instance::request_adapters (cyclomatic 20): Instance::request_adapters has cyclomatic complexity 20 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/instance.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b14ecd5c3de4a9a19dfbb404b55790eebf28331a553b1fc319fb06f813dab08"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_buffer (cyclomatic 20): Device::create_buffer 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":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d6a23aeb36399bcf870008411f47792ec215fbd64874b227f53457f85f7286"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_texture (cyclomatic 20): Device::create_texture 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":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8de15cae805745dc932e75ee6fb48e5c38ddacc24233419a6c34a3e3b94e792"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_storage_store (cyclomatic 19): Writer::write_storage_store has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/storage.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"756183fcd9c2db1e3ce6aa2d0b95581a46615aa57c8f146d70627db04309f601"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::update_expressions_to_bake (cyclomatic 19): Writer::update_expressions_to_bake has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f49fff4fe7d9df84c8cc47ea8ce396538dc4ac9aa0b75043786c0f7dfa08cd"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockContext::write_image_sample (cyclomatic 19): BlockContext::write_image_sample has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/image.rs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddf6092838796a168ee9f52c70a958bf55a35ebd14170134da41e5e181463d4"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_entry_point (cyclomatic 19): Writer::write_entry_point 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":"naga/src/back/spv/writer.rs"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"52604c27866087de310120793dd4af96d0a7a2c5242cd6dc60af24c37f3f58c3"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::parse_function (cyclomatic 19): Frontend::parse_function has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/function.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"881026de2fa01be3e64c296bb82c69524b717f3d6599d67f95f41d6d6343266a"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreDevice::create_bind_group (cyclomatic 19): CoreDevice::create_bind_group has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd8d3095e2165fe4d7363b68dc24ba40a547bf78e40871ca7727b4faeaac9c5"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandBufferMutable::validate_acceleration_structure_actions (cyclomatic 19): CommandBufferMutable::validate_acceleration_structure_actions has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"978b3197ce01b6568711feb6199ee743019301567c579016cfb9ed65e781a95c"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_ray_tracing_pipeline_inner (cyclomatic 19): Device::create_ray_tracing_pipeline_inner 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":"wgpu-core/src/device/ray_tracing.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1083ff8b7d21fa1e0af631eb943da66462dc01ad7e156d96eeb7395ca3f0fae"}},{"ruleId":"D1","level":"warning","message":{"text":"Surface::configure (cyclomatic 19): Surface::configure 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":"wgpu-hal/src/metal/surface.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"3409a249202b05ac120d794ee2adc48d6e6ac46d316ce2ed26a1e6ada3d4d91c"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockContext::write_access_chain (cyclomatic 18): BlockContext::write_access_chain has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":2598}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de21ad03001e03ebef8aa61c35816567938b72f865e45d9e95dd14d9d0ef70d"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockContext::write_image_query (cyclomatic 18): BlockContext::write_image_query has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/image.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8ef525eb2c5c868edc0fdbdd638b0e52aa85b6a5130b41473f3a5a2a602ca1"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::request_type_capabilities (cyclomatic 18): Writer::request_type_capabilities has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64f85f3c84588ea97c7d9b8c475b235119c9e03766b2555502d8edb15c38de8"}},{"ruleId":"D1","level":"warning","message":{"text":"Lowerer::bitcast_operand (cyclomatic 18): Lowerer::bitcast_operand has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":4788}}}],"partialFingerprints":{"codehealthFindingId/v1":"604744ce78658dabb07dd7879f553d598e0b97037498c76d2f534d0914ed2a91"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser::equality_expression (cyclomatic 18): Parser::equality_expression has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: Parser::primary_expression (cyclomatic 24) 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":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63063476d9078f49f79bb4483914af7d2639e678e473f9589580631366dd409"}},{"ruleId":"D1","level":"warning","message":{"text":"Validator::check_width (cyclomatic 18): Validator::check_width 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":"naga/src/valid/type.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea84fc2fb591183768b792ca768d5e4a15cda98a72abb605f7de0971cb56afe9"}},{"ruleId":"D1","level":"warning","message":{"text":"naga::valid::compose::validate_compose (cyclomatic 18): naga::valid::compose::validate_compose 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":"naga/src/valid/compose.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1658fb1f96bbd11f38d3879b97fb12c896a954d98fe5cd910f299630dfd63cd4"}},{"ruleId":"D1","level":"warning","message":{"text":"WebCommandEncoder::begin_render_pass (cyclomatic 18): WebCommandEncoder::begin_render_pass 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: wgpu::backend::webgpu::map_texture_format (cyclomatic 97) 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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":3501}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf733cf1c28ccd2e47a1eeb7ce3a99b39bc0b9bf00193927392314703ccea220"}},{"ruleId":"D1","level":"warning","message":{"text":"Queue::copy_external_image_to_texture (cyclomatic 18): Queue::copy_external_image_to_texture has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/queue.rs"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"a837c317c8a72aca121b38a3db05dee96ca6f963b85258550e67ab25a0aa56ba"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::maintain (cyclomatic 18): Device::maintain has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"7add3d0668f8235e74175a0a6ebf62b62439622884e61b84e3d31490d88cdc32"}},{"ruleId":"D1","level":"warning","message":{"text":"wgpu_core::track::texture::barrier (cyclomatic 18): wgpu_core::track::texture::barrier 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":"wgpu-core/src/track/texture.rs"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"311774b9bb7136454c48ef04de503c73727e71437f361338d9bce853dcca09b1"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandEncoder::push_barrier (cyclomatic 18): CommandEncoder::push_barrier has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f8a6ac5c5951527a17372422a942fa93300178d8017248bc8dda8ea08f296a"}},{"ruleId":"D1","level":"warning","message":{"text":"Surface::configure (cyclomatic 18): Surface::configure has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a59c09bcfb8218b8802b5dd6ef36e1c5ba1cb94c86580609a955fe7c10a18f0"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_program (cyclomatic 18): Device::create_program 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":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"44df03f3f37352e0f30e366543a60ccac2dcdf02c6803c80e98e9432f8d79413"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_bind_group_layout (cyclomatic 18): Device::create_bind_group_layout 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":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"125ad53d2ef464fe373b90a1d3c29adc4e1bb290fa01a78407aa46af4c8d5202"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandEncoder::set_render_pipeline (cyclomatic 18): CommandEncoder::set_render_pipeline 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":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"df65706ecd87288796a6422dee166e1f82688fea579202038b4652f389d12391"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_wrapped_image_query_function (cyclomatic 17): Writer::write_wrapped_image_query_function has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7706fe2129d7586653a3ba33e56277758d379e19206ef0d15e5cc0c8b55063c"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::write_wrapped_constructor_function (cyclomatic 17): Writer::write_wrapped_constructor_function has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6a2b7f994b99be3019b361b196df5193ed3dd304f3681f0834d2b2460f83d7"}},{"ruleId":"D1","level":"warning","message":{"text":"Options::resolve_local_binding (cyclomatic 17): Options::resolve_local_binding has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/mod.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b6b4530ec8bc1e1a220c64658f6560df193bb290328c16c6c2c9ec9f22ce26"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::put_return_value (cyclomatic 17): Writer::put_return_value has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: Writer::write_unpacking_function (cyclomatic 43) 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":3710}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f21d4cf0a65da18a53a693417c2353dfb2393f1f977e843d7139eca601d6997"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::field_selection (cyclomatic 17): Frontend::field_selection has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/variables.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa62975d46b02432c7334ddf6922efc07783ddfa3cbb442f6e3ad41649984177"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::patch_statements (cyclomatic 17): Frontend::patch_statements has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: Frontend::next_decoration (cyclomatic 25) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":1573}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4d2a0b61c914bfa7108892609de0aff70198cc7eb4ef9966279a1f3f74bff6"}},{"ruleId":"D1","level":"warning","message":{"text":"wgpu_core::command::compute::encode_compute_pass (cyclomatic 17): wgpu_core::command::compute::encode_compute_pass has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae4047193a01d523d8bced6b917b5674ce1f4afe809e90a06f960be3575fb24"}},{"ruleId":"D1","level":"warning","message":{"text":"wgpu_core::device::surface_config::validate_surface_configuration (cyclomatic 17): wgpu_core::device::surface_config::validate_surface_configuration has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/surface_config.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d6002eb60836a0507d7eca04fb0025167f11cceda0adb7041e989660eb3276"}},{"ruleId":"D1","level":"warning","message":{"text":"wgpu_core::track::texture::merge (cyclomatic 17): wgpu_core::track::texture::merge has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/texture.rs"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b683ed594dbadbbfb721a6ed2a7bde428e15e18dd3f74866ed32beb9d5d4eb"}},{"ruleId":"D1","level":"warning","message":{"text":"Device::create_texture_view (cyclomatic 17): Device::create_texture_view has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: wgpu_hal::metal::device::convert_vertex_format_to_naga (cyclomatic 43) 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":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c9700c41597fe3a86a98c37c7d0c9ea2538355c2e5ec7210ad156fe7b9886d"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::fill_access_chain (cyclomatic 16): Writer::fill_access_chain has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/storage.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"106649aa4f99faf2a665f80a2c30e073071fefbd789e64528d4a510589f12feb"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::put_possibly_const_expression (cyclomatic 16): Writer::put_possibly_const_expression has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: Writer::write_unpacking_function (cyclomatic 43) 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffb295f83b64a89f43edf59314f67439dd3658125fdb3a95798e3939fdff490"}},{"ruleId":"D1","level":"warning","message":{"text":"Frontend::constructor_single (cyclomatic 16): Frontend::constructor_single 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":"naga/src/front/glsl/functions.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0beb5e12a245d48917dc25aa0ff85e530e3e075bcb8db3a873b04c27655845e6"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteralVector::from_literal_vec (cyclomatic 16): LiteralVector::from_literal_vec has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: ConstantEvaluator::try_eval_and_append_impl (cyclomatic 30) 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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"804308f96b173dcc06ac41693bb9f76d4a643ca3030b1beeba98e95a19c4077a"}},{"ruleId":"D1","level":"warning","message":{"text":"wgpu_core::command::transfer::copy_texture_to_texture (cyclomatic 16): wgpu_core::command::transfer::copy_texture_to_texture 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":"wgpu-core/src/command/transfer.rs"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"424d77242be53511117011cade03df952bb07503c958eebc6b8f8f430b0546cf"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandEncoder::defer_multi_draw_via_icb (cyclomatic 16): CommandEncoder::defer_multi_draw_via_icb has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/icb.rs"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"120e0c124039725a17f1818a9c2df22d6cb1db4733d12bb740ec7a625e8327a4"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_functions (cognitive 559): Writer::write_functions has cognitive complexity 559 (threshold 15). Drivers by points: if/else 99 (325 pts), match/switch 34 (129 pts), loops 29 (86 pts), boolean chains 19 (nesting depth added 378). 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":7050}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8c29b6c92030b7beb9ecd23caf62d0fda0dd8eb3c058713ac1c01c7d5104e7"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_expr (cognitive 397): Writer::write_expr has cognitive complexity 397 (threshold 15). Drivers by points: if/else 106 (240 pts), match/switch 48 (126 pts), boolean chains 16, loops 5 (15 pts) (nesting depth added 222). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2445}}}],"partialFingerprints":{"codehealthFindingId/v1":"464137db9a47467900914407279cf6a49a82bfd627f9cf58fcc3d5367146689e"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::validate_block_impl (cognitive 355): Validator::validate_block_impl has cognitive complexity 355 (threshold 15). Drivers by points: if/else 57 (189 pts), match/switch 37 (133 pts), loops 10 (31 pts), boolean chains 2 (nesting depth added 249). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/function.rs"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"306f1d1fc56f2a5a1ea06e2ed57ee216f0a688444e137f48710a08f430d312d1"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::next_block (cognitive 349): Frontend::next_block has cognitive complexity 349 (threshold 15). Drivers by points: if/else 71 (167 pts), match/switch 36 (123 pts), loops 18 (56 pts), boolean chains 3 (nesting depth added 221). Of this number, 348 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae67ea55da31f5d777d5478a2de0f67715e56b04ff62ae75b22f275210afbe6"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::validate_expression (cognitive 304): Validator::validate_expression has cognitive complexity 304 (threshold 15). Drivers by points: match/switch 72 (179 pts), if/else 50 (108 pts), boolean chains 11, loops 3 (6 pts) (nesting depth added 168). Of this number, 302 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"naga/src/valid/expression.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"660e5200e2054ea14a87918813da4cd508cc5fd066e59a829b2c8eb0537831b2"}},{"ruleId":"D2","level":"warning","message":{"text":"Queue::process (cognitive 213): Queue::process has cognitive complexity 213 (threshold 15). Drivers by points: if/else 85 (155 pts), match/switch 14 (27 pts), loops 8 (22 pts), boolean chains 9 (nesting depth added 97). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/queue.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"6144c5fedfed612b06b1d35859a15e3e2d959175ac2e67e7e7f7debece819258"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_render_pipeline_or_error_inner (cognitive 207): Device::create_render_pipeline_or_error_inner has cognitive complexity 207 (threshold 15). Drivers by points: if/else 73 (154 pts), loops 10 (25 pts), boolean chains 16, match/switch 9 (12 pts) (nesting depth added 99). 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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4737}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a53bf63ccdd1dc27943129c89ffb570a79e3cc32894a42dcd0f4755ad332576"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_stmt (cognitive 201): Writer::write_stmt has cognitive complexity 201 (threshold 15). Drivers by points: if/else 47 (117 pts), match/switch 23 (62 pts), loops 8 (20 pts), boolean chains 2 (nesting depth added 121). 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2388}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f7d64db65a880058420f0b9604c0103f64b8caaab4505cb1872dc5569ff274"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_expr (cognitive 192): Writer::write_expr has cognitive complexity 192 (threshold 15). Drivers by points: if/else 52 (114 pts), match/switch 27 (68 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 104). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3939}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cc1077be39a6c24d5af73ced80a21d787ce9a387bbd2b40b80afb9891a6d24"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockContext::cache_expression_value (cognitive 183): BlockContext::cache_expression_value has cognitive complexity 183 (threshold 15). Drivers by points: match/switch 49 (122 pts), if/else 29 (58 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 103). 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":"naga/src/back/spv/block.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8071d63972a0cdae892e3a2dbf9f4a99a36dbddbe99fc97f2277678ef4e103d"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_stmt (cognitive 166): Writer::write_stmt has cognitive complexity 166 (threshold 15). Drivers by points: if/else 36 (96 pts), match/switch 13 (34 pts), loops 10 (30 pts), boolean chains 6 (nesting depth added 101). 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d527435a025492be789c1ced18173c315341f8200de3c58c386cd48ad4e2b21"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::put_expression (cognitive 161): Writer::put_expression has cognitive complexity 161 (threshold 15). Drivers by points: if/else 40 (79 pts), match/switch 28 (69 pts), boolean chains 11, loops 1 (2 pts) (nesting depth added 81). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":2218}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e51f4415c8a38f50647bcc46b4d13171cbd44c244c9029a44a814db6b8d574a"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilitiesQuery::new (cognitive 160): CapabilitiesQuery::new has cognitive complexity 160 (threshold 15). Drivers by points: if/else 79 (81 pts), boolean chains 77, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8806b6cb7441ccf1cbe91776236b1bf7ac0a75d28d1a3fbccb64fba4a421bcf"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::validate_type (cognitive 159): Validator::validate_type has cognitive complexity 159 (threshold 15). Drivers by points: if/else 48 (119 pts), match/switch 12 (28 pts), boolean chains 10, loops 1 (2 pts) (nesting depth added 88). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/type.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d87fe5a9ea2a7c7cb12dea045beb92cde9fb97c6c6614ebdc0e9825d13ade80"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_core::command::ray_tracing::iter_blas (cognitive 158): wgpu_core::command::ray_tracing::iter_blas has cognitive complexity 158 (threshold 15). Drivers by points: if/else 36 (131 pts), match/switch 4 (14 pts), loops 3 (7 pts), boolean chains 6 (nesting depth added 109). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9b83c056bcc78ddff385ea5d2beaea32c30d143e721d84cbdaf0328a774d07"}},{"ruleId":"D2","level":"warning","message":{"text":"Interface::check_stage (cognitive 157): Interface::check_stage has cognitive complexity 157 (threshold 15). Drivers by points: if/else 48 (98 pts), match/switch 15 (36 pts), loops 9 (16 pts), boolean chains 7 (nesting depth added 78). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/validation.rs"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2895b40db00345afd7c2df8d207a35a77f520e3332d61b5dcbfc670299a7e7"}},{"ruleId":"D2","level":"warning","message":{"text":"ConstantEvaluator::binary_op (cognitive 147): ConstantEvaluator::binary_op has cognitive complexity 147 (threshold 15). Drivers by points: if/else 27 (85 pts), match/switch 16 (52 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 96). Of this number, 144 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed81762f5bb45fca401da5f31884cd2a4964478b0fdf1365ab74ddf6b75e2fee"}},{"ruleId":"D2","level":"warning","message":{"text":"VaryingContext::validate_impl (cognitive 140): VaryingContext::validate_impl has cognitive complexity 140 (threshold 15). Drivers by points: match/switch 29 (58 pts), if/else 26 (53 pts), boolean chains 29 (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/interface.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"01990d2d8c440ffd92a96d5caaf50d496bd538f18e44e739bd8f8503ebbc6ed7"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::put_block (cognitive 139): Writer::put_block has cognitive complexity 139 (threshold 15). Drivers by points: if/else 32 (93 pts), match/switch 8 (26 pts), loops 6 (16 pts), boolean chains 4 (nesting depth added 89). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":4133}}}],"partialFingerprints":{"codehealthFindingId/v1":"dadb35cb1492d11490b8df994c1f1b139bd1d26fc98ff5a74fc3371f4f0e1781"}},{"ruleId":"D2","level":"warning","message":{"text":"Context::lower_inner (cognitive 139): Context::lower_inner has cognitive complexity 139 (threshold 15). Drivers by points: if/else 29 (66 pts), match/switch 21 (53 pts), loops 5 (18 pts), boolean chains 2 (nesting depth added 82). 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":"naga/src/front/glsl/context.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadb273ab217dde48fdd31bf8008d0bf57bbc4411a0944a71b9aff69995614ef"}},{"ruleId":"D2","level":"warning","message":{"text":"Adapter::expose (cognitive 137): Adapter::expose has cognitive complexity 137 (threshold 15). Drivers by points: if/else 78 (91 pts), boolean chains 45, match/switch 1 (nesting depth added 13). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"618fc5074ecf632517139044188d0c2e47a7b869b155b318bcab6c5e2ed7783a"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockContext::write_block (cognitive 135): BlockContext::write_block has cognitive complexity 135 (threshold 15). Drivers by points: match/switch 22 (59 pts), if/else 20 (57 pts), loops 6 (16 pts), boolean chains 3 (nesting depth added 84). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":3560}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db43d22709b64a8f56ee8f82087478790ac75bef6f070a2a268ca9fa4dd3e23"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::front::glsl::builtins::inject_standard_builtins (cognitive 135): naga::front::glsl::builtins::inject_standard_builtins has cognitive complexity 135 (threshold 15). Drivers by points: match/switch 43 (97 pts), loops 13 (26 pts), if/else 8 (12 pts) (nesting depth added 71). 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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32764a4c4dc2ff5633c8035eae82f41353ee8808b9494881342f4ed826e7513"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::collect_required_features (cognitive 129): Writer::collect_required_features has cognitive complexity 129 (threshold 15). Drivers by points: if/else 22 (79 pts), match/switch 8 (23 pts), boolean chains 14, loops 8 (13 pts) (nesting depth added 77). 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":"naga/src/back/glsl/features.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"0407a64ac445f4b584f468a380297692210eccdb97a8a4ca62a7abe03e492ddb"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_function (cognitive 127): Writer::write_function has cognitive complexity 127 (threshold 15). Drivers by points: if/else 49 (96 pts), loops 8 (14 pts), match/switch 6 (12 pts), boolean chains 5 (nesting depth added 59). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"885404ff3f114a680d4e6cd088f25bfef5205591b1e4ce1145b5585136460f35"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_stmt (cognitive 126): Writer::write_stmt has cognitive complexity 126 (threshold 15). Drivers by points: if/else 34 (77 pts), loops 10 (23 pts), match/switch 10 (23 pts), boolean chains 3 (nesting depth added 69). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"3176572ca8940ea2c07e3e6846db6ce281f2c37b11904a230d6e966b18697bf9"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::validate_entry_point (cognitive 119): Validator::validate_entry_point has cognitive complexity 119 (threshold 15). Drivers by points: if/else 43 (96 pts), match/switch 10 (19 pts), boolean chains 2, loops 2 (nesting depth added 62). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/interface.rs"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"110c6eb721d2fa190867534b7e818460bbe0d1cd8bd37e3bf93192adb06ec6e2"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderPassInfo::start (cognitive 107): RenderPassInfo::start has cognitive complexity 107 (threshold 15). Drivers by points: if/else 56 (92 pts), boolean chains 5, loops 3 (5 pts), match/switch 2 (5 pts) (nesting depth added 41). Of this number, 99 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a41c76117f763d423db04d82f08268bd5f4cb8017f4d7b1c92ccffac1a01b6"}},{"ruleId":"D2","level":"warning","message":{"text":"Adapter::expose (cognitive 106): Adapter::expose has cognitive complexity 106 (threshold 15). Drivers by points: if/else 59 (68 pts), boolean chains 20, match/switch 11 (17 pts), loops 1 (nesting depth added 15). 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":"wgpu-hal/src/dx12/adapter.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"729ec44c567bf75ecf39c11ca0098447ca831824ac6be6e77396874c39314985"}},{"ruleId":"D2","level":"warning","message":{"text":"InstanceShared::inspect (cognitive 99): InstanceShared::inspect has cognitive complexity 99 (threshold 15). Drivers by points: if/else 43 (83 pts), boolean chains 16 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ba60d7f5f659fdf9e666849b3918bf7e84f7038a4e22a68bff70c6c39acd2e"}},{"ruleId":"D2","level":"warning","message":{"text":"Lowerer::statement (cognitive 98): Lowerer::statement has cognitive complexity 98 (threshold 15). Drivers by points: if/else 20 (49 pts), match/switch 20 (46 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 56). 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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"55dc1980b3e0747ac117c37637d5d5bd61a4ad27716f181b9be0f0e5c3044b8c"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write (cognitive 95): Writer::write has cognitive complexity 95 (threshold 15). Drivers by points: if/else 31 (63 pts), match/switch 6 (19 pts), boolean chains 7, loops 6 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff08a6ace0c22c916c485e88ecc041803ace6633830d420d4808b22e8808b7aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Lowerer::call_builtin (cognitive 90): Lowerer::call_builtin has cognitive complexity 90 (threshold 15). Drivers by points: if/else 26 (51 pts), match/switch 10 (32 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56ea94a85b3a536b14a41220f87835137c9f842052d305a56a67d3d1e04b8e5"}},{"ruleId":"D2","level":"warning","message":{"text":"ResolveContext::resolve (cognitive 88): ResolveContext::resolve has cognitive complexity 88 (threshold 15). Drivers by points: match/switch 23 (56 pts), if/else 13 (32 pts) (nesting depth added 52). 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":"naga/src/proc/typifier.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"479708fd0a7b519b0909ae374044522383135eefcb8a04920d48861cd2eb94c6"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_render_pipeline (cognitive 88): Device::create_render_pipeline has cognitive complexity 88 (threshold 15). Drivers by points: if/else 28 (51 pts), match/switch 18 (21 pts), loops 5 (13 pts), boolean chains 3 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b072f405214ff82f58969d5f6ec111b528c675715f28871de0c2b1318a54025"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::front::glsl::builtins::inject_builtin (cognitive 87): naga::front::glsl::builtins::inject_builtin has cognitive complexity 87 (threshold 15). Drivers by points: if/else 29 (57 pts), boolean chains 16, match/switch 6 (12 pts), loops 1 (2 pts) (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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f4075d4324dd1c5f371cab788bd058c0b68ab08e43632af97e8cd1842c306a"}},{"ruleId":"D2","level":"warning","message":{"text":"StatementGraph::add (cognitive 83): StatementGraph::add has cognitive complexity 83 (threshold 15). Drivers by points: if/else 17 (42 pts), match/switch 9 (28 pts), loops 5 (13 pts) (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/dot/mod.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8e8f13b02573744651ebae040439b36b9d6bcc0e0925703ce3e2f4b04db510"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::compact::compact (cognitive 81): naga::compact::compact has cognitive complexity 81 (threshold 15). Drivers by points: if/else 37 (63 pts), loops 10 (15 pts), boolean chains 3 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/mod.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ce1e4e2ddbf15902ed01d222d73cd1b878e11e8db0a945f5018ffc9622a0fe"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::front::glsl::builtins::inject_common_builtin (cognitive 80): naga::front::glsl::builtins::inject_common_builtin has cognitive complexity 80 (threshold 15). Drivers by points: match/switch 23 (55 pts), loops 10 (21 pts), if/else 1 (3 pts), boolean chains 1 (nesting depth added 45). 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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"547cb7e99d793c61bbc9b754200f471b1249fff140f3209c3728c7d0ef49c853"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_function (cognitive 79): Writer::write_function has cognitive complexity 79 (threshold 15). Drivers by points: if/else 32 (58 pts), loops 5 (9 pts), match/switch 5 (8 pts), boolean chains 4 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d9de244546aaba157998d6dbdb994511f814dcf00adefc907a2aab960822d8"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_math_expression (cognitive 76): Writer::write_math_expression has cognitive complexity 76 (threshold 15). Drivers by points: if/else 26 (50 pts), match/switch 12 (24 pts), boolean chains 2 (nesting depth added 36). 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3271}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de46097301e40cc7d2a109d0e96aac256b0c071df3c1605869b166348d3e349"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::process_entry_point (cognitive 76): Frontend::process_entry_point has cognitive complexity 76 (threshold 15). Drivers by points: if/else 15 (58 pts), loops 6 (12 pts), match/switch 3 (6 pts) (nesting depth added 52). 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":"naga/src/front/spv/function.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbca053d77b135d5ccd57781ca4631b451af7b61cf0537d227c0cbe59be1ccd"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingContext::parse_statement (cognitive 74): ParsingContext::parse_statement has cognitive complexity 74 (threshold 15). Drivers by points: if/else 21 (45 pts), match/switch 7 (21 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/functions.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f836158df45e420ff6ab554d4bfb3596827f3fe25911a0743fad9774034d0b"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::begin_render_pass_inner::fill_arc_desc (cognitive 74): CommandEncoder::begin_render_pass_inner::fill_arc_desc has cognitive complexity 74 (threshold 15). Drivers by points: if/else 28 (61 pts), match/switch 2 (8 pts), boolean chains 4, loops 1 (nesting depth added 39). 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":"wgpu-core/src/command/render.rs"},"region":{"startLine":1887}}}],"partialFingerprints":{"codehealthFindingId/v1":"501004ca15f9679ea28ff1e4a2ff754b1f16eff33831650376cb3449886d413b"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_xtask::cts::run_cts (cognitive 74): wgpu_xtask::cts::run_cts has cognitive complexity 74 (threshold 15). Drivers by points: if/else 41 (59 pts), boolean chains 8, match/switch 2 (4 pts), loops 3 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/cts.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1140239e1caa0e52adfe26621754d831c5ac39009d63a3392dc20bad869c6df3"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::validate_global_var (cognitive 73): Validator::validate_global_var has cognitive complexity 73 (threshold 15). Drivers by points: if/else 25 (52 pts), match/switch 8 (18 pts), boolean chains 3 (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":"naga/src/valid/interface.rs"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"6904953778cd147d6cbc0e96e0379a9ef0d0065332a7d036271b5d215f27f028"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::validate_texture_descriptor_inner (cognitive 73): Device::validate_texture_descriptor_inner has cognitive complexity 73 (threshold 15). Drivers by points: if/else 39 (62 pts), boolean chains 4, match/switch 2 (4 pts), loops 2 (3 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":1827}}}],"partialFingerprints":{"codehealthFindingId/v1":"d882c72bbbd05eceee0ae3fb825a1ca996a32ddc5d9ba1f74d06a5fa4ff3503f"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_pipeline_layout (cognitive 73): Device::create_pipeline_layout has cognitive complexity 73 (threshold 15). Drivers by points: if/else 21 (35 pts), match/switch 6 (22 pts), loops 8 (16 pts) (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a9f48e43e11372954439da85df4bd6c5847d1c849d0d85457b8e5e9ccd02c2"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_expr_plain_form (cognitive 71): Writer::write_expr_plain_form has cognitive complexity 71 (threshold 15). Drivers by points: match/switch 17 (33 pts), if/else 16 (32 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 35). 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":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"55efc7a46b281101a38a3c6dd71f50728987b23fe4871ef7ac91fb650640a218"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write (cognitive 70): Writer::write has cognitive complexity 70 (threshold 15). Drivers by points: if/else 19 (45 pts), loops 9 (12 pts), match/switch 3 (10 pts), boolean chains 3 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"879ff9e4219cbd98514af4469a986d5d41cc55fb2cee42aa7dd7f2182bae4f1d"}},{"ruleId":"D2","level":"warning","message":{"text":"FeaturesManager::check_availability (cognitive 69): FeaturesManager::check_availability has cognitive complexity 69 (threshold 15). Drivers by points: boolean chains 44, if/else 24, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/features.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c128552d01737d8755de006460d4b9e0f4d93e1abf32fa4ef6d1eff60d24dfc3"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_bind_group (cognitive 69): Device::create_bind_group has cognitive complexity 69 (threshold 15). Drivers by points: if/else 10 (33 pts), loops 6 (23 pts), match/switch 3 (13 pts) (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"8010dc93d68e074dfb6219e97a874a93e32c6c83b32033148da7ad2aef3868c1"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::function_call (cognitive 68): Frontend::function_call has cognitive complexity 68 (threshold 15). Drivers by points: if/else 16 (37 pts), match/switch 7 (20 pts), loops 5 (7 pts), boolean chains 4 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c883f39551609187514a442bbf7a54fbd8d3645191682c1582e8c71b4f4119"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::front::wgsl::parse::number::parse (cognitive 67): naga::front::wgsl::parse::number::parse has cognitive complexity 67 (threshold 15). Drivers by points: if/else 22 (55 pts), match/switch 6 (9 pts), loops 2, boolean chains 1 (nesting depth added 36). 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":"naga/src/front/wgsl/parse/number.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f96c3a343d532662ee247efd29acef1aa01344f70c65833a21cea93b07b21f"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_std140_compat_type_declaration (cognitive 66): Writer::write_std140_compat_type_declaration has cognitive complexity 66 (threshold 15). Drivers by points: if/else 10 (36 pts), match/switch 6 (18 pts), loops 4 (12 pts) (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"b022faa3a26126fd2ea3626469505166a794599822e5164f9db5dedce41632d0"}},{"ruleId":"D2","level":"warning","message":{"text":"Module::analyze_mesh_shader_info (cognitive 65): Module::analyze_mesh_shader_info has cognitive complexity 65 (threshold 15). Drivers by points: if/else 9 (32 pts), match/switch 6 (25 pts), loops 2 (8 pts) (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/mod.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dae3364029efcd8a5aaffb9a2ca382a052be254a4cbb96c300f0edb61f984bc"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionInfo::process_block (cognitive 65): FunctionInfo::process_block has cognitive complexity 65 (threshold 15). Drivers by points: if/else 13 (37 pts), match/switch 5 (14 pts), loops 5 (13 pts), boolean chains 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/analyzer.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"206bdf4cd64ef34b0c07b181af2cde120929f92af755a79c7445966549ace2ae"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::validate_module_handles (cognitive 65): Validator::validate_module_handles has cognitive complexity 65 (threshold 15). Drivers by points: loops 21 (37 pts), if/else 15 (25 pts), match/switch 1 (3 pts) (nesting depth added 28). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/handles.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"284f51f3bb53d064aa1d2b39938e262f01586196fe64c364f77be136e135eef7"}},{"ruleId":"D2","level":"warning","message":{"text":"PhysicalDeviceFeatures::from_extensions_and_requested_features (cognitive 64): PhysicalDeviceFeatures::from_extensions_and_requested_features has cognitive complexity 64 (threshold 15). Drivers by points: if/else 52, boolean chains 11, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa87642622ec2dcf9ddf0536dba06e50368ec8bb85aa1ecc0e25b38f7bed613a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConstantEvaluator::math (cognitive 60): ConstantEvaluator::math has cognitive complexity 60 (threshold 15). Drivers by points: if/else 21 (40 pts), match/switch 9 (16 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 27). Of this number, 41 points are the body\u0027s own statements and 19 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c61292a7d9ff63ece7ef466531804d3f1d27fa5be9ff7d569a3ca47bbd7054d"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_pipeline_layout (cognitive 60): Device::create_pipeline_layout has cognitive complexity 60 (threshold 15). Drivers by points: if/else 11 (36 pts), loops 6 (12 pts), match/switch 2 (11 pts), boolean chains 1 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"7258521dcf470905012fb77cf8d27fc6f83e41be8b1eabda1c1eea5d06d2630b"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandBufferMutable::validate_acceleration_structure_actions (cognitive 59): CommandBufferMutable::validate_acceleration_structure_actions has cognitive complexity 59 (threshold 15). Drivers by points: if/else 8 (32 pts), loops 6 (17 pts), match/switch 3 (10 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5638c1dc6283ceba4fc636d747cb1a06f61b5e9bd6fc5d1fd373b1cb3094c39"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapper_function (cognitive 58): Writer::write_wrapper_function has cognitive complexity 58 (threshold 15). Drivers by points: if/else 22 (38 pts), loops 7 (14 pts), match/switch 3 (4 pts), boolean chains 2 (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":"naga/src/back/msl/mesh_shader.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d8f312ba65d9ec6f96fe13952c6cc971732d9e6ec83fea3b309a61f54e53d9"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_entry_point_mesh_shader_info (cognitive 58): Writer::write_entry_point_mesh_shader_info has cognitive complexity 58 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 8 (20 pts), match/switch 8 (18 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/mesh_shader.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5b0fa118129bc180c362c23659a91d7cf5c9a57eef6e04ed78cd7b550c4efe"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_core::track::texture::update (cognitive 58): wgpu_core::track::texture::update has cognitive complexity 58 (threshold 15). Drivers by points: loops 10 (35 pts), if/else 5 (20 pts), match/switch 2, boolean chains 1 (nesting depth added 40). 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":"wgpu-core/src/track/texture.rs"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d91acacdc2494b00dbdc612f756d3698a35fcd7ed188c9ec4265974506f68f"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::begin_render_pass (cognitive 57): CommandEncoder::begin_render_pass has cognitive complexity 57 (threshold 15). Drivers by points: if/else 18 (41 pts), match/switch 4 (8 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4e8327cd5e171a95bd59099deaf484eea1248ffecbe4f8d231495810419910"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_logical_layout (cognitive 56): Writer::write_logical_layout has cognitive complexity 56 (threshold 15). Drivers by points: if/else 22 (34 pts), loops 12 (14 pts), boolean chains 4, match/switch 3 (4 pts) (nesting depth added 15). Of this number, 55 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":3814}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26b2687ba27b5fe8cfa7faa640beeb9202cf2565443147b9b7f778b3b31c5e8"}},{"ruleId":"D2","level":"warning","message":{"text":"Lowerer::expression_for_reference (cognitive 56): Lowerer::expression_for_reference has cognitive complexity 56 (threshold 15). Drivers by points: if/else 10 (33 pts), match/switch 9 (19 pts), loops 1 (4 pts) (nesting depth added 36). 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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":2438}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf47c77c5f617c3ff1d473ea69d9a1adf1e1519f3680c8c74e5cdfbf643c366"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::back::dot::write_function_expressions (cognitive 56): naga::back::dot::write_function_expressions has cognitive complexity 56 (threshold 15). Drivers by points: if/else 15 (32 pts), match/switch 7 (18 pts), loops 3 (6 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/dot/mod.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42e873bf35ac99b106dca340c67dcc899ced44777bd72d02e789cf6decea258"}},{"ruleId":"D2","level":"warning","message":{"text":"Adapter::device_from_raw (cognitive 56): Adapter::device_from_raw has cognitive complexity 56 (threshold 15). Drivers by points: if/else 51, boolean chains 4, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":2663}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf2716b83b25cd441006509b88db3431de14dce5bde90839b69b2ae48b77374"}},{"ruleId":"D2","level":"warning","message":{"text":"lock_analyzer::main (cognitive 55): lock_analyzer::main has cognitive complexity 55 (threshold 15). Drivers by points: loops 8 (23 pts), if/else 8 (19 pts), match/switch 3 (11 pts), boolean chains 2 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock-analyzer/src/main.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc70efb63a05d13f422a3424e9ca2ed4cc369e7334f7d774fa956a32712cbc4"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::parse_image_sample (cognitive 55): Frontend::parse_image_sample has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (27 pts), match/switch 13 (23 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/image.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb8c17da7c5b085fd7074aa91abd861147392a1f83ef4f6a0e938c89f7dc309"}},{"ruleId":"D2","level":"warning","message":{"text":"Lowerer::function (cognitive 55): Lowerer::function has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (35 pts), match/switch 5 (17 pts), loops 1 (3 pts) (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6af0de4ff6eb3f74520a5b23d22c49e9d7064de5004d64f6c58c3e5f0bee21c"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionTracer::trace_block_impl (cognitive 54): FunctionTracer::trace_block_impl has cognitive complexity 54 (threshold 15). Drivers by points: if/else 7 (28 pts), loops 5 (15 pts), match/switch 3 (11 pts) (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/statements.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2007b644f366f9b3efd3f74cbafb9ad81d22e68bfb4299c9201f9fefc2b7ad"}},{"ruleId":"D2","level":"warning","message":{"text":"Queue::submit_inner (cognitive 54): Queue::submit_inner has cognitive complexity 54 (threshold 15). Drivers by points: if/else 13 (40 pts), match/switch 5 (9 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/queue.rs"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"8342fb111c812353b3aeacdae38266e6dc5e7391e05c8d6292e3298d5b42f453"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapped_functions (cognitive 53): Writer::write_wrapped_functions has cognitive complexity 53 (threshold 15). Drivers by points: if/else 8 (27 pts), match/switch 9 (25 pts), 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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1999}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25c4e17b707e7b6f7377d50ee8164a4609b8d10f744b3945cf530ae38126213"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_texture (cognitive 53): Device::create_texture has cognitive complexity 53 (threshold 15). Drivers by points: if/else 17 (29 pts), loops 5 (21 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9a533089fdbc43b8672a40103f0c91126e2806f76cafb5645b8354dc59ca78"}},{"ruleId":"D2","level":"warning","message":{"text":"PhysicalDeviceProperties::get_required_extensions (cognitive 53): PhysicalDeviceProperties::get_required_extensions has cognitive complexity 53 (threshold 15). Drivers by points: if/else 46 (51 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"488a5a2905e160c2456fb4b5af6a8151fdc363465f3d03f491c4746451435e12"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_global_variable (cognitive 52): Writer::write_global_variable has cognitive complexity 52 (threshold 15). Drivers by points: if/else 20 (43 pts), match/switch 5 (9 pts) (nesting depth added 27). 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":"naga/src/back/spv/writer.rs"},"region":{"startLine":3553}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16a7f8fee43489b116f06ad1b7a03c281759659d0f11e9ee3ccdd787e9e88bf"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_switch (cognitive 51): Writer::write_switch has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 5 (18 pts), boolean chains 4, match/switch 2 (4 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1fd61f169f40a90643d2ea0858fa9af3d7dc14ebc7f21401f4c45d2c1426f5"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::validate_atomic (cognitive 51): Validator::validate_atomic has cognitive complexity 51 (threshold 15). Drivers by points: if/else 23 (48 pts), match/switch 2, boolean chains 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/function.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"63bb06df83012c8bfe289070993170d7b347d2037c4faeff6628c730d85d07a0"}},{"ruleId":"D2","level":"warning","message":{"text":"Resource::check_binding_use (cognitive 51): Resource::check_binding_use has cognitive complexity 51 (threshold 15). Drivers by points: match/switch 13 (31 pts), if/else 8 (17 pts), boolean chains 3 (nesting depth added 27). 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":"wgpu-core/src/validation.rs"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e1778a8a4e7fc4318a6519654b54293ccd4e72e614bdbc55ea3da158ec6d71"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::begin_render_pass (cognitive 51): CommandEncoder::begin_render_pass has cognitive complexity 51 (threshold 15). Drivers by points: if/else 28 (47 pts), loops 3 (4 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29942536bdf7aa4b47adc466f50336b89278561aedc35a725422ad1463a2368"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::map_binding (cognitive 50): Writer::map_binding has cognitive complexity 50 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 8 (22 pts), boolean chains 5 (nesting depth added 27). 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":"naga/src/back/spv/writer.rs"},"region":{"startLine":3219}}}],"partialFingerprints":{"codehealthFindingId/v1":"220f9f8aa0c8759b2f8fcaa5bc5ee96fd50aa468ecbfd34f3f90077d3d68b7b2"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionMap::adjust_body (cognitive 50): FunctionMap::adjust_body has cognitive complexity 50 (threshold 15). Drivers by points: if/else 6 (24 pts), loops 5 (15 pts), match/switch 3 (11 pts) (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/statements.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d1c4aa9076ebf019317d3cb7925b7f8d75cffd5f5b495cbaf0b9ed24015c04"}},{"ruleId":"D2","level":"warning","message":{"text":"FeaturesManager::write (cognitive 49): FeaturesManager::write has cognitive complexity 49 (threshold 15). Drivers by points: if/else 29 (36 pts), boolean chains 11, match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"naga/src/back/glsl/features.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9516f9d27d1b7dcd99077de6c6b95596ceca37200fa3bdbc9fcccf4807e20c5"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::put_return_value (cognitive 49): Writer::put_return_value has cognitive complexity 49 (threshold 15). Drivers by points: if/else 11 (35 pts), loops 2 (8 pts), match/switch 3 (4 pts), boolean chains 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":3710}}}],"partialFingerprints":{"codehealthFindingId/v1":"018943792b846f942353c45dce9b1d0719b03a0b110aa35b6e6b540b373e4973"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_type_defs (cognitive 49): Writer::write_type_defs has cognitive complexity 49 (threshold 15). Drivers by points: if/else 11 (28 pts), match/switch 5 (13 pts), loops 4 (8 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":4883}}}],"partialFingerprints":{"codehealthFindingId/v1":"493616175bd0184adf558140b64d0fcddeaa94ead46a743acc587ee5195e3beb"}},{"ruleId":"D2","level":"warning","message":{"text":"MacroCall::call (cognitive 49): MacroCall::call has cognitive complexity 49 (threshold 15). Drivers by points: match/switch 10 (25 pts), if/else 10 (20 pts), loops 1 (4 pts) (nesting depth added 28). 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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ba41829c4b49601200a5f6eff0155d0d59b2dbbadf23eb6d7d834889ee7064"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingContext::parse_declaration (cognitive 49): ParsingContext::parse_declaration has cognitive complexity 49 (threshold 15). Drivers by points: if/else 12 (25 pts), match/switch 7 (23 pts), boolean chains 1 (nesting depth added 29). 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":"naga/src/front/glsl/parser/declarations.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8a8bf61066251d14cafa374c7e3a6b11355dc318c728402634030cd6e55c00"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::common::wgsl::types::try_write_type_inner (cognitive 48): naga::common::wgsl::types::try_write_type_inner has cognitive complexity 48 (threshold 15). Drivers by points: if/else 23 (42 pts), match/switch 4 (6 pts) (nesting depth added 21). 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":"naga/src/common/wgsl/types.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"009fb4cf1d31014bccfe4194e9f50e42efa2e492c488ba1e354017b1b78a71fc"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::front::wgsl::parse::lexer::consume_token (cognitive 48): naga::front::wgsl::parse::lexer::consume_token has cognitive complexity 48 (threshold 15). Drivers by points: match/switch 16 (37 pts), if/else 2 (7 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 28). 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":"naga/src/front/wgsl/parse/lexer.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"04234315917cc504ab594568ec7b60b009bc9f2988b939001f85a192e55024fd"}},{"ruleId":"D2","level":"warning","message":{"text":"Adapter::texture_format_capabilities (cognitive 48): Adapter::texture_format_capabilities has cognitive complexity 48 (threshold 15). Drivers by points: if/else 30 (44 pts), boolean chains 2, match/switch 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e00949c2d403afce2467adf894e599c6518afa775f49c7cb7253ca154a3243"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::statement (cognitive 47): Parser::statement has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (31 pts), loops 4 (10 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 27). 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":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"20503f17b538acec1602a3143055d7f5089accc84eba669e79cb81ca481be794"}},{"ruleId":"D2","level":"warning","message":{"text":"Namer::reset (cognitive 47): Namer::reset has cognitive complexity 47 (threshold 15). Drivers by points: loops 14 (25 pts), if/else 5 (12 pts), match/switch 4 (10 pts) (nesting depth added 24). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/namer.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"901bbf97d21d46025f6cbc518cc91a09154b9edfbfbe4ab353b0f895382812ac"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_bind_group_layout_impl (cognitive 47): Device::create_bind_group_layout_impl has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (26 pts), match/switch 6 (17 pts), boolean chains 2, loops 2 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":3093}}}],"partialFingerprints":{"codehealthFindingId/v1":"793f20327eb554d0091a463d522a80da4f22fb4083c0f3c4224f6d3f341456cf"}},{"ruleId":"D2","level":"warning","message":{"text":"Texture::create_view_inner (cognitive 47): Texture::create_view_inner has cognitive complexity 47 (threshold 15). Drivers by points: if/else 29 (32 pts), boolean chains 9, match/switch 5 (6 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/resource.rs"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2dd0b4d54ae5c579c4321f44e5622647fe84b410827f31e56f4e58ffeefe3d"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_core::command::ray_tracing::build_acceleration_structures (cognitive 47): wgpu_core::command::ray_tracing::build_acceleration_structures has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (33 pts), loops 5 (7 pts), match/switch 2 (6 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a5b90a7b0d66ad6149ef805c976c161592c5bc5521ee529906d4fea6bc155c"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_bind_group (cognitive 47): Device::create_bind_group has cognitive complexity 47 (threshold 15). Drivers by points: loops 9 (25 pts), match/switch 4 (12 pts), if/else 6 (10 pts) (nesting depth added 28). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"6521f38bfa0d70afa5c6cbbeb761115036f78e91ba3cfab84ae85e6d6b2c8cc6"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::global_decl (cognitive 46): Parser::global_decl has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (29 pts), match/switch 6 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"e548c7b1565b84434af66e480dc15da7cc336c1700f255e495608440a255268e"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::front::glsl::builtins::inject_double_builtin (cognitive 46): naga::front::glsl::builtins::inject_double_builtin has cognitive complexity 46 (threshold 15). Drivers by points: match/switch 14 (36 pts), loops 5 (10 pts) (nesting depth added 27). 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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a500f3ec65872a35484dd20fddc86d9f62f8bca069f4e9b03d2b40f3d4c606"}},{"ruleId":"D2","level":"warning","message":{"text":"Interface::new (cognitive 45): Interface::new has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (26 pts), loops 6 (11 pts), match/switch 3 (7 pts), boolean chains 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/validation.rs"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6a45011479b1f7d4d7a6d5dd32e794fd002bda219ca810569454e2d00aae3c"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_render_pipeline (cognitive 45): Device::create_render_pipeline has cognitive complexity 45 (threshold 15). Drivers by points: if/else 17 (26 pts), match/switch 8 (11 pts), loops 4 (8 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9d26e70e22e86ce6b88e5460c444663ba15c83c7d58305191463585f47a07d"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapped_binary_ops (cognitive 44): Writer::write_wrapped_binary_ops has cognitive complexity 44 (threshold 15). Drivers by points: if/else 7 (26 pts), match/switch 5 (17 pts), loops 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6519786d0c94d55d79cc76e792edbaf70897e43aa1345e01174d1bc647a9996"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapped_binary_op (cognitive 44): Writer::write_wrapped_binary_op has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (30 pts), match/switch 8 (14 pts) (nesting depth added 20). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":6144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ea39c253270cfcbf43970ceaf621f2755518f161e3c9c434f3008b621900c1"}},{"ruleId":"D2","level":"warning","message":{"text":"naga_cli::bin::naga::run (cognitive 44): naga_cli::bin::naga::run has cognitive complexity 44 (threshold 15). Drivers by points: if/else 27 (36 pts), match/switch 5 (7 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga-cli/src/bin/naga.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6f33685d81a521f65afbbf7be92c534766816923f234dd3497d1ee1bd9c710"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_core::track::texture::barrier (cognitive 44): wgpu_core::track::texture::barrier has cognitive complexity 44 (threshold 15). Drivers by points: if/else 7 (26 pts), loops 6 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 29). 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":"wgpu-core/src/track/texture.rs"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d875ebde9ef478dc0ccd76eb0b406d029c9dfc9c0e3d2f611923c83bcea0473"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_core::track::texture::merge (cognitive 43): wgpu_core::track::texture::merge has cognitive complexity 43 (threshold 15). Drivers by points: loops 8 (23 pts), if/else 5 (19 pts), match/switch 1 (nesting depth added 29). 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":"wgpu-core/src/track/texture.rs"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca7e9ca4bb8026f2c2633c687543b3f79f086d2b637bbb297ac5cd169e1d27e"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionInfo::process_expression (cognitive 42): FunctionInfo::process_expression has cognitive complexity 42 (threshold 15). Drivers by points: match/switch 10 (25 pts), if/else 9 (16 pts), boolean chains 1 (nesting depth added 22). 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":"naga/src/valid/analyzer.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff065f50fbf22e2015f289331ac7d63d3e549a0661f4c6a57cf4aa290b5d2c6"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::load_shader (cognitive 42): Device::load_shader has cognitive complexity 42 (threshold 15). Drivers by points: match/switch 8 (27 pts), if/else 4 (11 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 27). 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":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5567d4b05d8144268e655cf42dd58cf4877a8b5fa1d2ad3fc6a6e36084b940"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_ray_query_stmt (cognitive 41): Writer::write_ray_query_stmt has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (37 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/ray.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8ec7c5a00225291c1552c9078a89cb1a313bb5a291cbef06d66fabde800959"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::add_global_var (cognitive 41): Frontend::add_global_var has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (23 pts), match/switch 7 (18 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/variables.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c0791092b13816158628ab29173d03d7b139aecf29d044e923ac1216d1fdfa"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::back::pipeline_constants::process_overrides (cognitive 41): naga::back::pipeline_constants::process_overrides has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 8 (11 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3910c0cf9d04cea8c9cb0fc572b8fb52576f00ef9e46d61ac1e1e38d4c441b4e"}},{"ruleId":"D2","level":"warning","message":{"text":"player::bin::play::main (cognitive 41): player::bin::play::main has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (31 pts), match/switch 4 (6 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"player/src/bin/play.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efe928e05c4af390b58db23d6a919cfc7ef24d213f79286be25e1b36e0ccaf0"}},{"ruleId":"D2","level":"warning","message":{"text":"Entry::check (cognitive 40): Entry::check has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 2 (8 pts), match/switch 1 (4 pts) (nesting depth added 25). 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":"wgpu-core/src/command/bind.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"73627231d04cbc29a39820fcc15accfc4dbe2e1ef9de50302451f2b27cf05a4f"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::texture_use_parameters (cognitive 39): Device::texture_use_parameters has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (33 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4150}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e37f3be58a9fc8556e84b86c0fbbf8dccd8239a615fff0fb0eae8160f0e558"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::begin_render_pass (cognitive 39): CommandEncoder::begin_render_pass has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (33 pts), boolean chains 4, loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"b255f8898f01733ab1856c27f92a5146cf0e088bf46eb8dfd43436ab7db1fc9b"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_render_pipeline (cognitive 39): Device::create_render_pipeline has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (26 pts), match/switch 4 (7 pts), loops 3 (6 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f279e44d74b604c6bb5a811b7baa161f2d3cf5b74d067443a3b265d68bf4b8a9"}},{"ruleId":"D2","level":"warning","message":{"text":"PhysicalDeviceFeatures::to_wgpu (cognitive 39): PhysicalDeviceFeatures::to_wgpu has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 22, if/else 16 (17 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"1add6b7712fd78f04b3901795933abef14bdee3e71cc5315529f0e38fb45c978"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_function (cognitive 38): Writer::write_function has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 4 (8 pts), match/switch 6 (8 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed032af244a2a3c9274ed4ca988230b91edc43b6f6388af50a5c99902f2ab3d0"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_image_load (cognitive 38): Writer::write_image_load has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21 (33 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":4120}}}],"partialFingerprints":{"codehealthFindingId/v1":"12669cf35084dccabb76b2d177f42dcf11d03657ad2fddb8e3b3aa4fc3b58f20"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::parse_global_variable (cognitive 38): Frontend::parse_global_variable has cognitive complexity 38 (threshold 15). Drivers by points: match/switch 7 (18 pts), if/else 10 (15 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 19). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":2941}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9fdb471e0e463bd3e273b9770b4b132ca12d64fe2685e3e777138bc2343153"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_varying (cognitive 37): Writer::write_varying has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (26 pts), match/switch 5 (8 pts), loops 1 (2 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d959bab8af9875f62dbdf5c9a0c7be3f0a35d2fcca467abd9ea2bd684562253"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_global (cognitive 37): Writer::write_global has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21 (33 pts), match/switch 3 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b09f10d7e8ad58646bea1a2c122920f07fecdd8a3634ab9353275ef1ddc9330"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_buffer_inner (cognitive 37): Device::create_buffer_inner has cognitive complexity 37 (threshold 15). Drivers by points: if/else 26 (32 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccd55e473a2d5c884e61b172959224f5464e67b4e2fc8e4f034f0b539f3fc29"}},{"ruleId":"D2","level":"warning","message":{"text":"Lowerer::r#struct (cognitive 36): Lowerer::r#struct has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (34 pts), loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":4908}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c52171fc9345000d190e4ec0d271ebb02e01001b519fccc5b63f74c640286c"}},{"ruleId":"D2","level":"warning","message":{"text":"Inner::create (cognitive 36): Inner::create has cognitive complexity 36 (threshold 15). Drivers by points: if/else 20 (21 pts), match/switch 5 (10 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbb942c97fdcd59ed4b5c547b8e7eb5fdcf9d97eeeee6d6206764655eaa3060"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_compute_workgroup_init (cognitive 35): Writer::write_compute_workgroup_init has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 3 (9 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 21). 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2058}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ad6a068746cf20d856d9da2dc5947385767b9eae13f2fe11fd626487498b8e"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeContext::fmt (cognitive 35): TypeContext::fmt has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (22 pts), match/switch 7 (12 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"89979eeb3a9ef87cbc5b486b12fbe2d5d856f9de9b827743ac92935b8ad43a4d"}},{"ruleId":"D2","level":"warning","message":{"text":"ConstantEvaluator::cast (cognitive 35): ConstantEvaluator::cast has cognitive complexity 35 (threshold 15). Drivers by points: match/switch 15 (33 pts), loops 1 (2 pts) (nesting depth added 19). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":2478}}}],"partialFingerprints":{"codehealthFindingId/v1":"80430bd934921390bd261fc7115ec273ddbd3bbf583cdd6f562fd6e51eac2e49"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::validate_function (cognitive 35): Validator::validate_function has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 2 (5 pts), boolean chains 3, loops 3 (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":"naga/src/valid/function.rs"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f752cbc411eb77428ac0f8a28481496b5c0f05a1a24d57fb045aa77a977a82"}},{"ruleId":"D2","level":"warning","message":{"text":"Instance::init_with_callback (cognitive 35): Instance::init_with_callback has cognitive complexity 35 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/instance.rs"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a530917896b7a101327d831db52486f0676f0b381f2d52128f47e51c74ada6"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::update_expressions_to_bake (cognitive 34): Writer::update_expressions_to_bake has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (26 pts), match/switch 2 (5 pts), loops 2, boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93374896dfb0c8911e67047a492e8d6000c9b6b5800e2ccd407f8a3ddd7cc58"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapped_constructor_function (cognitive 34): Writer::write_wrapped_constructor_function has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 5 (12 pts), match/switch 3 (5 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"da735badd1e045982d2a3bb4bb4dd659505d8be8ab3e345da5c5a2e7cdfca6c1"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::field_selection (cognitive 34): Frontend::field_selection has cognitive complexity 34 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 5 (11 pts), loops 2 (7 pts) (nesting depth added 21). 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":"naga/src/front/glsl/variables.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"452ad385a87f4eeeb9f26f6ef1d38c8850bad24f2e962a4beeb1a6e30b7e869d"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::push_barrier (cognitive 34): CommandEncoder::push_barrier has cognitive complexity 34 (threshold 15). Drivers by points: loops 3 (12 pts), match/switch 3 (12 pts), if/else 7 (10 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"218dd832c2264ffeab6bbb281f3f2b10f5d71d224a63a9d47aaba6af54447cf8"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_enable_declarations (cognitive 33): Writer::write_enable_declarations has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (20 pts), loops 4 (7 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf52d4d427e6b75a3c3a4e76f0f3758893aad9a6a06fa419b82635a2a7fc72e5"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::back::pipeline_constants::adjust_stmt (cognitive 33): naga::back::pipeline_constants::adjust_stmt has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 6 (11 pts), loops 3 (6 pts) (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ca637cfade5388782140665bab70f36b7b4d93c8eda884dac3278a7cdd774d"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::deferred_resource_destruction (cognitive 33): Device::deferred_resource_destruction has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (24 pts), loops 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d526ec8f8cee28b167d65dd86543e1c2ed979d276a4e5a5183a7be6801d12d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_buffer (cognitive 33): Device::create_buffer has cognitive complexity 33 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1bef760b455f381106308b904468388f4c6c4abe20188ffe44011cb689ef02"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::set_render_pipeline (cognitive 33): CommandEncoder::set_render_pipeline has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (21 pts), loops 6 (11 pts), boolean chains 1 (nesting depth added 10). 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":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"816b58b4fe8a80b32abd434c8b92b9da7538d0f13fb4bf626455688d4696ad50"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::update_expressions_to_bake (cognitive 32): Writer::update_expressions_to_bake has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (23 pts), match/switch 2 (5 pts), boolean chains 2, loops 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9373d08f4d085496ed0f65e10616e52619afcfc0e48272e2fc6c669c1d8b149f"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::back::pipeline_constants::map_value_to_literal (cognitive 32): naga::back::pipeline_constants::map_value_to_literal has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 5, match/switch 1 (nesting depth added 13). 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":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27918d6fe59aeb396d7433f1f1a3d9ba41bb7613ad5e6ab8d37fe9b470a30f1"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapped_bitcast_functions (cognitive 31): Writer::write_wrapped_bitcast_functions has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (22 pts), match/switch 2 (5 pts), loops 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a2293c245f34350d0d6cad2c88b9fda6d61dc846ac5fa2a11aa3f752002d6c"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_all_mat_cx2_typedefs_and_functions (cognitive 31): Writer::write_all_mat_cx2_typedefs_and_functions has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (26 pts), loops 3 (5 pts) (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":2347}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ffa0404bb831702dcf1d1a5cd91c2d050b78ae32993ffcd34f444ebb149dcb"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_storage_store (cognitive 31): Writer::write_storage_store has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (10 pts), match/switch 4 (6 pts) (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/storage.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e755368ef4baa9ae1fd6cb4bb00967c1f4f0d8f2e918583313ac482e1331ba3"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::put_literal (cognitive 31): Writer::put_literal has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18 (30 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":2016}}}],"partialFingerprints":{"codehealthFindingId/v1":"973f5bb17b1f6575843c07335cdbcf556a55204add7d814de5994139595a16d6"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::parse_function (cognitive 31): Frontend::parse_function has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 5 (9 pts), match/switch 3 (6 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/function.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"37234b50ae2309afd29b5de0fc59c851122e8a601a23d3367d6f1c41036b82cc"}},{"ruleId":"D2","level":"warning","message":{"text":"Lowerer::lower (cognitive 31): Lowerer::lower has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 3 (9 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"487333142ff459af733dc69d72d40ec18ea086e82d2ea00ebc5d03d742ada6c0"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::check_width (cognitive 31): Validator::check_width has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (28 pts), match/switch 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/type.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ced4fc292746abbd2d87ca5e7d1e2179c5fe4876286a7ab339bd28cc01705c"}},{"ruleId":"D2","level":"warning","message":{"text":"DeviceShared::make_render_pass (cognitive 31): DeviceShared::make_render_pass has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (27 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4e01daf180967cc0bc81bdfed44f956996d0c5f7a695692da5fd8950dfb122"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapped_functions (cognitive 30): Writer::write_wrapped_functions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (22 pts), match/switch 2 (6 pts), boolean chains 1, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bebe1fbd98420ebfaf123ba73ea909e8380b235b453a9df966f513f84e2bb0"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::handle_directive (cognitive 30): Frontend::handle_directive has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 9 (20 pts), if/else 4 (10 pts) (nesting depth added 17). 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":"naga/src/front/glsl/parser.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"342c9c79b0319b869cfa0e8e698acad43f62c208659e0d8ae07c18f23a47e02e"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::valid::compose::validate_compose (cognitive 29): naga::valid::compose::validate_compose has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (8 pts), match/switch 2 (4 pts) (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/compose.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac2a322d38c7b3e834f7b79ff8312919f8eb6de7f91c097e9df3bcf16046c5b"}},{"ruleId":"D2","level":"warning","message":{"text":"Instance::request_adapters (cognitive 29): Instance::request_adapters has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 2 (3 pts), match/switch 2 (nesting depth added 13). Of this number, 28 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/instance.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad88eb5b96cf96aba065460fa9875ba0efbd043050a4d0a013435e84bac56d73"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_bind_group_layout (cognitive 29): Device::create_bind_group_layout has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"954f5fa3ad3993f4e8f02162c2cb7bc7a05831b8f3df17a336b155c46dba2910"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_mesh_output_types (cognitive 28): Writer::write_mesh_output_types has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/mesh_shader.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74912cff16f184bc37a4ea22f092996a8ff9957f346b31b06b8c1a2aa1830c3"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_ep_output_struct (cognitive 28): Writer::write_ep_output_struct has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 4 (10 pts), loops 3 (7 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd730610576e3043b6633c0eef389b90e6efcdc46357d66e62517a019093a45"}},{"ruleId":"D2","level":"warning","message":{"text":"VaryingContext::validate (cognitive 28): VaryingContext::validate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 2 (5 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/interface.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"157b166782dbb3a046ca0dc9ae8e234698723440d2206d564b27d78589f92276"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::transition_textures (cognitive 28): CommandEncoder::transition_textures has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (26 pts), boolean chains 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"9016a91652576ad5bf5c930de77c7a043acc7f24df2eb0f226246920b986a538"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapped_image_query_function (cognitive 27): Writer::write_wrapped_image_query_function has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 7 (16 pts), if/else 4 (9 pts), loops 1 (2 pts) (nesting depth added 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"292eab72d1f71b333b1c86a5c6a973d42b031d6e7ee8f0124876760fa64389d1"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_struct (cognitive 27): Writer::write_struct has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (9 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"036040b72ebbd20fef82dbdafdab32a5171fb4da92d887eb435c5ebc57ff7034"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapped_convert_from_std140_compat_type (cognitive 27): Writer::write_wrapped_convert_from_std140_compat_type has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 5 (11 pts), loops 4 (10 pts), if/else 4 (6 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b0f54ed544fd441828eb94046282066ad9e2143a5448e58310d7c0aaeefe74"}},{"ruleId":"D2","level":"warning","message":{"text":"Error::as_parse_error (cognitive 27): Error::as_parse_error has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 8 (16 pts), if/else 7 (11 pts) (nesting depth added 12). 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":"naga/src/front/wgsl/error.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"603a4f5b6cace1c9a6f7ab1fe6fd4d56ccd2cf8e9143d8e9899e32c1215579e7"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::front::glsl::builtins::texture_args_generator (cognitive 27): naga::front::glsl::builtins::texture_args_generator has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":2322}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12e7764b8824960b22a75a4bb7a9c61d265e4105830caf561a904b85e04ce9c"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderBundle::execute (cognitive 27): RenderBundle::execute has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6923c32033657205c44964430585ea8d757cc05e3b104a4d55c201684e9116f"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_blas_inner (cognitive 27): Device::create_blas_inner has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/ray_tracing.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"12eb7b4a60276cf848e430764df056d9a8ddc6029e0b9a359c3b01672faae867"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_ray_tracing_pipeline_inner (cognitive 27): Device::create_ray_tracing_pipeline_inner has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 8 (12 pts), if/else 6 (10 pts), loops 4 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/ray_tracing.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"4511c25dfb22fdb08d052dbbc6ca6efc3e987f1405353eb924044ec9f3507e38"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::maintain (cognitive 27): Device::maintain has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (19 pts), match/switch 4 (6 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7544b20b8171c5bbdcd305603a58592df92fc2bcd80ece3310453ebe95b71c"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::put_possibly_const_expression (cognitive 26): Writer::put_possibly_const_expression has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (6 pts), match/switch 3 (5 pts) (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bea1052dfd81962701feabc2a0efe114ced662a9213bc03a9ac34ec5b9383a1"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingContext::parse_type_qualifiers (cognitive 26): ParsingContext::parse_type_qualifiers has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (20 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/types.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"153aef1977ad25699262b468b3b9219051d1d70a178dd6da3b2f27a1002740ea"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::parse (cognitive 26): Frontend::parse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 7 (10 pts), match/switch 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af1dd16fcd09bd2b8eee0026178d8d8751c0a16b2f7ba82bc65d6a810b4d967"}},{"ruleId":"D2","level":"warning","message":{"text":"Buffer::try_map_async (cognitive 26): Buffer::try_map_async has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (20 pts), match/switch 4 (5 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/resource.rs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba43daaf9b917c530e49f37778d1b8a5c71e736114a8fee030b4d4df2bf5bcf7"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_texture_view (cognitive 26): Device::create_texture_view has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21 (24 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72e358a62346794afd277362b3aa97ec6c1ebf537a3c2fc370ee2d3b055a9c2"}},{"ruleId":"D2","level":"warning","message":{"text":"PhysicalDeviceFeatures::add_to_device_create (cognitive 26): PhysicalDeviceFeatures::add_to_device_create has cognitive complexity 26 (threshold 15). Drivers by points: if/else 26. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c51de9c3b46ee56faaa02df4b4abc71befe0e43b331d56e3d0db1c943eb9a0"}},{"ruleId":"D2","level":"warning","message":{"text":"Instance::expose_adapter (cognitive 26): Instance::expose_adapter has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 10, match/switch 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":2284}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d9b2edd5d27d5fd65d7ec0ad91ec97ecb748f3367a705baa2249a85da54050"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapped_expression_functions (cognitive 25): Writer::write_wrapped_expression_functions has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (16 pts), match/switch 3 (8 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"856b5bd143f4496b533a9298562ca1b954f2ca8d50b94676f0dea501135e7ea9"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockContext::write_checked_load (cognitive 25): BlockContext::write_checked_load has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 5 (12 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":2883}}}],"partialFingerprints":{"codehealthFindingId/v1":"405fe27bac59687a1a653748ae4672c5f934d7a02ba7ab36602d28fe2b17431a"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::parse (cognitive 25): Parser::parse has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 4 (13 pts), if/else 4 (10 pts), loops 2 (nesting depth added 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1bf0cee46637c6e2b630387315d5b004b2ebd021951be7e87278c3fa4f42e1f"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::set_render_pipeline (cognitive 25): CommandEncoder::set_render_pipeline has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (4 pts), match/switch 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f027471f35a0078bc1fae44483656228cc9116e5d30ce5ff0a330d565f6d52e"}},{"ruleId":"D2","level":"warning","message":{"text":"DescriptorAllocator::alloc (cognitive 25): DescriptorAllocator::alloc has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 3 (9 pts), boolean chains 3, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/descriptor.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0f9e27fc4ec8c3b49d7a9530b3e5fa9c45f8fbb3c0c6e9a0735dd8acd8a4ef"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write (cognitive 24): Writer::write has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 7, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5ef557e1dd2a6bd90aae4c7a5cdb9343d14ac835af53a79977412aad91da0a"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::matrix_one_arg (cognitive 24): Frontend::matrix_one_arg has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 4 (9 pts), loops 2 (4 pts) (nesting depth added 13). 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":"naga/src/front/glsl/functions.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33dd572b5889e4ccbce2e50136c3072f95d949c7ef54117cba06273f298e9f6"}},{"ruleId":"D2","level":"warning","message":{"text":"Lowerer::resolve_overloads (cognitive 24): Lowerer::resolve_overloads has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (20 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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":4324}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e69139434dd02091b4127a0fab9729561eca7b5fd1ee9653cbb058cbda351e"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::back::pipeline_constants::adjust_expr (cognitive 24): naga::back::pipeline_constants::adjust_expr has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 3 (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":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"086949cb7781b0bd4e64b9e289d8881db1b875066522e12fbbef2cba51795778"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::front::wgsl::parse::number::parse_hex_float_parts (cognitive 24): naga::front::wgsl::parse::number::parse_hex_float_parts has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (8 pts), match/switch 6 (8 pts), loops 4 (5 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/parse/number.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5ee894954db2471de2d205db507a770d6b9acb166431b4e598147464d4dff6"}},{"ruleId":"D2","level":"warning","message":{"text":"WebCommandEncoder::begin_render_pass (cognitive 24): WebCommandEncoder::begin_render_pass has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 4 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":3501}}}],"partialFingerprints":{"codehealthFindingId/v1":"93785ce41981e4a40a02ae5ac3266ae3836f510d89e77601df89cbd6e58f0017"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_bind_group_inner (cognitive 24): Device::create_bind_group_inner has cognitive complexity 24 (threshold 15). Drivers by points: loops 8 (16 pts), match/switch 2 (5 pts), if/else 2 (3 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":3847}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc1901dd255e524fb187e7af4c642935503044090f31abe501ec229bf27263c"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_core::command::clear::clear_texture_via_buffer_copies (cognitive 24): wgpu_core::command::clear::clear_texture_via_buffer_copies has cognitive complexity 24 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 6 (9 pts) (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/clear.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e30ba670142294b7dd47497d6634a95bd50bc3b7bff1da56022a6a237d5f11"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_program (cognitive 24): Device::create_program has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 6 (8 pts), match/switch 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcc4438fd2152d270926ef15dc8b7946569c91bdebaf380cfe5658bd229cd22"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::rebind_vertex_data (cognitive 24): CommandEncoder::rebind_vertex_data has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 3 (9 pts), loops 2 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1dc4c239a516861b63a353b43f1b6fa7c67d71f96e7f071505fea453a69d11"}},{"ruleId":"D2","level":"warning","message":{"text":"Instance::enumerate_adapters (cognitive 24): Instance::enumerate_adapters has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (18 pts), boolean chains 3, loops 1 (2 pts), match/switch 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/instance.rs"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb561542622ff83120c7f6d6e490bf86b492137493cd32e9283a9954d80b73e4"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::build_acceleration_structures (cognitive 24): CommandEncoder::build_acceleration_structures has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (8 pts), match/switch 3 (5 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/command.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c6b70c17e49b2c21620193fd5104ab870460e1a66fde5ad1bd0dde161a71c4"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockContext::write_access_chain (cognitive 23): BlockContext::write_access_chain has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 6 (14 pts), if/else 5 (8 pts), loops 1 (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":2598}}}],"partialFingerprints":{"codehealthFindingId/v1":"008bf43cc9c8ebc422c581abed685383caf700c19d48d9bef0d8abc820a894e1"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_type_declaration_arena (cognitive 23): Writer::write_type_declaration_arena has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 5 (8 pts), loops 1 (3 pts) (nesting depth added 12). 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":"naga/src/back/spv/writer.rs"},"region":{"startLine":2291}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ae8ad51c58456fec43584bde3425ea888144b71e0b7f86c8e86e03e3c049a8"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::constructor_many (cognitive 23): Frontend::constructor_many has cognitive complexity 23 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 3 (7 pts), match/switch 2 (4 pts) (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"768ce513f72d74117a0ca2ca500b0548904e3212b8eca7e418f6d8f540aec145"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingContext::parse_postfix (cognitive 23): ParsingContext::parse_postfix has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 4 (11 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/expressions.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"46da25c21ddd76ac96f14e00b26af8e7a281dfd470172a06cca708c46df59cb3"}},{"ruleId":"D2","level":"warning","message":{"text":"ConstantEvaluator::select (cognitive 23): ConstantEvaluator::select has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 4 (8 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":3692}}}],"partialFingerprints":{"codehealthFindingId/v1":"511b8bf9c97197095ccc28fcd435850a7bdc06f26d46db0fac9a3c1f743cb176"}},{"ruleId":"D2","level":"warning","message":{"text":"Namer::sanitize (cognitive 23): Namer::sanitize has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/namer.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e6f86bca9608d0491f3cce3c8662bf31bda41b7c9a2fe8e92250d4083fac6d"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::back::pipeline_constants::filter_emits_in_block (cognitive 23): naga::back::pipeline_constants::filter_emits_in_block has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"931227f4e9088b459f487f940274d407b10e56557f7ca5ecef8f2ce7fe2c2510"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::front::wgsl::parse::number::convert_hex_float (cognitive 23): naga::front::wgsl::parse::number::convert_hex_float has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/parse/number.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d549ecf9f460705397ed5452fbcc7dd44d31930f4bc5832d771fc653af0a4c6"}},{"ruleId":"D2","level":"warning","message":{"text":"BakedCommands::initialize_texture_memory (cognitive 23): BakedCommands::initialize_texture_memory has cognitive complexity 23 (threshold 15). Drivers by points: loops 6 (14 pts), if/else 4 (7 pts), match/switch 1 (2 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/memory_init.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0465736876fd0716d59acba13be69595f1095cc84d991c3afd28db4aef4f0e"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_hal::gles::egl::choose_config (cognitive 23): wgpu_hal::gles::egl::choose_config has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d8eccb9e0ee48f0771f8362e327043bd23921f4cf73251cd6b260a6e6fde8e"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_hal::metal::icb_probe::supports_render_icb (cognitive 23): wgpu_hal::metal::icb_probe::supports_render_icb has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19 (20 pts), match/switch 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/icb_probe.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce78a635870a9f7edaa93e2641aaccfa72e99fc10632bfeff4ab0ec588a5b5fd"}},{"ruleId":"D2","level":"warning","message":{"text":"deno_webgpu::get_data_slice (cognitive 22): deno_webgpu::get_data_slice has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (22 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":"deno_webgpu/lib.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ab381a77a3bc4ad8ac4fa3938af50c3faed913da2d1a29849095f22c07eed2"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapped_math_functions (cognitive 22): Writer::write_wrapped_math_functions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (14 pts), match/switch 2 (7 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2d2ec619806b4ab240143cabb6f8b41bdd66917e8cfb7ea50fac3121adf648"}},{"ruleId":"D2","level":"warning","message":{"text":"TypedGlobalVariable::to_parts (cognitive 22): TypedGlobalVariable::to_parts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 4 (8 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"71eedb23aa856cae7a2321d871a615a6b9c9aa7b4dd13df7e1412dffc77a7261"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockContext::write_image_sample (cognitive 22): BlockContext::write_image_sample has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/image.rs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c9abc88a18d7328282f4cdfa7fd329336cd23a70c5ba8da71db0af54ac7b76"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockContext::write_image_query (cognitive 22): BlockContext::write_image_query has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 9 (17 pts), if/else 3 (5 pts) (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/image.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c6bd0d91c72d87cc721ccf31ef51578b6fffb988476653a7675bb3e81f572d"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::process_lhs_argument (cognitive 22): Frontend::process_lhs_argument has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 1 (3 pts), match/switch 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbe759c42ed821cae692443ef4334bb0ac38b83301b927b61392023b05c9be1"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::patch_statements (cognitive 22): Frontend::patch_statements has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 3 (10 pts), loops 3 (7 pts), if/else 1 (5 pts) (nesting depth added 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":1573}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2828e36547efd04ebb94b59cfa3695841bf98ec6dd9fae138ed8d42461d9a3"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreDevice::create_bind_group (cognitive 22): CoreDevice::create_bind_group has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (6 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c3993e26038588ea508b7638e83062e9cf5a39bc1944b3236576c7dc8eb0e0"}},{"ruleId":"D2","level":"warning","message":{"text":"Queue::copy_external_image_to_texture (cognitive 22): Queue::copy_external_image_to_texture has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/queue.rs"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a174eb7ac3adf230e9a6ffaa1487f55e7c2237b51f18d7c229a01e9f57f2905"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::compile_stage (cognitive 22): Device::compile_stage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2, match/switch 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"b095af717b560811a092570232aed149bbd5282956cc3d2ea9d5b5b2ef114004"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_hal::vulkan::instance::debug_utils_messenger_callback (cognitive 22): wgpu_hal::vulkan::instance::debug_utils_messenger_callback has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 4, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/instance.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f595c727d90f7f2e3555660c0a5a21cc99a9c58edee071d80d6b77c801fc6f43"}},{"ruleId":"D2","level":"warning","message":{"text":"Function::to_words (cognitive 21): Function::to_words has cognitive complexity 21 (threshold 15). Drivers by points: loops 8 (19 pts), if/else 1 (2 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6a8e835b9976529d6618f96b9368e8b2ede725b3114a6b5a8e1b65562480c4"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingContext::parse_init_declarator_list (cognitive 21): ParsingContext::parse_init_declarator_list has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/declarations.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd68a980eb64e51b6a97bdced95c4b55d26de0d2a3221d760ba2ccd38b74269"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::validate_block_handles (cognitive 21): Validator::validate_block_handles has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 6 (11 pts), loops 3 (6 pts), if/else 3 (4 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/handles.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"351f3d3e36ca70852c0357dc493dd26dfbe60890dd5f54a4e6e021e9771adaf7"}},{"ruleId":"D2","level":"warning","message":{"text":"Queue::write_texture_inner (cognitive 21): Queue::write_texture_inner has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (13 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/queue.rs"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"9efb9651b808ad09c4089eec7b46510dafc6cc893933216f2b866c0651e193c5"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_core::device::surface_config::validate_surface_configuration (cognitive 21): wgpu_core::device::surface_config::validate_surface_configuration has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/surface_config.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda50b85a7c3c2d70106b224cc175d2e69149328d1862ce66308dec3f99298fc"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_texture_view (cognitive 21): Device::create_texture_view has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, match/switch 2 (4 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ed05ce46e4d4adbaf7199f15c9f86252ec3c7c4e816ac7c84df15e7cd21742"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::update_bind_group_state (cognitive 21): CommandEncoder::update_bind_group_state has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (6 pts), match/switch 5 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f974c0ace64e621767bcbbc4d016507656f96912f96c4612cb5251ae4ef456"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_hal::auxil::dxgi::hdr::output_desc1_from_factory (cognitive 21): wgpu_hal::auxil::dxgi::hdr::output_desc1_from_factory has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 5 (14 pts), if/else 2 (4 pts), loops 2 (3 pts) (nesting depth added 12). 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":"wgpu-hal/src/auxil/dxgi/hdr.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b64a4722c6392f9c90b695fb3472467ef94dcc6d7b71a7da7a53556aa3788a5"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestAdapterError::fmt (cognitive 21): RequestAdapterError::fmt has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/adapter.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd66724656b9181a079302bf6b19677f8a9bd8e9a78124f1351e4098bc98b01"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapped_cast_functions (cognitive 20): Writer::write_wrapped_cast_functions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 2 (6 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"241723a8c84041ebaa7e2483954779374312001e52fe1022f7e75f7b8e20eb98"}},{"ruleId":"D2","level":"warning","message":{"text":"Options::resolve_local_binding (cognitive 20): Options::resolve_local_binding has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/mod.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8b4c0538d9efae81b00c3790a462208353f09fde810547dbfe311cea843109"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockContext::write_as_expression (cognitive 20): BlockContext::write_as_expression has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 8 (12 pts), if/else 3 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":2326}}}],"partialFingerprints":{"codehealthFindingId/v1":"30df42c20e34b5b47eb59c128e794da49c7287ad06fab8172cd83d1b4477dc21"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::make_scalar (cognitive 20): Writer::make_scalar has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 2 (3 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":2043}}}],"partialFingerprints":{"codehealthFindingId/v1":"724e562b1cab7cdc10a23676eb8cdf09af747008c512037cd71419392523d801"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::coordinate_components (cognitive 20): Frontend::coordinate_components has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 6 (9 pts), boolean chains 1 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":2113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28c6d914228f2105e6bce41f0f6bafb917c6f8dd7b7bb10cf227368cb40b6fb"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_possibly_const_expression (cognitive 19): Writer::write_possibly_const_expression has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (3 pts), loops 1 (2 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":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a2efeeecd8a85493af3136464a3d23588b534286fad08dbff44939f5c5a291"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::parse_execution_mode (cognitive 19): Frontend::parse_execution_mode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9a8d14cf3d766296f0691becc0d95e0aad9b201321f4db03a5ca00da3d29ae"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::encode_commands (cognitive 19): CommandEncoder::encode_commands has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 5 (6 pts), loops 1 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/mod.rs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4631e4c1272ad7782f1a53934965f314a2923526c7e08263cff0c4c53f7c9e0"}},{"ruleId":"D2","level":"warning","message":{"text":"VertexLimits::new (cognitive 19): VertexLimits::new has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae97d9b5754d38bc0dc8a9db9d73f8ca639a652684147695a9b2fcfe73a13af9"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_info::human::print_adapter (cognitive 19): wgpu_info::human::print_adapter has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 6 (8 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-info/src/human.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0052209b394dc42bc2eea52cca701f49de6bda042cf94598d5b35e4f711a4a"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::collect_reflection_info (cognitive 18): Writer::collect_reflection_info has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 4 (10 pts), if/else 3 (6 pts), loops 2 (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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":4536}}}],"partialFingerprints":{"codehealthFindingId/v1":"1341d228865ed60cbf6fd71f070e59b36cccac529252dd68206dd460468d1352"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write (cognitive 18): Writer::write has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (6 pts), loops 3 (5 pts), boolean chains 4, match/switch 1 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":4741}}}],"partialFingerprints":{"codehealthFindingId/v1":"e866f6d282c97033c820cecad95e0e4a82bc33281d778ab6bd0d8454119cbddb"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_wrapped_math_function (cognitive 18): Writer::write_wrapped_math_function has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 3 (5 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":6346}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a9e3d3bffa49e36b8b533e24b4d623b08b8fb358cab87fd0c1cd509b8d40b9"}},{"ruleId":"D2","level":"warning","message":{"text":"Module::uses_mesh_shaders (cognitive 18): Module::uses_mesh_shaders has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 4 (7 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/mod.rs"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab569be04ae4084dc213bc957a8a01b2be4034387371d532289258eef195f24"}},{"ruleId":"D2","level":"warning","message":{"text":"Validator::validate_impl (cognitive 18): Validator::validate_impl has cognitive complexity 18 (threshold 15). Drivers by points: loops 8 (11 pts), match/switch 2 (4 pts), if/else 2 (3 pts) (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/mod.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c577c65c8be90f223852034eeb93b1c53d58409105102a9cb2a5788a8fdff7"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::front::glsl::offset::calculate_offset (cognitive 18): naga::front::glsl::offset::calculate_offset has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (3 pts), loops 1 (2 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":"naga/src/front/glsl/offset.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2db94e81a6bc3776fd7ce4df9ab7adf8f2bea36e1045467638645a4443060aa"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::front::glsl::types::parse_type (cognitive 18): naga::front::glsl::types::parse_type has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 8 (15 pts), if/else 2 (3 pts) (nesting depth added 8). Of this number, 14 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. 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":"naga/src/front/glsl/types.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"5404be3a556dbd90dffde70a1ab5de0aa839f378d999d52a2842d63c1163e6c9"}},{"ruleId":"D2","level":"warning","message":{"text":"InitTrackerDrain::next (cognitive 18): InitTrackerDrain::next has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (17 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":"wgpu-core/src/init_tracker/mod.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a411d00b88edf23690e12d9246c932b722a5a5b1a07d0bb93c9a6f48f666044"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_core::command::transfer::copy_texture_to_texture (cognitive 18): wgpu_core::command::transfer::copy_texture_to_texture has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/transfer.rs"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c53b571f82243c723ef738545d155d54c027bd80b1e37ec323610e830287a5"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::update_root_elements (cognitive 18): CommandEncoder::update_root_elements has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 7 (11 pts), loops 3 (7 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c8865f30bbfc66d770e25f1f7846e99850ba48fc0bbecc0998d50e264d1b8a"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::defer_multi_draw_via_icb (cognitive 18): CommandEncoder::defer_multi_draw_via_icb has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 5 (7 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/icb.rs"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"500074d5643e68bc76bf889fe8b9b56494a19b58a6844626255a6018049926ad"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::encode_deferred_icb_generation (cognitive 18): CommandEncoder::encode_deferred_icb_generation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (4 pts), loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/icb.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fbe2d47555b76e1db1b57bb1eeeb8fbab945894596db33fc12e6ebd0a85cae"}},{"ruleId":"D2","level":"warning","message":{"text":"PrivateCapabilities::map_texture_format (cognitive 18): PrivateCapabilities::map_texture_format has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 5 (8 pts) (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/conv.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"3817f678a36aa7ff182d8db4d090dd4eb663ab8305ab4ae6d5387bc8a2574215"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_xtask::vendor_web_sys::run_vendor_web_sys (cognitive 18): wgpu_xtask::vendor_web_sys::run_vendor_web_sys has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 2, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/vendor_web_sys.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d94fb141ade37fca450b4ce3b1dd0c4be4004180447ec4590014183515613c"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::fill_access_chain (cognitive 17): Writer::fill_access_chain has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 2 (7 pts), loops 1 (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/storage.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d45390f4dbc1bce97037745039370cd5d6edd2635e8f341725a4412a590a4b8"}},{"ruleId":"D2","level":"warning","message":{"text":"ModuleTracer::type_expression_tandem (cognitive 17): ModuleTracer::type_expression_tandem has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 4 (5 pts), match/switch 2 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/mod.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55e11ca8cb5b04d210bf30ee002d6c3ee7d4f27b0325c2ac3850724e9c73295"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::constructor_single (cognitive 17): Frontend::constructor_single has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 3, boolean chains 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"90782374cddfa39d4b30694ba95922416073f1d5b5ad2f031ba148be49a7ce64"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingContext::parse_layout_qualifier_id (cognitive 17): ParsingContext::parse_layout_qualifier_id has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 3 (8 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/types.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"4787d2ceb478bded04e4ad3f90718ace90d6300d5549bd226d68b180034ec182"}},{"ruleId":"D2","level":"warning","message":{"text":"Lowerer::finalize_type (cognitive 17): Lowerer::finalize_type has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 2 (3 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":2865}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d2a37f50f176a3a605475f646422df411c5704c2dbfeaef9d9c95189d11c5d"}},{"ruleId":"D2","level":"warning","message":{"text":"BakedCommands::initialize_buffer_memory (cognitive 17): BakedCommands::initialize_buffer_memory has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (6 pts), loops 4 (6 pts), match/switch 2 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/memory_init.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebec3c5fb2a2c1f6b2347f70a80c1eadae9d1a86b22202f41fabb704a2c0f79"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_buffer_binding (cognitive 17): Device::create_buffer_binding has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), match/switch 3, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":3383}}}],"partialFingerprints":{"codehealthFindingId/v1":"944fce137c502d03adfd6029468ab8e2d2d6b7771e13eb1f6d43be7793c20304"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_core::command::render::multi_draw_indirect (cognitive 17): wgpu_core::command::render::multi_draw_indirect has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 2, loops 1 (2 pts), match/switch 2 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":3197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73a09c117139e89d13c07659d9a2cfbc248b1c55bba1f9ca5b17af7cc2393aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Surface::configure (cognitive 17): Surface::configure has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 5 (7 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/mod.rs"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"1135063f9466eb3ad56f182fc19853a05111e1c6c4f823b6f56bed83f74518cc"}},{"ruleId":"D2","level":"warning","message":{"text":"Device::create_texture (cognitive 17): Device::create_texture has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb49f57ef1bcead50b1a1224d3cb507b27fd6a7effc19b5041d8add211a3d58"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::set_immediates (cognitive 17): CommandEncoder::set_immediates has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (17 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"5176fd93dddfdaf593cae3fac05ac9740307e60525b25918ead9518c60f6786f"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_hal::dx12::adapter::get_adapter_pci_info (cognitive 17): wgpu_hal::dx12::adapter::get_adapter_pci_info has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/adapter.rs"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbd5385710bb95398d301a481e738d0c92166568ae3d93cd9894f2dfea574c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ShaderStagesBits::write_hex (cognitive 17): ShaderStagesBits::write_hex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 2 (6 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/binding.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e60c6f56acf2948043f532dbf3d54d227fed0633ca89c5ad9a465cf8b260e9"}},{"ruleId":"D2","level":"warning","message":{"text":"BufferUsagesBits::write_hex (cognitive 17): BufferUsagesBits::write_hex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 2 (6 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/buffer.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0ca009296bbb6b4e88b442521add85e444fdeb2e92a3c8e5fec341f8128ea2"}},{"ruleId":"D2","level":"warning","message":{"text":"FeatureBits::write_hex (cognitive 17): FeatureBits::write_hex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 2 (6 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/features.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c2534892d0d8d4cf8eb327e8d6eb157e7a24af310f474c0ef888c07e87c132"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_global_layout (cognitive 16): Writer::write_global_layout has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"75115ac1f20514e9d7946b7036b7c3dd89f7203de1beb472a51ccf0b0a190603"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::update_expressions_to_bake (cognitive 16): Writer::update_expressions_to_bake has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 2 (6 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":3811}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b40d26a767a3083583add6d00cc7369d6047a50348e262f154a3353e076054"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::write_entry_point (cognitive 16): Writer::write_entry_point has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 4 (8 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bff7f3b6981af0693da2f58e8f6de29ae88b153e79c3f61d01fbb8150075a57"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::request_type_capabilities (cognitive 16): Writer::request_type_capabilities has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 3 (5 pts) (nesting depth added 7). 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":"naga/src/back/spv/writer.rs"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c52237548eccd96b2fe9e238770b63c1f00d6f302c93f940e8aa8f1a305c5c6"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontend::parse_image_load (cognitive 16): Frontend::parse_image_load has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), match/switch 3 (5 pts), loops 2 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/image.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ced518291d5583f43baffea012c22cbd122bdb7438c0f58d98fe701e4da682"}},{"ruleId":"D2","level":"warning","message":{"text":"ConstantEvaluator::unary_op (cognitive 16): ConstantEvaluator::unary_op has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 6 (14 pts), loops 1 (2 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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":2792}}}],"partialFingerprints":{"codehealthFindingId/v1":"751e172f41eee9bbc8bd5b04bfe260674783e96232651d6161794ea3d81d1fb7"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionInfo::process_call (cognitive 16): FunctionInfo::process_call has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 3 (6 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/analyzer.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ab111d308ad8877ac6d1e11247afafadfa20cd32c7814f2da35f16c56f6a49"}},{"ruleId":"D2","level":"warning","message":{"text":"naga::proc::index::oob_local_types (cognitive 16): naga::proc::index::oob_local_types has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 2 (4 pts), match/switch 1 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/index.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4d5a9fe85898d54da642f1e982844200354202a056ed9bf9bf21850f3c77d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Player::process (cognitive 16): Player::process has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (nesting depth added 5). 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":"player/src/lib.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca678bb6a2e912721540864184bd3ccbee5dfee624e368bd1dbb6bfd6ca3ccc6"}},{"ruleId":"D2","level":"warning","message":{"text":"BindGroupLayoutEntry::try_into (cognitive 16): BindGroupLayoutEntry::try_into has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/binding_model.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4584cd051e93a12b14130aef31513d292685c0801f299244d48eb753b2ba78"}},{"ruleId":"D2","level":"warning","message":{"text":"InitTracker::discard (cognitive 16): InitTracker::discard has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (16 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/init_tracker/mod.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e938f4786f05a006717c9968bd4715d3ffd100a9141447a42155b6158f4276"}},{"ruleId":"D2","level":"warning","message":{"text":"Resource::derive_binding_type (cognitive 16): Resource::derive_binding_type has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 6 (13 pts), if/else 2 (3 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/validation.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb26b249a1b180e3c62ef4488fa752eeba868c08b86f6120ea3c27a5dd095153"}},{"ruleId":"D2","level":"warning","message":{"text":"CompilationContext::consume_reflection (cognitive 16): CompilationContext::consume_reflection has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (8 pts), if/else 3 (5 pts), loops 3 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd980a3afcdda9dbbd2dab148b2060f260fcc9cb28680fbf4f9af448eaaff0e"}},{"ruleId":"D2","level":"warning","message":{"text":"Surface::configure (cognitive 16): Surface::configure has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 3, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/surface.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e593c9a1901c27ce1ff2d5bff9ea85f6eda027e3bfc71a71c7830861eed180"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandEncoder::begin_render_pass (cognitive 16): CommandEncoder::begin_render_pass has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 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":"wgpu-hal/src/vulkan/command.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b544a6bfe3e73ef850def27f563f2403da79d374be109c72d10d851c5c1c2c"}},{"ruleId":"D2","level":"warning","message":{"text":"wgpu_info::cli::main (cognitive 16): wgpu_info::cli::main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), loops 2 (3 pts), match/switch 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-info/src/cli.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eefe650cf94050b1f14d1c44d8ddfb12b60015e109c2b4aed85867515b323c6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Frontend.next_block: MethodTooLong \u2014 next_block runs 2224 significant 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 2124 over it, 22.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba167eef3973d7b4575383d2a2768bc016020d4097b97ad29b752bcd6a4de102"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Queue.process: MethodTooLong \u2014 process runs 1310 significant 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 1210 over it, 13.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":"wgpu-hal/src/gles/queue.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f118735ec5fc59b685e9eed41c549aedd69a7a187d29e0eb4f277804d79830"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: msl/writer.rs: FileTooLong \u2014 6158 significant 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 5658 over it, 12.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":"naga/src/back/msl/writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1381fadcd7408a812d3e13f16f596deba658f556f45ca84cb93ceff277fe239c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Device: ClassTooLong \u2014 3486 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 106 methods, 6 blocks, lines 237-5776. The bar is 400 significant lines; this is 3086 over it, 8.72\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1161ade5915266f6454bbc25be73264f01b4f15b809710bb3a29e5a9f8da95"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Error.as_parse_error: MethodTooLong \u2014 as_parse_error runs 823 significant 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 723 over it, 8.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/error.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"556e23c62bf6e8298cd70fb2d7ec64dc31d6c35e7d247aad1a31719a91525df2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Validator.validate_block_impl: MethodTooLong \u2014 validate_block_impl runs 795 significant 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 695 over it, 7.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/function.rs"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9447cacf412117f4296d6744c76d6ae69e39c887620e7acccd5ef1cf543bd0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Validator.validate_expression: MethodTooLong \u2014 validate_expression runs 769 significant 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 669 over it, 7.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/expression.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e82ac8250c9a18cbd817e797ae06dca855b342b6aff9bd84666c8722264b68"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hlsl/writer.rs: FileTooLong \u2014 3714 significant 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 93% of them inside a single declaration: Writer (163-5146). The bar is 500 significant lines; this is 3214 over it, 7.43\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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76253850a6c900040e7f9cac8ecaa797ce6ba04b881bd07b83d007f488ef747"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: device/resource.rs: FileTooLong \u2014 3673 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 95% of them inside a single declaration: Device (6 blocks, 237-5776). The bar is 500 significant lines; this is 3173 over it, 7.35\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fda22d8d76bd81be79d1a188f394c584905aa981f9421ce8ac6a03a7cc94001"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lower/mod.rs: FileTooLong \u2014 3532 significant 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 79% of them inside a single declaration: Lowerer (2 blocks, 1282-5437). The bar is 500 significant lines; this is 3032 over it, 7.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00fec5d6e23ccdb2fe97adca872ef47f7977da5b89bcb28b5cd5141ad1c0edae"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Lowerer: ClassTooLong \u2014 2795 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 41 methods, 2 blocks, lines 1282-5437. The bar is 400 significant lines; this is 2395 over it, 6.99\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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"45256a02a83230d405da5cb73fc704fcc6736a168282ba7d6cab0f89b0662994"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_expr: MethodTooLong \u2014 write_expr runs 663 significant 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 563 over it, 6.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3939}}}],"partialFingerprints":{"codehealthFindingId/v1":"77318b820ae306002a633cdbc3a4e174cdb29581e6a80c60b3cdb5d65d621ecf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lowerer.call_builtin: MethodTooLong \u2014 call_builtin runs 657 significant 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 557 over it, 6.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3142}}}],"partialFingerprints":{"codehealthFindingId/v1":"77db22352353e0e9a64d756934fafca28307d15fbb7dece8c584b4767d965624"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Global: TooManyMethods \u2014 197 methods, declared across 8 files: global/device.rs (71), global/mod.rs (42), global/render_pass.rs (26), global/compute_pass.rs (15), \u002B4 more file(s). The bar is 30 methods; this is 167 over it, 6.57\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote/src/global/mod.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdc569a2b56941ad125ca646716cc0d66150becf8f3af9526ece16cee5e03fe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Adapter.expose: MethodTooLong \u2014 expose runs 656 significant 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 556 over it, 6.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/adapter.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb9b71f5a7ef690c6bfe370fe7999e0e750acffa92d91b372f58071410c020e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_stmt: MethodTooLong \u2014 write_stmt runs 647 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 547 over it, 6.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2388}}}],"partialFingerprints":{"codehealthFindingId/v1":"50852f1408f7e6eec75323cf12c4b213c793d2a694373a1eb918d8a9bd8b5542"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/webgpu.rs: FileTooLong \u2014 3101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 54 free functions. The bar is 500 significant lines; this is 2601 over it, 6.20\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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9096c888a0e9d5d688514cc4ba071c66b1ec2075889cb1799a4f296a23b230f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: command/render.rs: FileTooLong \u2014 3095 significant 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 2595 over it, 6.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f6830799dbc25773082ae6b6f5521e6641a8881e44dd68d00c9209ff47daf6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spv/block.rs: FileTooLong \u2014 2894 significant 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 2394 over it, 5.79\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e46283c83575a57b8fbacbde10b55395166049d95d9195b497a3538fb1c90a4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Adapter.expose: MethodTooLong \u2014 expose runs 573 significant 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 473 over it, 5.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3cd1b65f0b3c201850d2a1e81652697ab9b99269d80c3bb9c92a8b0096d326d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proc/constant_evaluator.rs: FileTooLong \u2014 2838 significant 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 70% of them inside a single declaration: ConstantEvaluator (2 blocks, 683-3808). The bar is 500 significant lines; this is 2338 over it, 5.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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6c87420d6c5586d112a86e25e3e479a929ea0d3eccf07dee1d2b0a38fd20ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: glsl/writer.rs: FileTooLong \u2014 2831 significant 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 2331 over it, 5.66\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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"564e77673f77c5be9ed3f13de7e15b92abe013a169dc58df9547d6e004f61992"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spv/writer.rs: FileTooLong \u2014 2763 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 98% of them inside a single declaration: Writer (68-4136). The bar is 500 significant lines; this is 2263 over it, 5.53\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":"naga/src/back/spv/writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb95568f1a4b01645c16b03f9e481fdc879d0999ad72a8917a390ec027532a5e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Context.lower_inner: MethodTooLong \u2014 lower_inner runs 544 significant 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 444 over it, 5.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/context.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b00daef463935ccc32541c6c93a927c3e7527a23ed885e5717aa5642a85d1b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/resource.rs: FileTooLong \u2014 2517 significant 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 2017 over it, 5.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/resource.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"297927f4a5a6610b0894c885eed1152e75367cd9c0399a96be27470271365990"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConstantEvaluator: ClassTooLong \u2014 1974 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 43 methods, 2 blocks, lines 683-3808. The bar is 400 significant lines; this is 1574 over it, 4.94\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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"965fcfa87c8c580823bdfc86ff5523f754175e5955e97d3dff0697063dc49c61"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vulkan/adapter.rs: FileTooLong \u2014 2307 significant 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 1807 over it, 4.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31477b2e235820426635a0b780a567156d10bb0935d7933e716f41ff1e53536"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_render_pipeline_or_error_inner: MethodTooLong \u2014 create_render_pipeline_or_error_inner runs 460 significant 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 360 over it, 4.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4737}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3d620d7470d0c71dbee7d13631b41f0264bfda4018aaf9679bdb755f0e9bb1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vulkan/device.rs: FileTooLong \u2014 2286 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 88% of them inside a single declaration: Device (2 blocks, 302-3194). The bar is 500 significant lines; this is 1786 over it, 4.57\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25c4beba149b7f7c7252900bed3db0c6d5ab1ba7217f0bdd6aa85be3fe3c498"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spv/next_block.rs: FileTooLong \u2014 2252 significant 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 99% of them inside a single declaration: Frontend (15-3105). The bar is 500 significant lines; this is 1752 over it, 4.50\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d6ce7cbe1d3b7b340299c55614bbee0b296bd5353f6fb5ca43db3e0fd1d682"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VaryingContext.validate_impl: MethodTooLong \u2014 validate_impl runs 446 significant 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 346 over it, 4.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/interface.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8955eadbc7c4f71046b59815587523582429bbd64a282811e5e07b3920914f1a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Frontend: ClassTooLong \u2014 1776 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 69 methods, 2 blocks, lines 612-3212. The bar is 400 significant lines; this is 1376 over it, 4.44\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"86323a20349521bbf6941ec26cb4f3ec1c0ea941b809d91e2ee862d177fd5d04"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_math_expression: MethodTooLong \u2014 write_math_expression runs 441 significant 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 341 over it, 4.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3271}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b3df0f851c38dc56f883ac5070ed74f32ce28475e2285246fd40854dbef1ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spv/mod.rs: FileTooLong \u2014 2132 significant 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 83% of them inside a single declaration: Frontend (2 blocks, 612-3212). The bar is 500 significant lines; this is 1632 over it, 4.26\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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6d9effe584ce4313d87e00148d5599565f229edd18c8ef270b136e03ae46f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/wgpu_core.rs: FileTooLong \u2014 2121 significant 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 1621 over it, 4.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9598480bc6bc4b81279f5102e586b24eff93d033c395c7caceb3f33c24b4501"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConstantEvaluator.math: MethodTooLong \u2014 math runs 418 significant 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 318 over it, 4.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b0d7ba3f3a814b9961f3a6d2cbe4c8c6ad18116adcbfccf63f6c190690925b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_stmt: MethodTooLong \u2014 write_stmt runs 415 significant 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 315 over it, 4.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b3e97f237455aace790a235740d501f1fdba2fb6ed7b496dd5c48b741f862d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ResolveContext.resolve: MethodTooLong \u2014 resolve runs 412 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 312 over it, 4.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/typifier.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a1cfb11388769d56f13f1e7b8c02b0a8dd3f4eb8267d4ff61cc20cd5ddc12c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Validator.validate_type: MethodTooLong \u2014 validate_type runs 402 significant 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 302 over it, 4.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/type.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b7b012de63da9299d41fb73c1763e6653bc8102a48dfda912bd59119583792"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Instruction: TooManyMethods \u2014 120 methods, declared across 2 files: spv/instructions.rs (113), spv/layout.rs (7). The bar is 30 methods; this is 90 over it, 4.00\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":"naga/src/back/spv/mod.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"57dd14a5e58d22b5e2c0b682afcbfa46e2b2d2fe64e971025812ffce8eacedc4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::front::glsl::builtins::inject_standard_builtins: FunctionTooLong \u2014 naga::front::glsl::builtins::inject_standard_builtins runs 398 significant 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 298 over it, 3.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d16750903f28e91aab0ff856466705d1f1b21c3f1c3d5191374bf334ede415e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_pipeline_layout: MethodTooLong \u2014 create_pipeline_layout runs 397 significant 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 297 over it, 3.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b0169d9ac7b355123f3941f8f89a29b0e2ec70715e9952fcabe5f93ab64537"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lowerer.statement: MethodTooLong \u2014 statement runs 394 significant 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 294 over it, 3.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"776277e782090235deae6386e746d2bfd4e5c5722cf630184f528aece5bb3146"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_function: MethodTooLong \u2014 write_function runs 393 significant 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 293 over it, 3.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"478aec05f6abc595861155608c9b7de71834242d22aebb55001b3119f5e956cc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CapabilitiesQuery.new: MethodTooLong \u2014 new runs 388 significant 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 288 over it, 3.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"b795818a923a1be2f8e40ff021696cd54ab077a7c7b59606d799164bf8597a80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dx12/device.rs: FileTooLong \u2014 1926 significant 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 99% of them inside a single declaration: Device (2 blocks, 40-2801). The bar is 500 significant lines; this is 1426 over it, 3.85\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":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff872b2bd817a6d6579194ea3a31dbc80c1d8500969f06c3ce7c6ba1f1a7813f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RenderPassInfo.start: MethodTooLong \u2014 start runs 382 significant 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 282 over it, 3.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9c83372fda08bd9611a3174d617b725f393c797bfa68158e044ae97c3d22eb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_expr_plain_form: MethodTooLong \u2014 write_expr_plain_form runs 380 significant 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 280 over it, 3.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b98fd94c554ff31f55338439ab813ea790632311b9b1d1295e276e4c89cf0f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_ray_query_get_intersection_function: MethodTooLong \u2014 write_ray_query_get_intersection_function runs 379 significant 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 279 over it, 3.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/query.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7e9859466ff23c7800f4b153141b82ef2a252d0a9129d0a49a41156b658a60"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_core::command::render::encode_render_pass: FunctionTooLong \u2014 wgpu_core::command::render::encode_render_pass runs 374 significant 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 274 over it, 3.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":2265}}}],"partialFingerprints":{"codehealthFindingId/v1":"45733add7c12c29880e140e3d6bfb42b035f0da7f3049d240541a36565becaa1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Interface.check_stage: MethodTooLong \u2014 check_stage runs 370 significant 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 270 over it, 3.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/validation.rs"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"78eb73f3920c197f92ac59c7a835564ec058a091b2b305ff0cb2cdcbe0215402"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Writer: TooManyMethods \u2014 109 methods, declared across 6 files: hlsl/writer.rs (45), hlsl/help.rs (36), hlsl/ray.rs (11), hlsl/immediates.rs (6), \u002B2 more file(s). The bar is 30 methods; this is 79 over it, 3.63\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"naga/src/back/hlsl/mod.rs"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bcbc076a69eab36542477ff5384dd49318feff90a9e3a3d5e2c82ce1b9e9e52"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: CapabilitiesQuery: TooManyFields \u2014 109 stored fields beside 7 methods. The bar is 30 stored fields; this is 79 over it, 3.63\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/mod.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"351ae4a55a85cfaf1ab34b98a7c2a8f00b3b92a82c4e858bbaa067ebe516903d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MacroCall.call: MethodTooLong \u2014 call runs 363 significant 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 263 over it, 3.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3059d7ee90d435d418b16af9588a7af2b4564c87b1874882bbc39596fede65"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Device: TooManyMethods \u2014 106 methods, declared across 4 files: device/resource.rs (89), src/error.rs (8), device/ray_tracing.rs (7), src/as_hal.rs (2). The bar is 30 methods; this is 76 over it, 3.53\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd4bbe3f6e62d84c7af36781ba6fa42334d573131d43a2f45e9a5be138f22c5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Writer: ClassTooLong \u2014 1404 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 24 methods, 2 blocks, lines 82-2188. The bar is 400 significant lines; this is 1004 over it, 3.51\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":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c0fb438c33f3198a55979201123e492cb47b0f5f346b1a354dadeac912604c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Writer: TooManyMethods \u2014 105 methods, declared across 7 files: spv/writer.rs (77), spv/mesh_shader.rs (8), ray/query.rs (7), ray/hit_object.rs (5), \u002B3 more file(s). The bar is 30 methods; this is 75 over it, 3.50\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":"naga/src/back/spv/mod.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"4119097bb28e534a2308416c840a14fd8fc375c675d963c4e115107e9a3e7617"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ParsingContext.parse_statement: MethodTooLong \u2014 parse_statement runs 350 significant 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 250 over it, 3.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/functions.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c8e7617c423e48f1126aa1c188fa461fc9120dff69cb71f45a6ae6b7293327"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_render_pipeline: MethodTooLong \u2014 create_render_pipeline runs 340 significant 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 240 over it, 3.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb34714c23ca1cb694f862c187f30127f3a428984abf16e10e4471bc5bd23db3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metal/device.rs: FileTooLong \u2014 1680 significant 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 92% of them inside a single declaration: Device (2 blocks, 186-2380). The bar is 500 significant lines; this is 1180 over it, 3.36\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":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a18decdbd35a7bef13df911ec58fe6c9aa1b61e70ecd3288e040de2689bbbce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: valid/function.rs: FileTooLong \u2014 1630 significant 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: Validator (371-2265). The bar is 500 significant lines; this is 1130 over it, 3.26\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":"naga/src/valid/function.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f73403f9198a1c49196919b0ab7a7b0ef3fabde998f1b546ce1075977d65bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/validation.rs: FileTooLong \u2014 1625 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1125 over it, 3.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/validation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23019a524b0d19adf3a753e2e025c727d95f5516ab68c0411cc5a22b82c89ec0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parse/mod.rs: FileTooLong \u2014 1621 significant 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 1121 over it, 3.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"337b959239f90f81fdfa04338e522fe5a7841da20dbd4ccff13528dfa84fe8d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hlsl/help.rs: FileTooLong \u2014 1616 significant 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 1116 over it, 3.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dcf860f0b238628b133127fb392c13be5d8628925ba105faba4cae5f894e902"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: glsl/builtins.rs: FileTooLong \u2014 1579 significant 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 1079 over it, 3.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e7db8b59ef7b0cb4fe1f737905103666f8a744bae18295e45b9ea4d9f0f3a6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lowerer.construct: MethodTooLong \u2014 construct runs 314 significant 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 214 over it, 3.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/construction.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5caa323d0ffaf56c8a3f9a965e3f01bfc49f4e1d42e475997da038f43df847"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StatementGraph.add: MethodTooLong \u2014 add runs 308 significant 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 208 over it, 3.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":"naga/src/back/dot/mod.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"385e8cd74bd5c51ba616cddc0dabe426e234180c4d659d7dd438ce0b3fcf3a29"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextureFormat: ClassTooLong \u2014 1218 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 29 methods, 4 blocks, lines 128-1937. The bar is 400 significant lines; this is 818 over it, 3.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":"wgpu-types/src/texture/format.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ffd069aeed83b3ea30959a4a0fea0cad3eabae4eb82cbba5f833bd179fd67f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wgsl/writer.rs: FileTooLong \u2014 1500 significant 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 94% of them inside a single declaration: Writer (2 blocks, 82-2188). The bar is 500 significant lines; this is 1000 over it, 3.00\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3385fe2cdafebc54181a644a16e587c81688f39f30076e8fad3ad30a44c49675"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gles/queue.rs: FileTooLong \u2014 1499 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 98% of them inside a single declaration: Queue (2 blocks, 53-2014). The bar is 500 significant lines; this is 999 over it, 3.00\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/queue.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7da6835e30ded5f9ab076a1672bd54043d4c38147f98acdcdb0b0a548472907"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FunctionInfo.process_block: MethodTooLong \u2014 process_block runs 298 significant 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 198 over it, 2.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/analyzer.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"0172cff6705a0b821b4058da7427dec4bc5870a18be0077dba3f0cb04f69e5a6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Player: ClassTooLong \u2014 1186 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 43 methods, 3 blocks, lines 28-1504. The bar is 400 significant lines; this is 786 over it, 2.97\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"player/src/lib.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78c7cce943238005728d7b97fa7d3618d5a25165ee011b61a9c6c012c7c379b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_xtask::cts::run_cts: FunctionTooLong \u2014 wgpu_xtask::cts::run_cts runs 291 significant 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 191 over it, 2.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/cts.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd44b30c37ae9fc2004d49b942c03fc0c5a05fdbcc653d7138feea6dcbd6be45"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Player.process: MethodTooLong \u2014 process runs 286 significant 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 186 over it, 2.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"player/src/lib.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"085413aeaea5e1fce2291416db76bfad00a33693fc8ae0c7d6c1708f59981af1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Validator.validate_entry_point: MethodTooLong \u2014 validate_entry_point runs 285 significant 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 185 over it, 2.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/interface.rs"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0ef8685792c4b5b24a47fb49a462bbfbbf916ac451d677cb5881612431985c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dx12/command.rs: FileTooLong \u2014 1410 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 96% of them inside a single declaration: CommandEncoder (3 blocks, 75-2034). The bar is 500 significant lines; this is 910 over it, 2.82\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":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b0c75e27359e1dd2e234922373e2c75080f8ecc3786294244d2779e3b4a7aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metal/command.rs: FileTooLong \u2014 1404 significant 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 89% of them inside a single declaration: CommandEncoder (3 blocks, 157-2037). The bar is 500 significant lines; this is 904 over it, 2.81\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":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3c743d032b100b5f66ecfa54bff1b66495ab39e530e10ccfec828498c1faf6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConstantEvaluator.binary_op: MethodTooLong \u2014 binary_op runs 274 significant 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 174 over it, 2.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd5f1b76e7d3a8316f9e267a80922d2239f97d13246fbc2d241ffbbeebf2292"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_core::device::trace::record::action_to_owned: FunctionTooLong \u2014 wgpu_core::device::trace::record::action_to_owned runs 274 significant 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 174 over it, 2.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/trace/record.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"23dc90d0db324e8676767bfa0b85a04089c4966a5da1f9acb4454040541bc651"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: device/queue.rs: FileTooLong \u2014 1364 significant 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 75% of them inside a single declaration: Queue (4 blocks, 49-2249). The bar is 500 significant lines; this is 864 over it, 2.73\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":"wgpu-core/src/device/queue.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"200e5bfd627cfc46163233e611fef4a52260ec1df2fc10e8f6a3a3ef8560467d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1346 significant 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 846 over it, 2.69\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddda268dc985617bd136cdb2999957f8ee5fa991230a930a7c6846d5daebbef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: command/bundle.rs: FileTooLong \u2014 1337 significant 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 837 over it, 2.67\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f934384cfae924614e7638beb3b7e6f6a1e9645ebff514f795c7558787c66dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metal/adapter.rs: FileTooLong \u2014 1332 significant 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 832 over it, 2.66\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":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"419bc1c4603647d9e552dc324bb5826187902b230a9785b8c5827a00ccfbb721"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gles/device.rs: FileTooLong \u2014 1321 significant 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 93% of them inside a single declaration: Device (2 blocks, 126-1905). The bar is 500 significant lines; this is 821 over it, 2.64\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":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fe8be5addc48720435c9517d37882d222880e73d8fa39bca6b0f255a06744e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: texture/format.rs: FileTooLong \u2014 1314 significant 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 93% of them inside a single declaration: TextureFormat (4 blocks, 128-1937). The bar is 500 significant lines; this is 814 over it, 2.63\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":"wgpu-types/src/texture/format.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e9784112303571ef73afe5f10febd518a6c591deac177d908fce46b55618ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/binding_model.rs: FileTooLong \u2014 1292 significant 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 792 over it, 2.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/binding_model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd5211ae76a6046433d63ebee3f10d4c75d576bd1df05b1d672f76df813ff11"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Queue: ClassTooLong \u2014 1024 significant 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, 4 blocks, lines 49-2249. The bar is 400 significant lines; this is 624 over it, 2.56\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":"wgpu-core/src/device/queue.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"52abef0341f5e5caa97605e66d26133513853e599b4b4e14cce5a7fde76a58fd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Error: ClassTooLong \u2014 1018 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 1 methods, 3 blocks, lines 335-1765. The bar is 400 significant lines; this is 618 over it, 2.55\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":"naga/src/front/wgsl/error.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"3593043ca4f772a7206864b007ee4e67031ec98aed1d87e60c0adb40d26ed8c0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FunctionInfo.process_expression: MethodTooLong \u2014 process_expression runs 252 significant 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 152 over it, 2.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/analyzer.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"554c765f5c71a63857c66ee547fb1aecf8a4f2a524445a9e9b43161c7dd2d273"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BlockContext.write_image_sample: MethodTooLong \u2014 write_image_sample runs 251 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 151 over it, 2.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/image.rs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"27463268182f2b3f8bdc7ce9bf186eeb48b60f50c4462a869d980a47ecb311d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wgsl/error.rs: FileTooLong \u2014 1248 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 82% of them inside a single declaration: Error (3 blocks, 335-1765). The bar is 500 significant lines; this is 748 over it, 2.50\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdad74500ab6b4dbc463826af4551c1dc07c4e12dcd93b8020b10c3d00668bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_extract_ray_desc: MethodTooLong \u2014 write_extract_ray_desc runs 248 significant 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 148 over it, 2.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/mod.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"88906b986277beaf75a3a9f71b6096aeca3b18c1081e7813aeede2a06397189a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_bind_group: MethodTooLong \u2014 create_bind_group runs 248 significant 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 148 over it, 2.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3c30f28b353ed962578e0ea68ba653cadce3b272c9ee5551f4328615eb1ef3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Writer: TooManyMethods \u2014 73 methods. The bar is 30 methods; this is 43 over it, 2.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"07135d79f0beaedcf9704e0e7e0f03467c137fe262aa3a0a834dbec803e23224"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Frontend.parse_image_sample: MethodTooLong \u2014 parse_image_sample runs 243 significant 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 143 over it, 2.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/image.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d346e39d0e5eb258deca899a1765a17102ce52e42741a15aea612b4ee5e200"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: valid/interface.rs: FileTooLong \u2014 1207 significant 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 707 over it, 2.41\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":"naga/src/valid/interface.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeab34f0d3025d01ca7c370a280149c41693d0968a9602b3b1674d28cde4c829"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1203 significant 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 99% of them inside a single declaration: Player (3 blocks, 28-1504). The bar is 500 significant lines; this is 703 over it, 2.41\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":"player/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6455f60c0a008d33c6c6ddeb3dae2294f0e687ec8adc164a5ef19f75b116dcab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_entry_point_mesh_shader_info: MethodTooLong \u2014 write_entry_point_mesh_shader_info runs 238 significant 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 138 over it, 2.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/mesh_shader.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a54e11514b35c601949af946b296acee9791871f2303ccc1fe8bf244dcabe65"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ray/query.rs: FileTooLong \u2014 1174 significant 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 90% of them inside a single declaration: Writer (14-1494). The bar is 500 significant lines; this is 674 over it, 2.35\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/query.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12ee8fd0c064c072c90201659d0f446f0279834b0653045e9676f9617f55286"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Context: ClassTooLong \u2014 938 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 32 methods, 3 blocks, lines 48-1530. The bar is 400 significant lines; this is 538 over it, 2.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/context.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f411c4a3af4d2a27be1dc984cc81046f023b296e993ead1bc8d34709389d51"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Texture.create_view_inner: MethodTooLong \u2014 create_view_inner runs 234 significant 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 134 over it, 2.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":"wgpu-core/src/resource.rs"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a969edb323a35f0973cd591546b30166991fe968336de4cdcc0a31e60cb6b71"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::back::dot::write_function_expressions: FunctionTooLong \u2014 naga::back::dot::write_function_expressions runs 233 significant 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 133 over it, 2.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/dot/mod.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0041073c768c58eb2d23be828e21d273ad63e6235abcaf2e57f84b0a99a840"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_render_pipeline: MethodTooLong \u2014 create_render_pipeline runs 232 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 132 over it, 2.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44656b8645985efe8d05eb5809b72e1ce9d283bd981c470ae70f68549d096e8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_wrapper_function: MethodTooLong \u2014 write_wrapper_function runs 231 significant 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 131 over it, 2.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/mesh_shader.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fae31f228f63495e5ed3ce120199213ccf683ecb5a449faf981af37e5e2458"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: command/mod.rs: FileTooLong \u2014 1152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 652 over it, 2.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a858f02e5a613145b56ccb74d80b02365ce6f31aaaf5416f68f1a6f70488fa50"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Frontend: TooManyMethods \u2014 69 methods, declared across 4 files: spv/mod.rs (58), spv/image.rs (7), spv/function.rs (3), spv/next_block.rs (1). The bar is 30 methods; this is 39 over it, 2.30\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":"naga/src/front/spv/mod.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23e9738c439a3807102b32bdb12fcfbcfa860b4ef62d0780fd8bef46f3f35bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spv/instructions.rs: FileTooLong \u2014 1143 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 94% of them inside a single declaration: Instruction (22-1481). The bar is 500 significant lines; this is 643 over it, 2.29\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/instructions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf0e2ab5b23b7975c4a4364826e2ebad14b98de2b3a4e49d057ad753006d2e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_render_pipeline: MethodTooLong \u2014 create_render_pipeline runs 227 significant 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 127 over it, 2.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":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5693507a523e0798aa3aad733ae1765b0f4005964410054768bd9d989b3481"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_core::command::ray_tracing::build_acceleration_structures: FunctionTooLong \u2014 wgpu_core::command::ray_tracing::build_acceleration_structures runs 226 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 126 over it, 2.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"887f09ee4bf4870d4e8068c47954690cafae878dd7f624fc038d8eb57929dbb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::front::glsl::builtins::inject_builtin: FunctionTooLong \u2014 naga::front::glsl::builtins::inject_builtin runs 224 significant 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 124 over it, 2.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"364f3d9097238bf77b82e9be872cf2cd8338b9754477a1de60d1b95b62382b31"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: valid/expression.rs: FileTooLong \u2014 1112 significant 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: Validator (223-1511). The bar is 500 significant lines; this is 612 over it, 2.22\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/expression.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d2c7617a957e4a5fb067046d98a94ec71a201bd162bdac8849808a468cc919"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RenderPass: TooManyMethods \u2014 66 methods. The bar is 30 methods; this is 36 over it, 2.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":"wgpu-core/src/command/render.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd1f667c9251e6caa65ef21baf82fd35d888e34deb1772fbb2625f007820194"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vulkan/command.rs: FileTooLong \u2014 1100 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 97% of them inside a single declaration: CommandEncoder (2 blocks, 41-1533). The bar is 500 significant lines; this is 600 over it, 2.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":"wgpu-hal/src/vulkan/command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b542f20cd24aaea46d1ce2d1ff2db5da7781beeaac82d95af51af52f231f0af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dx12/mod.rs: FileTooLong \u2014 1092 significant 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 592 over it, 2.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9588a11a0dff1132b4eab0f6cbebaf431716550ce306f9c64df23b456436a841"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_core::command::compute::encode_compute_pass: FunctionTooLong \u2014 wgpu_core::command::compute::encode_compute_pass runs 218 significant 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 118 over it, 2.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c28e34b1833d9608540738c6db8c1b693d5693722bb847287539f5e7904842"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Adapter.texture_format_capabilities: MethodTooLong \u2014 texture_format_capabilities runs 216 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 116 over it, 2.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e4c793d67addfae417bd8468fab5a10cd09cc562041a6c89ef5744d6bfbee3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Validator.validate_block_handles: MethodTooLong \u2014 validate_block_handles runs 215 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 115 over it, 2.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/handles.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b70ba62e322ab6e70583a63f1bfb076db692310d6b7a37236abc3777f1a8570"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dx12/adapter.rs: FileTooLong \u2014 1073 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 89% of them inside a single declaration: Adapter (3 blocks, 32-1481). The bar is 500 significant lines; this is 573 over it, 2.15\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":"wgpu-hal/src/dx12/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0b30fee0228cbf18bc4f5f0f7adfb9fc01b0023c8583ab68ec6537161d5687"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::back::pipeline_constants::adjust_stmt: FunctionTooLong \u2014 naga::back::pipeline_constants::adjust_stmt runs 211 significant 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 111 over it, 2.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0fcc9c59cb0b101ca2c6bbbe039124ec99d1f1eede984f7a5542d40986d039"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: player::bin::play::main: FunctionTooLong \u2014 player::bin::play::main runs 211 significant 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 111 over it, 2.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"player/src/bin/play.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d968a6774c229a11b973e2bf123731771fa8da386ae0919bb2226d4f79e4219"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ir/mod.rs: FileTooLong \u2014 1037 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 537 over it, 2.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/ir/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43f0f0ec47419e68a11cfa58ac396689a89a85088375f40657477725e0d5cc0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::front::glsl::builtins::inject_common_builtin: FunctionTooLong \u2014 naga::front::glsl::builtins::inject_common_builtin runs 207 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"91371165a808cdbc12869af531ff75b00cc762367036ad723083b6a044c26066"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommandEncoder.begin_render_pass_inner: MethodTooLong \u2014 begin_render_pass_inner runs 207 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":1881}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae308ce6004266a4fcbede7c92ea6c50d36eac39e4c81e6a3b5d606e8abd372"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RenderBundleEncoder.finish_inner: MethodTooLong \u2014 finish_inner runs 205 significant 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 105 over it, 2.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af3ae3d2c9f9ef8392e6ccd99e97e0026cfd95b0d3a574ab3f9c8e86d8e37b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gles/adapter.rs: FileTooLong \u2014 1024 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 97% of them inside a single declaration: Adapter (2 blocks, 15-1424). The bar is 500 significant lines; this is 524 over it, 2.05\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":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba48f3f99584ca3f89c8726c2a9cb765c273fcea34e3e7220a0d891d5ec78233"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Limits: TooManyFields \u2014 61 stored fields beside 15 methods. The bar is 30 stored fields; this is 31 over it, 2.03\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/limits.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb93cf9ba189f5e9b623b6185226b15783ff29f382165c0a4076cd7b0bb542af"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.map_binding: MethodTooLong \u2014 map_binding runs 203 significant 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 103 over it, 2.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":3219}}}],"partialFingerprints":{"codehealthFindingId/v1":"165af074232308d1bee66d03bc831b07707acd90f799ae640ad5473722b0bace"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gles/egl.rs: FileTooLong \u2014 1012 significant 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 512 over it, 2.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a330f48e58848ef37ccd6416d2609ff4938f9e65aded1a4186fa870ad3289d9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_ray_query_generate_intersection: MethodTooLong \u2014 write_ray_query_generate_intersection runs 202 significant 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 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/query.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"658b32ed49fdac2f80fa03dc93097c69b1a5359646a444b4b8dcd47fef78b908"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Frontend.process_entry_point: MethodTooLong \u2014 process_entry_point runs 202 significant 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 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/function.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e12deb2cb89f31322ac504a931b70c902fae5b9d1a0f9a57d70d49204af950f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_bind_group_layout_impl: MethodTooLong \u2014 create_bind_group_layout_impl runs 202 significant 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 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":3093}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf155fde0a48af324f105e78b57d259a72fdc4c90a47ee12ce75a23fd192fd3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: glsl/functions.rs: FileTooLong \u2014 1001 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 84% of them inside a single declaration: Frontend (33-1385). The bar is 500 significant lines; this is 501 over it, 2.00\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29035594b34703700e100ccbc7ff65a74b966c86433ee33256e3c018e20655c2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BlockContext: TooManyMethods \u2014 60 methods, declared across 8 files: spv/block.rs (23), spv/image.rs (12), spv/index.rs (9), spv/mod.rs (8), \u002B4 more file(s). The bar is 30 methods; this is 30 over it, 2.00\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":"naga/src/back/spv/mod.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"a463f933e60d27ee34cf764b854a7579c3a6d4c37207bea2f5f2577cef7667bc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_bind_group_inner: MethodTooLong \u2014 create_bind_group_inner runs 200 significant 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 100 over it, 2.00\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":3847}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95893471ba724a2954e99abd15e66b43e8bf9aa531e2e9d93aef181fe791f98"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: command/compute.rs: FileTooLong \u2014 990 significant 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 490 over it, 1.98\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c0d2b1685ef3d706926a846b0101207f7666411a9a3ff1a0d845ba12579bd8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_bind_group: MethodTooLong \u2014 create_bind_group runs 198 significant 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 98 over it, 1.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d64628c80c6aa611cd30dfb3af52c4441bf26f5cc16e936e78c33ed331eaf9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Instance.init_with_callback: MethodTooLong \u2014 init_with_callback runs 197 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/instance.rs"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"d124b7a2f6570c821593139cae5f89e003ca4373f168d7da04505f3077f68c46"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.validate_texture_descriptor_inner: MethodTooLong \u2014 validate_texture_descriptor_inner runs 196 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":1827}}}],"partialFingerprints":{"codehealthFindingId/v1":"886082769df50abd562303c83ee776ca446d860a6d96a8eb2fa31e9230333f1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: glsl/context.rs: FileTooLong \u2014 973 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 96% of them inside a single declaration: Context (3 blocks, 48-1530). The bar is 500 significant lines; this is 473 over it, 1.95\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":"naga/src/front/glsl/context.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"450beb29b3f754e1c92ce7c4487b77ea49fa39624ca16bd8881b5170c5881884"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_storage_store: MethodTooLong \u2014 write_storage_store runs 193 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/storage.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"d500d473d3fce5d8f02858450b64bb0eab2a6d8d4506046e02391fa67e65799b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::back::pipeline_constants::adjust_expr: FunctionTooLong \u2014 naga::back::pipeline_constants::adjust_expr runs 190 significant 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 90 over it, 1.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53ef4599f83fa29b84e0efaa2ee1a6883fa6ba54bbd1200465c17bd704c5267"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: trace/record.rs: FileTooLong \u2014 949 significant 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 449 over it, 1.90\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":"wgpu-core/src/device/trace/record.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1b2ebcf231673a9583bb2a6a3ee3250df73c7eab43aec1a871ffa168b324a1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_function: MethodTooLong \u2014 write_function runs 189 significant 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 89 over it, 1.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0857887b80b55e571c6fb90200667120ab2c1b4e3ed0c6744142dd9bdb5c97d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gles/command.rs: FileTooLong \u2014 944 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 91% of them inside a single declaration: CommandEncoder (3 blocks, 101-1345). The bar is 500 significant lines; this is 444 over it, 1.89\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":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9079618aaebcd67b8f6806850d9e20edb0aaa2c89714b6234982661f34c2408"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_bind_group: MethodTooLong \u2014 create_bind_group runs 188 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"db89a4bdb742bc342555450d24bce75b5eb32efe8120b9a4636f99779872f33a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConstantEvaluator.cast: MethodTooLong \u2014 cast runs 185 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":2478}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc7a86914abff46b2d0e2bfff1af9bdcfa0f5e7dbd4b449d323147912d4a406"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_texture: MethodTooLong \u2014 create_texture runs 185 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"5867238d36cc48ea813a86f85b0906179b70044abf7bbaf80bb9a09f4a6da30f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Validator.validate_global_var: MethodTooLong \u2014 validate_global_var runs 183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/interface.rs"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"82dcb8942516c6433458713ee8b784ce0988f60a9561492fe31446d51fbffc02"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Inner.create: MethodTooLong \u2014 create runs 183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5670d20730cacebc2eafd6cf0801a5ded2790408ff3c276115c835b27c8c55"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metal/mod.rs: FileTooLong \u2014 913 significant 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 413 over it, 1.83\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":"wgpu-hal/src/metal/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80522f4ad50ddc000fad75f8e310e904e6120e343705106eb17b1046d457de7d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RenderPass: ClassTooLong \u2014 724 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 66 methods, 6 blocks, lines 298-4553. The bar is 400 significant lines; this is 324 over it, 1.81\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"674759dcc698102149407bd2be93a1c46c0a7f85813218ccb41be7be19f574a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spv/image.rs: FileTooLong \u2014 901 significant 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 89% of them inside a single declaration: BlockContext (231-1418). The bar is 500 significant lines; this is 401 over it, 1.80\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":"naga/src/back/spv/image.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ad7dfea3be98a0abc23cdb1395921821f43ab819b5c03ee52e28139971b204"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/instance.rs: FileTooLong \u2014 900 significant 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 400 over it, 1.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/instance.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00270993dfec79f6cbf1b7e96ce3c4d8fb2de2fa082e6f3b6e96ce94d773c2e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vulkan/mod.rs: FileTooLong \u2014 900 significant 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 400 over it, 1.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a97045ac63e3be52b6bc23c006cdf5005d63523beb14719631fc8bf0c879c2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Frontend.function_call: MethodTooLong \u2014 function_call runs 180 significant 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 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f1765c05ec5b203d5017a89a503586fe94a91d3145c146248dc01f3c0b0db1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Dispatch.new: MethodTooLong \u2014 new runs 180 significant 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 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/dispatch.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ec72de3e300861231af3ca7b894b4702451d25dd259bc45a89bcbe39930cb2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_hit_object_get_intersection_function: MethodTooLong \u2014 write_hit_object_get_intersection_function runs 179 significant 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 79 over it, 1.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/hit_object.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc3f73068ed0773a51610252a6111ad30ad61a32ab7f49f744e83486024d276"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Frontend.parse_function: MethodTooLong \u2014 parse_function runs 179 significant 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 79 over it, 1.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/function.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bf6567c862cf9f3e5d17673a3dafafe115f801e97da61958d2fba6d51c04eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pipeline.rs: FileTooLong \u2014 892 significant 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 392 over it, 1.78\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":"wgpu-core/src/pipeline.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2b07cfeacb60a9e958ff69bc41ccd4d2f11033376f0efd1f6efbcb318af322"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommandEncoder.encode_commands: MethodTooLong \u2014 encode_commands runs 178 significant 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 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/mod.rs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"342148da476717f80740074f067435ce50dacdc44238be33d4c61df6b7178d8d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: command/ray_tracing.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). The bar is 500 significant lines; this is 388 over it, 1.78\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":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1b19fdd303c011e6f16e43d1102d683aa5bba3d28755309be153be6195f9e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: global/device.rs: FileTooLong \u2014 882 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 97% of them inside a single declaration: Global (35-1358). The bar is 500 significant lines; this is 382 over it, 1.76\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":"wgpu-core-remote/src/global/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ba2162fe06f22932881c814f9dcb5c89a5c22f0b837a932020a1ddb9b765df"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.load_shader: MethodTooLong \u2014 load_shader runs 176 significant 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 76 over it, 1.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"850d3e967a7defe6b5d75844bcaa28d2b0be87c75e10d42190be0ae9244c0f84"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FunctionMap.adjust_body: MethodTooLong \u2014 adjust_body runs 175 significant 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 75 over it, 1.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/statements.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67bcbfebf9d07bd58a01058875292b766ead73438c406c373bd1ec8cf422ac3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: track/texture.rs: FileTooLong \u2014 874 significant 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 374 over it, 1.75\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/texture.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89803be4edd507c99abf138e8f8b22ac6cc833bba3e9c40e6c65576275fbb41"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.collect_required_features: MethodTooLong \u2014 collect_required_features runs 174 significant 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 74 over it, 1.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/features.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2f656f32046f6ca9c92324c1ddee51665959e95fff515c9cfbe324fcbc2c06"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Validator.validate_module_handles: MethodTooLong \u2014 validate_module_handles runs 173 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/handles.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f2a9c00d0f4258b299db542b4ffba9eef4f1e739870ffc6a96b0e1b735a2dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vulkan/conv.rs: FileTooLong \u2014 856 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 49 free functions. The bar is 500 significant lines; this is 356 over it, 1.71\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/conv.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"032fbb0d6b4642cccc4b2aab1c5eb6cf0957ee7ea2b54db8a1f930c3b3b6be9a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lowerer.lower: MethodTooLong \u2014 lower runs 171 significant 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 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"4052df5df586e87103ad273a846c1f1364c21b3b242149e6f16192383f646fa0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: valid/analyzer.rs: FileTooLong \u2014 850 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 78% of them inside a single declaration: FunctionInfo (5 blocks, 240-1285). The bar is 500 significant lines; this is 350 over it, 1.70\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":"naga/src/valid/analyzer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc902a5f61782c868c3405b51c71c0dbc6070b53aa9f2ff2d269266009daedb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::compact::compact: FunctionTooLong \u2014 naga::compact::compact runs 170 significant 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 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/mod.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f7955f95cab3d4f0745d6a391c24057f31c946516b6108c21279b6ea7b7342"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Queue.write_texture_inner: MethodTooLong \u2014 write_texture_inner runs 170 significant 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 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/queue.rs"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c0d8e0622e13f1ba28f72c1bc437022787b6c8b82a483ff5b6fc804dc2f170"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write: MethodTooLong \u2014 write runs 168 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c325bb88dad44b0460b86a37a3f13a356715e090d396d9709146c511a914e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Draw.inject_validation_pass: MethodTooLong \u2014 inject_validation_pass runs 168 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/draw.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"63acf3c1128cd330a57f46d4f04bbe694d284efb97242a26d9ed9f2aa37044c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_hal::metal::icb_probe::supports_render_icb: FunctionTooLong \u2014 wgpu_hal::metal::icb_probe::supports_render_icb runs 168 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/icb_probe.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6060b68531661f7f4e64d63ed666e0433b2fa94914bc7fe3765ead88f1853ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Writer: TooManyMethods \u2014 50 methods, declared across 5 files: glsl/writer.rs (39), msl/ray.rs (5), glsl/features.rs (3), msl/mesh_shader.rs (2), \u002B1 more file(s). The bar is 30 methods; this is 20 over it, 1.67\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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b117b36e47142235c3eeda7eadae060097285a1047da3240e3f5fd1f9696ee97"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebDevice: ClassTooLong \u2014 665 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 4 blocks, lines 1239-2937. The bar is 400 significant lines; this is 265 over it, 1.66\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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb88152781566594131ae3d7dc2b1ef03a53aa9c3554324afc4e3a022c5ca17"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FunctionInfo: ClassTooLong \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), 11 methods, 5 blocks, lines 240-1285. The bar is 400 significant lines; this is 260 over it, 1.65\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":"naga/src/valid/analyzer.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46d250ebf3c56a8ef684016514cb550fc129e0a87abd8f372032fadfd17ff45"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Instance.init: MethodTooLong \u2014 init runs 165 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada11d5bd5780dcae6dd38964669423da680a323dd6857fc7e5f7df1bf6e838b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_wrapped_binary_op: MethodTooLong \u2014 write_wrapped_binary_op runs 164 significant 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 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d277eac68c1d79daf5c0929fcdb9a7e2d87b66d25a1036be33691bd35f0cb9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_buffer_inner: MethodTooLong \u2014 create_buffer_inner runs 164 significant 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 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbd8ea4d2c05d4888fdb3fd907118ed504141e663d3da3185b49f6c1c33dc93"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Validator: TooManyMethods \u2014 49 methods, declared across 6 files: valid/function.rs (15), valid/handles.rs (12), valid/mod.rs (9), valid/expression.rs (6), \u002B2 more file(s). The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"naga/src/valid/mod.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9f21c84492046c4e116e2714100b827fc4ea11f02ba7ba7a36c541affd23d5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_hit_object_record_from_query: MethodTooLong \u2014 write_hit_object_record_from_query runs 163 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/hit_object.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"d456b90e1c9a539a7e018db92afe20a0b0559bcc1c7ecb168a511fcef2f8643f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModuleMap.adjust_expression: MethodTooLong \u2014 adjust_expression runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/expressions.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c82bd103ba70ab5e7c345598ce3f5017ba7091675ed19b0690fb40ca658a2b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RenderBundle.execute: MethodTooLong \u2014 execute runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a70284a74018caf8ef29a3c9dfcfab863ba1a1539c9d47375f8abceed0f5ca2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Device: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\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":"wgpu/src/api/device.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca86cf8152ba55bbdb44f727906da6807567294efef60e7d28f6556ca7d88f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: back/pipeline_constants.rs: FileTooLong \u2014 800 significant 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 300 over it, 1.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba52b4e168a77d2b318e1cb91b21d93870050650a54fc7129e393050bed29b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_wrapped_convert_from_std140_compat_type: MethodTooLong \u2014 write_wrapped_convert_from_std140_compat_type runs 160 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdc504dd0c58c72fcf6ef76e7af6c46263bd0f2487f873a6facdf234cfef3ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_info::human::print_adapter: FunctionTooLong \u2014 wgpu_info::human::print_adapter runs 159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-info/src/human.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6b0ba488650c91f2b95ac3025a74aba5ec92b590b2827eead366bb55f6a7ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::common::wgsl::types::try_write_type_inner: FunctionTooLong \u2014 naga::common::wgsl::types::try_write_type_inner runs 158 significant 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 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/common/wgsl/types.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee6efbb4e780f7cf9c6e24b1425fad98ce7629fdda91ad069e55c784dd6317f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Queue.submit_inner: MethodTooLong \u2014 submit_inner runs 158 significant 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 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/queue.rs"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35372affccb56463b5636e34c39bcd4af9f168c25bcd4f7a6aa9309a0abb947"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Frontend.parse_global_variable: MethodTooLong \u2014 parse_global_variable runs 157 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":2941}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2c59b1405410d648d4bacd2d0c52d443d70aa40673a40009ed9dcd203377d1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Validator.validate_expression_handles: MethodTooLong \u2014 validate_expression_handles runs 155 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/handles.rs"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9a9749841d90035b66c1f99e01496873dbadeb74201dc0efc9e716f81e659f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Adapter.texture_format_capabilities: MethodTooLong \u2014 texture_format_capabilities runs 155 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a5dcc3ff07b8b580825120481d83409f4fd5bf9e4a7877b34ad63f11c4a835"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GPUAdapter.request_device: MethodTooLong \u2014 request_device runs 154 significant 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 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/adapter.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfc794a8990ecac4bde730329d41cc8facfde93caa68612e1464f8536e08d7e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdapterShared.describe_texture_format: MethodTooLong \u2014 describe_texture_format runs 154 significant 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 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/conv.rs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19170165906caceb016fb2bb1d23bf01a64f8c77f9f5b5e4a9962266c1399a8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Interface: ClassTooLong \u2014 615 significant 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, 2 blocks, lines 471-2265. The bar is 400 significant lines; this is 215 over it, 1.54\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":"wgpu-core/src/validation.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"0278afc41f178b6306c1fbdc0bd049360c3b0469f6665b1c1e9206e01ce296ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextureFormat.from: MethodTooLong \u2014 from runs 153 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/texture.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e29ecd1956e14d565f486aff1fd385f7d79f22be3fa2c9415aa24a24ab1a740"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FunctionTracer.trace_block_impl: MethodTooLong \u2014 trace_block_impl runs 152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/statements.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"918f0746896067bcd7e00fbe5eac87dcd63af96c61c00afdc92beac312f62e97"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Surface.configure: MethodTooLong \u2014 configure runs 152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa130f8dd6f7444e2806dbaea18a10819865c2196e43b71d3cf75e773183dd26"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GPUDevice: ClassTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 29 methods, 6 blocks, lines 47-919. The bar is 400 significant lines; this is 207 over it, 1.52\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":"deno_webgpu/device.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f758314c5f8e78c4373bd349594802ccf81bc00c8e65f452bc29f53041aa34"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vulkan/instance.rs: FileTooLong \u2014 757 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 75% of them inside a single declaration: Instance (2 blocks, 275-1215). The bar is 500 significant lines; this is 257 over it, 1.51\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":"wgpu-hal/src/vulkan/instance.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bf11d1590cd0030ae1e17471aabce20aed3eaed99573324f4cbad2becad426"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lowerer.function: MethodTooLong \u2014 function runs 151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"45cf41fed82ea1846f0dc80516c321432e6608f2a7fde07542e66a44aa253cdc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreDevice: ClassTooLong \u2014 601 significant 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, 4 blocks, lines 219-1726. The bar is 400 significant lines; this is 201 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a2a893f018ebca571a119bfcb7df13230b4b4ed9ea6c1f65b7ed1f14229052"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CommandEncoder: TooManyMethods \u2014 45 methods, declared across 10 files: command/mod.rs (16), command/transfer.rs (8), command/clear.rs (4), command/query.rs (4), \u002B6 more file(s). The bar is 30 methods; this is 15 over it, 1.50\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":"wgpu-core/src/command/mod.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ade4fcf9c32328acb30dab5ad1089195a185ba2c1e4302040f5ad1762f86b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_enable_declarations: MethodTooLong \u2014 write_enable_declarations runs 150 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74231b0d3c96be47d76f7b4b9f5c7a1d659956eb673c0f1e9fab31f3ba85dfa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.new: MethodTooLong \u2014 new runs 149 significant 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 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9d1e2b05502f32f3b2a197b037689a5bb1ec819ab567112b01cc9f72600d05"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.new: MethodTooLong \u2014 new runs 149 significant 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 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5830cfe761c374dc31912b7f8967866a697035ba4a8f9423f7df56a7826e1f8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Surface.configure: MethodTooLong \u2014 configure runs 149 significant 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 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/mod.rs"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5234e8791b27bc4f9e9f0f3449d1826156466c87023c8e0288ea8304b7e315"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proc/mod.rs: FileTooLong \u2014 744 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 244 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d454adb8ecebb69c434c59cecd71820d676adf9e055ee4b65796cdeaa4f99777"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/dispatch.rs: FileTooLong \u2014 743 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 243 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/dispatch.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efa01c9c42686cb5b3320671049efb0a568f325511fb43e95f522585e3480fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_std140_compat_type_declaration: MethodTooLong \u2014 write_std140_compat_type_declaration runs 148 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d11caf1aebba9eefc248ad7e3947c690ce95ed3eb50d6ccda63ad475705639"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spv/mesh_shader.rs: FileTooLong \u2014 737 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 96% of them inside a single declaration: Writer (53-1006). The bar is 500 significant lines; this is 237 over it, 1.47\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":"naga/src/back/spv/mesh_shader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2882a7e2236dfbd1a7d4ebe5af451249c81fd280e90aa8cb5d201fc1192082b9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Validator.validate_atomic: MethodTooLong \u2014 validate_atomic runs 147 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/function.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"342f1351df1ac0a4c055c85226abec54ab07db7fe941578690a5d60f3c957392"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Queue.copy_external_image_to_texture: MethodTooLong \u2014 copy_external_image_to_texture runs 147 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/queue.rs"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad20d3be9f18507c0b7435f5a2a8f25f203750e720550cea135b1c9d0d4020f3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Resource.check_binding_use: MethodTooLong \u2014 check_binding_use runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/validation.rs"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba62892ad91652f5ab0a4b1fd977dcbf21ab6dba960acb30b2cbfecd11700a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: valid/handles.rs: FileTooLong \u2014 726 significant 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 90% of them inside a single declaration: Validator (17-954). The bar is 500 significant lines; this is 226 over it, 1.45\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":"naga/src/valid/handles.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eabbb09fa3cffcf65a208c7d4eeba6477dd34b17ec2c1415e91e32f813214a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga_cli::bin::naga::write_output: FunctionTooLong \u2014 naga_cli::bin::naga::write_output 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":"naga-cli/src/bin/naga.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d69f0113247e9b2a1e0489cbd85239d025a2333c056235cb30455b9d7f8b3ad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExpressionTracer.trace_expression: MethodTooLong \u2014 trace_expression 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":"naga/src/compact/expressions.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fd50afb9a7251ae220c33581772e0b85b82c04c48db1a8f57e52646f2826ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: indirect_validation/draw.rs: FileTooLong \u2014 721 significant 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 221 over it, 1.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/draw.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9960b5731c88ced62dafba7abb5b576a39549ad7c83238bd6027782d88764fe8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gles/mod.rs: FileTooLong \u2014 721 significant 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 221 over it, 1.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d5a46b5fb860961f314a1829a4acac332b1c644c6a446c80ad4a75fd24db7d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConstantEvaluator: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c02a90ab80def04d79b0655d558848ecc4a286053500ecdcd86b1e2a520b67"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Player: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"player/src/lib.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22586cd0f98961732d74937de439a5a129acf56c672647d35f9dc38102399f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommandEncoder.begin_render_pass: MethodTooLong \u2014 begin_render_pass runs 142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce90d8b0f14ffb4e6eae0cd1268cc120779ee5fe15df2b4d33f130aab29e3b82"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommandEncoder.begin_render_pass: MethodTooLong \u2014 begin_render_pass runs 142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b191fd9bce16cd6c89b6d085b65d8c5b3f5cfa693f838c29df5edb4dbd3eab9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_naga_bridge::features_to_naga_capabilities: FunctionTooLong \u2014 wgpu_naga_bridge::features_to_naga_capabilities runs 142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-naga-bridge/src/lib.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de36da0c722db7175d3723e784327bc8eeb931f4fe8df508b90a228b06ea821"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_logical_layout: MethodTooLong \u2014 write_logical_layout runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":3814}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9dd008587dc610e56756c56f035308e77cfc79d7b5d2324c6ac9f09173ab190"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_core::command::render::multi_draw_indirect: FunctionTooLong \u2014 wgpu_core::command::render::multi_draw_indirect runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":3197}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf783a7b43a08760b8fb89caa25b5f11a59841681bdceb995b25f3e5aad34506"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_ray_tracing_pipeline_inner: MethodTooLong \u2014 create_ray_tracing_pipeline_inner runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/ray_tracing.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1692215e165ea0a8ee07cf74e3264cdde6705ba8618212a0ed3ce23bc926e4e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_texture_view: MethodTooLong \u2014 create_texture_view runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b460bef1fbe07e819bcc42926c2453e06f2b6fc509536bb3db9d969317a96c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PrivateCapabilities.map_texture_format: MethodTooLong \u2014 map_texture_format runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/conv.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"12970d054400454107cb9ec734dd97c30a43c907dbe0feec8c0dcec680f57cf0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lowerer.expression_for_reference: MethodTooLong \u2014 expression_for_reference runs 140 significant 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 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":2438}}}],"partialFingerprints":{"codehealthFindingId/v1":"48815ec214de18f8e913bf0594eb09fb454e36f4b7c8df1548376a4bdcdc05f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_core::command::ray_tracing_pass::encode_ray_tracing_pass: FunctionTooLong \u2014 wgpu_core::command::ray_tracing_pass::encode_ray_tracing_pass runs 140 significant 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 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/ray_tracing_pass.rs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"5593b39e55513f8601f090bfbc7272011e949694b776fabdbd1ac84075d8a831"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: deno_webgpu/device.rs: FileTooLong \u2014 697 significant 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 87% of them inside a single declaration: GPUDevice (6 blocks, 47-919). The bar is 500 significant lines; this is 197 over it, 1.39\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":"deno_webgpu/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81e6753a543aa122fcbdefcd365f2267d3a6c1e5307c57303e8850fac92c8f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dot/mod.rs: FileTooLong \u2014 695 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 195 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/dot/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d66aef5116f843b7a356d4cb6f30dabb39434aed7fad844b1eec1a29a4b82e7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ParsingContext.parse_declaration: MethodTooLong \u2014 parse_declaration runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/declarations.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6ac17f5fa315eda4d149c0a494e9d7f4932ceb6beae1efcf08ac26671318bd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_task_shader_wrapper: MethodTooLong \u2014 write_task_shader_wrapper runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/mesh_shader.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da3e888a0e383eaf2c35cda0275ecf4950dce1de225ac10952883b52e407bbe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Lowerer: TooManyMethods \u2014 41 methods, declared across 2 files: lower/mod.rs (40), lower/construction.rs (1). The bar is 30 methods; this is 11 over it, 1.37\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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d78a385584a870978167393b1d0702e5747e431aabdb90628f8700e7b2fc3f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_ray_query_get_vertex_positions: MethodTooLong \u2014 write_ray_query_get_vertex_positions runs 136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/query.rs"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c849b3e57d691d4136f5ddff0adb5a1642aec3d980b135b4e58aba79ce50a4c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lowerer.call_hit_object_builtin: MethodTooLong \u2014 call_hit_object_builtin runs 136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":5197}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6ed0d6c4a6bd123d96bdaa4c4a715ea8d99bca2cb380bb2edaff4746bc70e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bin/naga.rs: FileTooLong \u2014 679 significant 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 179 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga-cli/src/bin/naga.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0743b0737bb4cdb509b91eb9919d24d84b2966e02986097e0da832b2c661ad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PrivateTextureFormatCapabilities.map_format: MethodTooLong \u2014 map_format 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":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d38117119f09fe720783f14a72c975bd06dae83834fd2617192c5b22e6ab940"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Writer: TooManyFields \u2014 40 stored fields beside 105 methods. The bar is 30 stored fields; this is 10 over it, 1.33\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/mod.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5591c7934a9fc7535260d3f29c666471d6737543559b39bed329dc38e69312"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ParsingContext: TooManyMethods \u2014 40 methods, declared across 5 files: glsl/parser.rs (12), parser/types.rs (9), parser/expressions.rs (8), parser/declarations.rs (6), \u002B1 more file(s). The bar is 30 methods; this is 10 over it, 1.33\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":"naga/src/front/glsl/parser.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"515b0c916100683a707f6babb92fafcb9c283e37223d084f015abcea1da5f961"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: deno_webgpu/01_webgpu.js: FileTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 162 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":"deno_webgpu/01_webgpu.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d1ebd50de31b8a1b7d7be1ba1b495ef44d821f90b6cc5e3206058e428601d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spv/image.rs: FileTooLong \u2014 661 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 76% of them inside a single declaration: Frontend (234-928). The bar is 500 significant lines; this is 161 over it, 1.32\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":"naga/src/front/spv/image.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fdd44d02d913f55967d467a0a31ab328686d6bea311c35a64d561c93b9cde8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_blas_inner: MethodTooLong \u2014 create_blas_inner runs 132 significant 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 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/ray_tracing.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe8ab5a8b75f446c30b18092ad69c037232fccd2117c435cf49964bd537c38e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_core::command::compute::dispatch_workgroups_indirect: FunctionTooLong \u2014 wgpu_core::command::compute::dispatch_workgroups_indirect runs 131 significant 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 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c3c240bd019ddd62f7644925e68af9e36772df38570f1f0ac4bbe523bfadf1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.load_shader: MethodTooLong \u2014 load_shader runs 131 significant 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 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"98dc7c838618e992a19389e4bb976f30f01b5dd606f4bd88785a19bc0d2232ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DeviceShared.make_render_pass: MethodTooLong \u2014 make_render_pass runs 131 significant 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 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54721e4f92a1ba5f0d6eb73b715b710668e218670d142b58d1d211d07432a3b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Parser: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd576ea8fce4fc3fd98b9511f11f4fa798544c7fe05687ba8568c212d39df3c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: command/ray_tracing_pass.rs: FileTooLong \u2014 650 significant 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 150 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/ray_tracing_pass.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bf4403df48de73e234a73574a689bb55410a6b50e8799dcedeb49dc2d29b86"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.texture_use_parameters: MethodTooLong \u2014 texture_use_parameters runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8836f61b63cfc808f08efbe76c34eb436374e437308280572ff057048064655"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RenderBundleEncoder: ClassTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 30 methods, 2 blocks, lines 160-945. The bar is 400 significant lines; this is 118 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a561581668c218057214024cae1c97bb774b15b57e19f646ce09860043db6386"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommandEncoder.begin_render_pass: MethodTooLong \u2014 begin_render_pass runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7801f50e7afeb67e48a0b3cce66c2ac29d90f7e17bff87f9b9bebf2bf644e3d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CapabilitiesQuery.capabilities: MethodTooLong \u2014 capabilities runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f50205068b75bb20a27c16e62cd5a718d84a405e2501ccf6e2fe5d54c94b992"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_initialize_function: MethodTooLong \u2014 write_initialize_function 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":"naga/src/back/hlsl/ray.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e449c9635ef77ad2e7ae00a86b9584d646e687ae8901b76afc40e98cc2aeb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::front::glsl::types::parse_type: FunctionTooLong \u2014 naga::front::glsl::types::parse_type 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":"naga/src/front/glsl/types.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbb060293c3373d43b0fc80573f614fc12594f9764e2c95d076049679e2a1be"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::front::wgsl::parse::conv::map_predeclared_type: FunctionTooLong \u2014 naga::front::wgsl::parse::conv::map_predeclared_type 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":"naga/src/front/wgsl/parse/conv.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac45b18869560ca0ba43107e103bc7817522bbec1fd7584cd7e91a88f912a342"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_bind_group_layout: MethodTooLong \u2014 create_bind_group_layout 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":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4772bb1839cd14c0bd71e9330115d66047593308c28988503042220810aeb7e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VaryingContext: ClassTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 2 blocks, lines 219-917. The bar is 400 significant lines; this is 107 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/interface.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"330752c6320fbcd7e45182c1b3b506aab1ff971e2d4ead4ca9c4b01dc1ed2eef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: valid/type.rs: FileTooLong \u2014 630 significant 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 75% of them inside a single declaration: Validator (271-1000). The bar is 500 significant lines; this is 130 over it, 1.26\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":"naga/src/valid/type.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8b73654d4ef2c550b6fa30356bbc5ed1c39114482bd06e6d74713047125b95"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CapabilitiesQuery.features: MethodTooLong \u2014 features 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":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f1ede79e83300c1fe69e3476240508258554886ebec11555258883035ca832"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GPUDevice.transform_render_pipeline_descriptor: MethodTooLong \u2014 transform_render_pipeline_descriptor runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/device.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"d624dc7f9d8741b3424c615649dc19979e5a1e8ab23c9931100565389b98c9d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::front::wgsl::parse::lexer::consume_token: FunctionTooLong \u2014 naga::front::wgsl::parse::lexer::consume_token runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/parse/lexer.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39b950e91d88ff25c89858072c28b8be07ef370f6b4e64a2e9814ad1a15173c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextureFormat.guaranteed_format_features: MethodTooLong \u2014 guaranteed_format_features runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/texture/format.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5c10cac9f63ebb0b56b6fe0c5a6e118cefff09152c146ea774b00b1e66890d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ray/hit_object.rs: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 81% of them inside a single declaration: Writer (21-801). The bar is 500 significant lines; this is 122 over it, 1.24\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/hit_object.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5a202ec2e6803c436ddf17aa63e4bf1ff24761f4261219d1f388a92e40b92e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_entry_point: MethodTooLong \u2014 write_entry_point runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c539eb26024c766ba323d9afe09b6bb12235513d6b5de8d11d74db9b4985e29"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Player.resolve_render_command: MethodTooLong \u2014 resolve_render_command runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"player/src/lib.rs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0f1fd8181bbe9823f30ec617ce12b8803fd1dba7b0954de42cee936c9daf15"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Adapter.texture_format_capabilities: MethodTooLong \u2014 texture_format_capabilities runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/adapter.rs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"5378b5c61a71c761cdbb951e9028dea63cf8bdc314c0af4a9fc369eb3c7c704b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Frontend.add_entry_point: MethodTooLong \u2014 add_entry_point runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede9fdc9dde68e01ff217f2cb08e1a756bcf47e9edc29f8db278a7dce8ccd1fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::front::wgsl::parse::number::parse: FunctionTooLong \u2014 naga::front::wgsl::parse::number::parse runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/parse/number.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"68221164e01f29602506842013635bc17ca32a72cfd8c722bdb64f74feada772"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Interface.new: MethodTooLong \u2014 new runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/validation.rs"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f74170a6c69a11174bec68ddcd030076c924d0368c03fb5868e088e0f50b8c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Buffer: ClassTooLong \u2014 486 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 18 methods, 4 blocks, lines 560-1378. The bar is 400 significant lines; this is 86 over it, 1.22\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":"wgpu-core/src/resource.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"082e26a880b51809cd643040d902e3c905861a7708b7c1d89271f0cbc0cc3ae5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lexer.next: MethodTooLong \u2014 next 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":"naga/src/front/glsl/lex.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc793c06a0a0baa756a97fd4e4fb141138a9ba82b3ba99184adfb1924b197463"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Module.generate_external_texture_types: MethodTooLong \u2014 generate_external_texture_types 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":"naga/src/front/type_gen.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdf1c64dcfa3027d75078e90d673e83040818ff15239c5567cf16633e6c246e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RenderPassInfo: ClassTooLong \u2014 481 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 3 methods, 2 blocks, lines 1123-1871. The bar is 400 significant lines; this is 81 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":"wgpu-core/src/command/render.rs"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4770fc462f8e7309477524702ac9daf85b6b1a3ed1e08aa991e82cbea9d5ab84"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lock_analyzer::main: FunctionTooLong \u2014 lock_analyzer::main 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":"lock-analyzer/src/main.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed7263ca1c12bcb812f5d8a652bd060708b0dff5c2a7a64e6f9b717098e9ec6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_pipeline_layout: MethodTooLong \u2014 create_pipeline_layout 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":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0cd5106dcd4009ac1f3a82da893cf6b4e40190552aae09c89f943a809c96ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dynamic/command.rs: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 65% of them inside a single declaration: C (238-787). The bar is 500 significant lines; this is 92 over it, 1.18\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":"wgpu-hal/src/dynamic/command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2456701703d42164fa4cdfcd6425a268d11d3246489d6f36d3bff2b2db3978d7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lowerer.call: MethodTooLong \u2014 call runs 116 significant 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 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":4069}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd3a3e0e3378717591333f57c0353c9c4ba4e5d2a16baf15f9ca71c1fbdcfb0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: deno_webgpu/texture.rs: FileTooLong \u2014 576 significant 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 76 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/texture.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15635a4272eeaa86cb08c94cdaed15efb7a14fb0356bd1d457eaa0bf7cbc8a25"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Module.generate_predeclared_type: MethodTooLong \u2014 generate_predeclared_type runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/type_gen.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbabaf9cbdd4310b5a635328d6f5f0a6ba0195ad8023521f3a256652fecdb12"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TimestampNormalizer.new: MethodTooLong \u2014 new runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/timestamp_normalization/mod.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b84c04edbf8ded7dacabe3f95c49824ec12bbf85b14dc2f837a1f4321fd362"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gles/wgl.rs: FileTooLong \u2014 573 significant 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 73 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":"wgpu-hal/src/gles/wgl.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"796349d162bbe98bf56de0ca74f2315ce38589b39ce0b276ec733dec43a6ad1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/limits.rs: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 73% of them inside a single declaration: Limits (3 blocks, 146-1094). The bar is 500 significant lines; this is 72 over it, 1.14\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":"wgpu-types/src/limits.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"520bc21ed57202cc25870b1948122c8cf492917c7a8f4ea2e3db4204a64684a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Frontend.field_selection: MethodTooLong \u2014 field_selection runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/variables.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe5e832a16760fa0444964246ca9742e9c1daaec95b01291cf484480e37c92c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lowerer.texture_sample_helper: MethodTooLong \u2014 texture_sample_helper runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":4592}}}],"partialFingerprints":{"codehealthFindingId/v1":"322bd5497228c4acd52a48707ff6b681ad0638576760676e9b9cb151623c831e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Validator.validate_impl: MethodTooLong \u2014 validate_impl runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/mod.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc7592d3211bcfcab5dbd7275432a0024b4b584180e917e3331948c3d70154c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spv/mod.rs: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 69 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18beef08c96a8635d4d7d4353144e8d876227e8c8221bd81828a5f541ad2d593"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: valid/mod.rs: FileTooLong \u2014 568 significant 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 68 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f62d737dc44e3d9e80eac47e062b8bdcb73c19a819d730bd5dec7136ef9bb9f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExpressionContext: TooManyMethods \u2014 34 methods, declared across 2 files: lower/mod.rs (25), lower/conversion.rs (9). The bar is 30 methods; this is 4 over it, 1.13\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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f484a6476dd6cffb54399ca80ecd07c009d74de6022d42e9f07648d27b67640"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::back::pipeline_constants::process_overrides: FunctionTooLong \u2014 naga::back::pipeline_constants::process_overrides runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4809fce1d8482a11800ba9c2fdc5813abd2e7527718c9d33e247bcdbc9752ae"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Texture: ClassTooLong \u2014 445 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 14 methods, 7 blocks, lines 1841-2720. The bar is 400 significant lines; this is 45 over it, 1.11\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":"wgpu-core/src/resource.rs"},"region":{"startLine":1841}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca03c6c7efdd8e954f30a953a4417d774e155d8d9dd2ad29fd8cb9cb671c0a2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Module.analyze_mesh_shader_info: MethodTooLong \u2014 analyze_mesh_shader_info runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/mod.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4fa339f2168b81f670e33828116e5a381cf040b41f6c9aec4e1fcd9e7aef63"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proc/typifier.rs: FileTooLong \u2014 550 significant 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 79% of them inside a single declaration: ResolveContext (2 blocks, 220-817). The bar is 500 significant lines; this is 50 over it, 1.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/typifier.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1450ade747ccd06f196d9b1fb17f144c8be78f0089d92eb63c7f48a618aed5d5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BlockContext.write_image_query: MethodTooLong \u2014 write_image_query 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":"naga/src/back/spv/image.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"45638aef2d53802221631cbd2c4d689984cbafbfeb03d22715d1e1dc0660570d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Frontend.parse: MethodTooLong \u2014 parse 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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b999108e490aef80cc958ee1a03fdd78b13d887f7e1baf3986bce99fbc9da67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: msl/mod.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":"naga/src/back/msl/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e925c02ae10dbe5f63d0b4d9c79e57e4697944a4fa23fd5a3e6398e2643da3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ResolveContext: ClassTooLong \u2014 436 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 2 blocks, lines 220-817. The bar is 400 significant lines; this is 36 over it, 1.09\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/typifier.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a948eb00d39275edef0b9d657e849fa11483a7bb5674ee7c9762766d55db0a6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_mesh_shader_return: MethodTooLong \u2014 write_mesh_shader_return runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/mesh_shader.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fec1b41d236c0362335da4e93ddfbeb856e073a853f7f00acb2db2f6e67496"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Writer.write_global_variable: MethodTooLong \u2014 write_global_variable runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":3553}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b6d560ac98237e60e571c14e24858e39ba40f9f6873203ba7cd1e7c751fc2c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ParsingContext.parse_postfix: MethodTooLong \u2014 parse_postfix runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/expressions.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"753784921d124bb7222b1d5a423663d7a8c5fdb481e6b06e92bcd3137ab28fa7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Interface.populate: MethodTooLong \u2014 populate runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/validation.rs"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d382b8908ee3f02ad2e1e546f24abca2e9d987f37d9785629096a539bf48b1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: naga::front::glsl::builtins::inject_double_builtin: FunctionTooLong \u2014 naga::front::glsl::builtins::inject_double_builtin 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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"0545177d79c16622e295935260ef9eb9ef5f6cfdfd77074e61512959001572f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metal/icb.rs: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 38 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":"wgpu-hal/src/metal/icb.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5fc8cd39eb950207f245687ee1fdb661e386077c401e70740fd7624bbedb33"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Namer.reset: MethodTooLong \u2014 reset runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/namer.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8252389af6d8752ca9113c69302e48f71419ba191076a5b26fa5b95b0c947c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Context: TooManyMethods \u2014 32 methods, declared across 3 files: glsl/context.rs (25), glsl/types.rs (6), glsl/functions.rs (1). The bar is 30 methods; this is 2 over it, 1.07\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":"naga/src/front/glsl/context.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe56135b905342cc69995a38d48d3c8f19cb23eb5c44baa5c85baed07166c98c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TypeInner: TooManyMethods \u2014 32 methods, declared across 7 files: proc/type_methods.rs (20), hlsl/conv.rs (3), proc/index.rs (3), lower/conversion.rs (2), \u002B3 more file(s). The bar is 30 methods; this is 2 over it, 1.07\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":"naga/src/ir/mod.rs"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"14893e2395105c38c7eb2b3648a2ba33f13109e81db5f4c813d2286c129d2293"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RenderPass: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/render_pass.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"127710b396385829badf4899d92cc465bf630138a5f53734d6cc790654ca3e49"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Limits: ClassTooLong \u2014 418 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 15 methods, 3 blocks, lines 146-1094. The bar is 400 significant lines; this is 18 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":"wgpu-types/src/limits.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"751f354b8e684e846dfaa7fae01b58cd14eba1e107d7e9c1157bb8b1ed06f094"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommandEncoder.defer_multi_draw_via_icb: MethodTooLong \u2014 defer_multi_draw_via_icb runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/icb.rs"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"c531a718c243ae697ef499fa39d4d7bcc43c6d3ca4f85609328bb49ea696a499"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Device: TooManyFields \u2014 31 stored fields beside 106 methods. The bar is 30 stored fields; this is 1 over it, 1.03\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f44b6a8f8d324821331e78d3c2c2fcf6288c1a73284b6ffa87434cc6cd15430"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Frontend.constructor_single: MethodTooLong \u2014 constructor_single runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c945fb4ac5a5ee035f9f222b2923be96ea9fb43a48e09de42ada79016777151c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.create_texture_view: MethodTooLong \u2014 create_texture_view runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7d47d3cdb72b168c3101c94f7384b9e99f6e8c08b4b3b127bdcf38d706841b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConstantEvaluator.try_eval_and_append_impl: MethodTooLong \u2014 try_eval_and_append_impl runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3646a2e82d80ea22c002fa99025f991b995c071fbac0d17f6b79bab0f6c8851"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Player.resolve_command: MethodTooLong \u2014 resolve_command runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"player/src/lib.rs"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fa987af1a417c155ab17d9eaa0e6447a80e90d599fa33ce26d2024d7f17fa7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_core::command::query::resolve_query_set: FunctionTooLong \u2014 wgpu_core::command::query::resolve_query_set runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/query.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6df3b69e6751e7711b8b083ec79d07628f16a829394182975981bb6cc18426f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Instance.request_adapters: MethodTooLong \u2014 request_adapters runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/instance.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"c020d5c2863e21504a283af8c33c7de0a3a2f1f7fa5b6cb2576110c57bcb35bd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommandEncoder.set_render_pipeline: MethodTooLong \u2014 set_render_pipeline runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"29df53195887e7620bd3ca87f07069cfcf88813ddcb469e0f5c61a3c22b5a955"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Device.get_acceleration_structure_build_sizes: MethodTooLong \u2014 get_acceleration_structure_build_sizes runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":2821}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5fcb34077203c5e5c2b4bc01da6a40c2c3e07a47a013a4a19e4beca3c1f4910"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreDevice.create_bind_group: MethodTooLong \u2014 create_bind_group runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b057fcc8af0d11f7ff0c9de5e24b400ba753e58dd6227e6ef1752cc1d46ed55"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: swapchain/native.rs: FileTooLong \u2014 509 significant 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 9 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/swapchain/native.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fccd58c38599e0fe56562471ddbeff5cd8942db71d2c1c51044e83dc8ff12a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wgpu_xtask::vendor_web_sys::run_vendor_web_sys: FunctionTooLong \u2014 wgpu_xtask::vendor_web_sys::run_vendor_web_sys runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/vendor_web_sys.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1b71142858f181dc3a83626d836e46a91c981eb13aabb4a5122d7ac6de9fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (108 shared lines): wgpu-core/src/command/compute.rs:626-912 | wgpu-core/src/command/ray_tracing_pass.rs:674-861 \u2014 These two members are variants of one another: 108 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"466fac665625f9826ba88cd0a638cda63a7bd9428f6f4a1a972c0900cb7b2fec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): naga/src/front/wgsl/error.rs:91-107 | naga/src/span.rs:288-305 \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":"naga/src/front/wgsl/error.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61eeae26207ab2d7b7748e5ad2265ddf021709197fca8d5e1014012aabe60a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): naga/src/back/dot/mod.rs:65-494 | naga/src/back/glsl/writer.rs:1630-2309 | naga/src/back/msl/writer.rs:4138-4685 | naga/src/back/wgsl/writer.rs:756-1321 | naga/src/valid/analyzer.rs:901-1284 | naga/src/valid/function.rs:753-809 | naga/src/valid/handles.rs:698-953 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/dot/mod.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2857dd876a96ad46609ff61dc7ea2818dd5a7e06545e16a5f3154475c75dc8f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): naga/src/front/spv/mod.rs:2150-2179 | naga/src/front/spv/mod.rs:2248-2281 | naga/src/front/spv/mod.rs:2303-2367 | naga/src/front/spv/mod.rs:2373-2454 | naga/src/front/spv/mod.rs:2617-2707 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":2150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91dd2c3a5eafbdc080094f3af0eac635b24526d10f55e7e483234fac182c915"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): naga/src/back/hlsl/help.rs:1031-1036 | naga/src/back/hlsl/help.rs:1095-1100 | naga/src/back/hlsl/help.rs:1155-1160 | naga/src/back/hlsl/help.rs:1233-1238 \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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ca589f8b9ab31ec2b38aeebd872cd2ccd63458b7fff3e3f9271c1c5aa72358"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): naga/src/front/spv/mod.rs:2124-2144 | naga/src/front/spv/mod.rs:2150-2179 | naga/src/front/spv/mod.rs:2185-2206 | naga/src/front/spv/mod.rs:2212-2242 \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":"naga/src/front/spv/mod.rs"},"region":{"startLine":2124}}}],"partialFingerprints":{"codehealthFindingId/v1":"51269d2c8f36f746447ed3672e22c694d160abef880861f84d380e6db0efe907"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (113 corresponding lines): wgpu-core/src/command/transfer.rs:1224-1336 | wgpu-core/src/command/transfer.rs:1343-1462 \u2014 These two members are one piece of code written twice and then edited apart: 113 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/transfer.rs"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bab35db5e7e3f1f80a3ffb792aaada88b1df32f6faa2d1e69b55f7f726c4b03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): wgpu/src/backend/wgpu_core.rs:1255-1335 | wgpu/src/backend/wgpu_core.rs:1340-1418 \u2014 These two members are one piece of code written twice and then edited apart: 79 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"934648b6e9bc534aae222ab197ee1bb83a6cc092e73ee94bd87f1cdf76162f1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 66\u002B corresponding lines): deno_webgpu/compute_pass.rs:126-191 | deno_webgpu/render_bundle.rs:117-185 | deno_webgpu/render_pass.rs:181-247 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 66 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":"deno_webgpu/compute_pass.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d63f228ce196c0ed87352526088eac398158e77e19a709620590d153512654"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): wgpu-core/src/command/bundle.rs:1078-1145 | wgpu-core/src/command/render.rs:2880-2960 \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":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"42bcb3fe31f12d3f3501795cf54a0c6147a43240d2a28256891e4ad122b09372"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): naga/src/front/glsl/functions.rs:1032-1115 | naga/src/front/glsl/functions.rs:1123-1184 \u2014 These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b5cd9058baeaf9631645757703808ce9451b23d16270da0110f4faceb2ff3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (81 corresponding lines): wgpu-core/src/command/compute.rs:476-559 | wgpu-core/src/command/ray_tracing_pass.rs:576-656 \u2014 These two members are one piece of code written twice and then edited apart: 81 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d0d968f674b27107946c8da5cc0c0b5ef48162330c724351492068f6f413ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): wgpu-core/src/resource.rs:1298-1369 | wgpu-core/src/resource.rs:2040-2106 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/resource.rs"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4357b7de859d592cce962d3fac83d40e855da78f70d6ecd62b53211be32a60d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): naga/src/front/spv/mod.rs:1121-1174 | naga/src/front/spv/mod.rs:1189-1244 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7cd6ee99cb2ac369e44d8f53578a50e87e4d264ce75cca2390b1aecaa69048"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): wgpu-hal/src/dx12/view.rs:228-290 | wgpu-hal/src/dx12/view.rs:296-367 \u2014 These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/view.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"993c75f13b16d48bb663299571c27a0f5c61f1e984144090eadea146671d902f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 55\u002B corresponding lines): deno_webgpu/webidl.rs:43-99 | deno_webgpu/webidl.rs:153-209 | deno_webgpu/webidl.rs:248-302 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 55 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":"deno_webgpu/webidl.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d1ce147f84b2793d45924a46624c08b200d09ea7b942670d038fcdb318a718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 44\u002B corresponding lines): naga/src/back/hlsl/help.rs:1107-1150 | naga/src/back/hlsl/help.rs:1167-1228 | naga/src/back/hlsl/help.rs:1245-1305 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 44 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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"de97a6ce44d50100c09f41a913388f315726834d3c3e0fe242dd943d5aa84f90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): wgpu-types/src/binding.rs:196-196 | wgpu-types/src/buffer.rs:47-47 | wgpu-types/src/features.rs:216-216 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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":"wgpu-types/src/binding.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47e91add4d131f357130582d3216d7682d5cd06bdb86c6db88a290a82df1ac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): naga/src/front/spv/image.rs:838-883 | naga/src/front/spv/image.rs:890-927 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/image.rs"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e2b5503147eec376f5995f12ded99014a8918ffaea715028465f649196aa5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): wgpu-core/src/command/bundle.rs:1898-1937 | wgpu-core/src/command/render.rs:671-721 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed3b0f1b6ad401ed13071d7a390351d0cf0c2056b40b68fca38376fea57dee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): naga/src/front/spv/mod.rs:1068-1103 | naga/src/front/spv/mod.rs:1254-1294 \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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ccb9a603a39e6bc024069005a20048fc85848a36e5217fcbc9385111ed9eb39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): naga/src/back/spv/writer.rs:2886-2923 | naga/src/back/spv/writer.rs:2925-2954 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":2886}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1136871269493f043c71bf830758e1b1161e06706122996c88f175812564002"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): wgpu-core/src/device/resource.rs:4536-4567 | wgpu-core/src/device/resource.rs:4691-4717 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4536}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f6ff2d3367ee14729b2fd7be937f173cf36c85a0f280b388b583aae8b474ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): naga/src/back/hlsl/writer.rs:5288-5335 | naga/src/back/hlsl/writer.rs:5346-5391 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":5288}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56e43e67bda092436a9b1599ef7c3876a2a345e0acbf8319a6b8f2136b05132"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): wgpu-core/src/command/bundle.rs:1239-1277 | wgpu-core/src/command/render.rs:3152-3195 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"782fb6d97c5cc582c90509aaf4f57a25fbabc54901f77796d55d7e59a6f7b7d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): wgpu-hal/src/dx12/suballocation.rs:460-497 | wgpu-hal/src/dx12/suballocation.rs:503-537 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/suballocation.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"68294362b3f76ea69b53a82c131d0adfe9f37b1ab63b991b7b562e2d07ea99f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): naga/src/back/spv/index.rs:365-396 | naga/src/back/spv/index.rs:422-464 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/index.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"990ee9b111fc252214ca980bf9a50b97e41c710fecc4fef110145183159a5d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): naga/src/back/glsl/writer.rs:4028-4066 | naga/src/back/glsl/writer.rs:4077-4116 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":4028}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ec2444b9c032a40bb9d23ae0752726974c884739822373b01e62cc3ddba4be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 32\u002B corresponding lines): wgpu-hal/src/dx12/suballocation.rs:289-320 | wgpu-hal/src/dx12/suballocation.rs:328-359 | wgpu-hal/src/dx12/suballocation.rs:367-399 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/suballocation.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"c538e1faebbacf27a666eaf79defaafe93d57b3a9d4d8db80b5651cff29b92bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): wgpu-hal/src/metal/command.rs:702-737 | wgpu-hal/src/metal/command.rs:747-776 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"d751442483d27460fd5f2987c9e57a25c4d651fab280cb178e63694b686f608d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): wgpu-core/src/command/ray_tracing_pass.rs:444-475 | wgpu-core/src/command/render.rs:2217-2255 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/ray_tracing_pass.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"8450d98e41180b4b3fe445acc40cd40f8025008dad72efa3d78383db753c3df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): wgpu-core/src/indirect_validation/dispatch.rs:294-323 | wgpu-core/src/indirect_validation/draw.rs:182-211 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/dispatch.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbf45035ace7a8ba160ee20abbde38cf31d16f099ff394c562e4ce9b12b751e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): wgpu-hal/src/auxil/dxgi/dxgi_lib.rs:19-43 | wgpu-hal/src/dx12/mod.rs:225-248 \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":"wgpu-hal/src/auxil/dxgi/dxgi_lib.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28a57b796854952277fe6cf05742d7ea37e6e18576221b2f254a751d7186088"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): wgpu-core/src/command/transfer.rs:910-939 | wgpu-core/src/command/transfer.rs:961-990 | wgpu-core/src/command/transfer.rs:1012-1043 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/transfer.rs"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d6d3e90b89d47725886cc9c03095fb648305be986cef217e5f73ba93108ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): wgpu-core/src/command/query.rs:327-353 | wgpu-core/src/command/query.rs:379-411 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/query.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f623a7ebe3ba6818cf7613005dcfcdfbba3efa1beb976d3355154109aeb69135"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): naga/src/back/spv/writer.rs:3139-3162 | naga/src/back/spv/writer.rs:3169-3217 \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":"naga/src/back/spv/writer.rs"},"region":{"startLine":3139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38ae473a20b40f95a5b76a92a2bdb0ec29d0c0aa53ae8935340921ee31529c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): naga/src/back/msl/writer.rs:1492-1520 | naga/src/back/msl/writer.rs:1637-1659 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"581805a88fcd917107270a2a385316154df59a1ca14d86406041ce441598b2aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): naga/src/back/glsl/writer.rs:1509-1522 | naga/src/back/hlsl/writer.rs:1407-1421 \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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c142e8d212e9f806c8d8561658e3953d8393b68097f83b8f7a01d73d5ce5236"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): wgpu-core/src/binding_model.rs:1793-1810 | wgpu-core/src/resource.rs:3626-3650 | wgpu-core/src/resource.rs:3873-3892 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/binding_model.rs"},"region":{"startLine":1793}}}],"partialFingerprints":{"codehealthFindingId/v1":"31da02408594b55dfacbcef2fd6df6ff365128395639d0d3b6a5189a92f1125b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): wgpu-hal/src/dx12/mod.rs:148-175 | wgpu-hal/src/dx12/mod.rs:256-276 \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":"wgpu-hal/src/dx12/mod.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"276455834d769d3c011f83bf3d8e0f5e688268e2328adbd975b9fb7de2cab79e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): wgpu-core/src/track/texture.rs:577-608 | wgpu-core/src/track/texture.rs:618-645 | wgpu-core/src/track/texture.rs:668-703 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/texture.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a8be701b2bb372126ebca9bc2058457e97e1fe684c8650f52ef582fddcf441"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 48\u002B corresponding lines): naga/src/back/hlsl/mod.rs:813-860 | naga/src/back/msl/mod.rs:849-896 | naga/src/back/spv/mod.rs:1194-1244 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 48 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":"naga/src/back/hlsl/mod.rs"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"54962f268e08349574abd20602694ad9a406208d09807a208d1e52d0e9c88a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): naga/src/front/spv/mod.rs:1005-1024 | naga/src/front/spv/mod.rs:1034-1056 | naga/src/front/spv/mod.rs:1304-1327 \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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a498212cf6b9a64701fc824101d9e1128f4b4b9b678d5dba421f399d944ff76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): deno_webgpu/device.rs:488-515 | deno_webgpu/device.rs:526-554 \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":"deno_webgpu/device.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfe4703c555ab13d46865c49877781f9d6a3e2bca9975b2b999fb2ab4b0465e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): wgpu-hal/src/dx12/command.rs:1547-1580 | wgpu-hal/src/dx12/command.rs:1586-1619 | wgpu-hal/src/dx12/command.rs:1747-1779 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 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":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4210780112f9de0969997cba6455dafe15a9324888c2b2ca77e75e762bc276"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): wgpu-core/src/device/resource.rs:1606-1631 | wgpu-core/src/device/resource.rs:1694-1710 | wgpu-core/src/device/resource.rs:5470-5489 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a82f61da6123b78f976e64c9f98a272d7a8dc56680e1d52135bd1e6412400ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): naga/src/front/wgsl/lower/mod.rs:4520-4537 | naga/src/front/wgsl/lower/mod.rs:5396-5413 | naga/src/front/wgsl/lower/mod.rs:5419-5436 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":4520}}}],"partialFingerprints":{"codehealthFindingId/v1":"c520ac4c6bd2421cf8a105f6c0a80b29254f6ed606c9bbbde026f9a0d262b080"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wgpu-core/src/pipeline.rs:733-748 | wgpu-core/src/resource.rs:3268-3281 \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":"wgpu-core/src/pipeline.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e39842cfcad4acd6e994f0a615a779d1a9bf0cecefed086adf1511a9cb7df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): wgpu-core/src/pipeline.rs:103-124 | wgpu-core/src/pipeline.rs:610-631 | wgpu-core/src/pipeline.rs:1244-1265 | wgpu-core/src/resource.rs:3503-3522 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/pipeline.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a2cdbc30941ddfce19982302e1894503cea88e196bfd310447ae47a524620b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): wgpu-hal/src/dx12/command.rs:215-243 | wgpu-hal/src/dx12/command.rs:245-268 \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":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"117e0d6b0f2729f98b3bcd72b2c0c00b8bd549b2d4474ba71a03c6f1607e685b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): naga/src/front/spv/mod.rs:2866-2882 | naga/src/front/spv/mod.rs:2889-2906 \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":"naga/src/front/spv/mod.rs"},"region":{"startLine":2866}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fc6bebfb1ae0f4982021f4d35f0bd6ab34d824c964935723fd8d1d8bdc8e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): wgpu-core/src/command/mod.rs:330-354 | wgpu-core/src/command/mod.rs:365-391 \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":"wgpu-core/src/command/mod.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b360ddbd834c0ff77a016d3834c5cc40e8fa9277505d9afa1a098a60af23994"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): wgpu-hal/src/gles/egl.rs:1470-1494 | wgpu-hal/src/gles/web.rs:464-487 | wgpu-hal/src/gles/wgl.rs:878-900 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"898e494668031500b8fb5c34310c1d06d5ad2be4c71e478c616b6efe514246bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 32\u002B corresponding lines): wgpu-core/src/command/compute.rs:1182-1213 | wgpu-core/src/command/ray_tracing_pass.rs:125-156 | wgpu-core/src/command/render.rs:3622-3653 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab225df9951f038405306ae813421278fdc5754bb7080c1bfeb84bd8bdadfd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): wgpu-core/src/track/buffer.rs:665-691 | wgpu-core/src/track/texture.rs:830-865 | wgpu-core/src/track/texture.rs:875-905 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/buffer.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"7784adf855c1983e29ca5eb9f405c556464e4022ac8f0d06952022435a12515b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 21\u002B corresponding lines): wgpu-hal/src/vulkan/instance.rs:481-506 | wgpu-hal/src/vulkan/instance.rs:512-536 | wgpu-hal/src/vulkan/instance.rs:542-564 | wgpu-hal/src/vulkan/instance.rs:569-590 | wgpu-hal/src/vulkan/instance.rs:721-741 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/instance.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb8eadfe28770b6f2e6688aef03c4a5c2b7bfcfdb5751b83f4377dd7707273f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): wgpu-core/src/command/mod.rs:222-249 | wgpu-core/src/command/mod.rs:271-293 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/mod.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c281243eb4a30e567db94732a532c7c43e105577321de134e827917f9c69a52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): naga/src/back/hlsl/help.rs:314-354 | naga/src/back/msl/writer.rs:6542-6578 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e08ec9f548351407cd0371cb511172dc2fa72eeb3523facb1fa199211f64ee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wgpu-core/src/device/resource.rs:3819-3843 | wgpu-core/src/device/resource.rs:5605-5621 \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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":3819}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e70801e179c342b5fcfe26ee46e0a84049715b206250b9b2fe8903cd7c82fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): wgpu-core/src/device/resource.rs:2260-2282 | wgpu-core/src/device/resource.rs:2443-2460 | wgpu-core/src/device/resource.rs:3036-3064 | wgpu-core/src/device/resource.rs:4338-4359 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":2260}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa9d598ab15e567dab346a665c4e3789c30e901f7e24e98c971d2333aad0abc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): wgpu-core/src/command/bundle.rs:1199-1232 | wgpu-core/src/command/render.rs:3111-3145 \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":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb7b0c4bf7a8637da9ee084fbe928840fabae6b58c19ab1e91b2ee1b56e9243"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): naga/src/back/glsl/writer.rs:462-486 | naga/src/back/hlsl/writer.rs:1428-1450 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"71eaf006a6978855969a62e8810f629dc388617c165e8addbdb797556d0f283e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): wgpu-core/src/pipeline.rs:680-699 | wgpu-core/src/pipeline.rs:1330-1349 | wgpu-core/src/ray_tracing_pipeline.rs:349-368 \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":"wgpu-core/src/pipeline.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"4639a51834ee4e6b8b78e93d0767b8b8f40e5ac726385f960f751e5c64503d69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): wgpu-hal/src/auxil/dxgi/dxgi_lib.rs:46-62 | wgpu-hal/src/auxil/dxgi/dxgi_lib.rs:69-90 | wgpu-hal/src/auxil/dxgi/dxgi_lib.rs:94-111 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/auxil/dxgi/dxgi_lib.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd46069a467095317e7e53b9b1587eeb84c89be8080fb1ad04387ee5b386183"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): wgpu-hal/src/dx12/suballocation.rs:205-223 | wgpu-hal/src/dx12/suballocation.rs:229-249 \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":"wgpu-hal/src/dx12/suballocation.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcc76c6881df6168a92c3e2297bc320de60c88949891bcf35f2464c62c992ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): wgpu-core/src/command/compute.rs:286-306 | wgpu-core/src/command/ray_tracing_pass.rs:339-359 \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":"wgpu-core/src/command/compute.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d86a46418ae5f0ced06ec89b5b9fcfc431fffc447fae88a40dd31f9d41840f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wgpu-hal/src/gles/device.rs:1683-1699 | wgpu-hal/src/gles/device.rs:1719-1735 \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":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":1683}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d4ad0592e5f2bfd04ed8b0348c0670c17f9051e2f7c24595ac41340ef0487c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): wgpu-core/src/indirect_validation/draw.rs:842-854 | wgpu-core/src/indirect_validation/draw.rs:860-872 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/draw.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"99203c163bba88fbbc0032f7ce0e32a9762ebea96889c11967341a7be44b8a37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wgpu-hal/src/gles/command.rs:1103-1124 | wgpu-hal/src/gles/command.rs:1160-1181 \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":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f669c9e23fcbba85b1c4c5a543275ca12a819743d63efbdfbf0d69e7ff1122"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wgpu-core/src/instance.rs:323-351 | wgpu-core/src/instance.rs:357-368 \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":"wgpu-core/src/instance.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"3877ef9d8677191f06b35b72ccfcf2367c602b2d5fe37de41720b40d1772abb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wgpu-core-remote/src/storage.rs:107-122 | wgpu-core-remote/src/storage.rs:131-146 \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":"wgpu-core-remote/src/storage.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94fe9fe0c71a9561a70f6962f8e4eeee82445ff769979c1795e5a0aa4538431"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): wgpu-core/src/command/compute.rs:918-946 | wgpu-core/src/command/ray_tracing_pass.rs:867-895 \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":"wgpu-core/src/command/compute.rs"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"e226a1cd2b084e1967ae03516d8f65c53d6968f1ed4e90ad352cc0b54d08257a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): wgpu-core/src/command/render.rs:4218-4238 | wgpu-core/src/command/render.rs:4267-4288 | wgpu-core/src/command/render.rs:4320-4341 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":4218}}}],"partialFingerprints":{"codehealthFindingId/v1":"1954d7af70eac9eb4fe7db5129e506a437772e624473a361830d8b350d8fbc7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): naga/src/back/glsl/writer.rs:994-1012 | naga/src/back/glsl/writer.rs:1019-1037 \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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3a998f0dacba7b26d5f5cdde5b9cfc9672d375859fdec190ff573c96bf1bc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): wgpu-core-remote/src/global/instance.rs:169-189 | wgpu-core-remote/src/global/instance.rs:214-232 \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":"wgpu-core-remote/src/global/instance.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e696568217174b2e656772593de1fdbb05619f1d8fc47bbad696b5e5b3a3099"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): wgpu-core/src/track/buffer.rs:161-186 | wgpu-core/src/track/buffer.rs:392-416 | wgpu-core/src/track/buffer.rs:426-448 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/buffer.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b305333b2187c5656b78beaffaac33a3c7dbb24f8f71c8bf98aeafa7599b26c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): naga/src/front/spv/mod.rs:2047-2057 | naga/src/front/spv/mod.rs:2059-2074 \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":"naga/src/front/spv/mod.rs"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1830048f0f3c572bb5515b5d65eeb0a185a6834d295123953ec5b54e16a6cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): wgpu/src/backend/wgpu_core.rs:2448-2460 | wgpu/src/backend/wgpu_core.rs:2545-2557 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":2448}}}],"partialFingerprints":{"codehealthFindingId/v1":"882f3fb00fbdbd512c128adaa075ebe1282a7c8ec3e33ecd3e1a6e74e4ab4e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): naga/src/back/glsl/writer.rs:4501-4515 | naga/src/back/hlsl/writer.rs:5079-5093 | naga/src/back/hlsl/writer.rs:5099-5113 \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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":4501}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c84dad4b38166970aecf6e978ed715c4236102283f89d51e9cea075900654b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wgpu/src/api/buffer.rs:678-688 | wgpu/src/api/buffer.rs:709-719 \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":"wgpu/src/api/buffer.rs"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"af91b42777820a5b7911c5bd7ed75296e8b01d08ec5597faea541cba36242335"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): naga/src/proc/constant_evaluator.rs:4124-4141 | naga/src/proc/constant_evaluator.rs:4204-4226 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":4124}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c79d2628a7d4a935571cec6a0b8ae77f63f21963ac48010acbd580e692bd8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): deno_webgpu/command_encoder.rs:297-318 | deno_webgpu/command_encoder.rs:328-347 | deno_webgpu/queue.rs:146-163 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/command_encoder.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69bb65be00967522d495ca385af2ffad567755018151f2320a8a3707eb21491"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): naga/src/front/glsl/types.rs:233-254 | naga/src/front/glsl/types.rs:318-333 \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":"naga/src/front/glsl/types.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1c18089a1203434649ec26bb0f14dca1cb0747c5305354fdb5c752ed38218a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): naga/src/back/hlsl/writer.rs:5194-5204 | naga/src/back/msl/writer.rs:646-657 \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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":5194}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde82986f5392e93bc8defee2ecdd52c9bd3bb22a1b40c99292e73f162b5d8da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): naga/src/front/wgsl/lower/mod.rs:214-232 | naga/src/front/wgsl/lower/mod.rs:241-259 \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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b619765fd91d22761aca2588b0eac2b7c4b0c2ba91ca54f7c8a8ef1c807fbc0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wgpu-hal/src/dx12/command.rs:1625-1635 | wgpu-hal/src/dx12/command.rs:1683-1700 \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":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5f3889582681502bc96a98f1292baa5865d7f4dd543565f794782584eb93ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): naga/src/proc/overloads/mathfunction.rs:195-204 | naga/src/proc/overloads/mathfunction.rs:206-216 \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":"naga/src/proc/overloads/mathfunction.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3f65809e6ef64fb5ed80f4bf6ec4f04a6a066de033bb6cb03eb2b90940e748"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): deno_webgpu/adapter.rs:578-587 | deno_webgpu/lib.rs:296-305 \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":"deno_webgpu/adapter.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"434fc78b4a15398329049628ececa032468f42e2604c909ca0fd4ed3a3320cf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 21\u002B corresponding lines): wgpu-core/src/command/render.rs:4001-4021 | wgpu-core/src/command/render.rs:4034-4054 | wgpu-core/src/command/render.rs:4067-4087 | wgpu-core/src/command/render.rs:4101-4121 | wgpu-core/src/command/render.rs:4135-4155 | wgpu-core/src/command/render.rs:4174-4194 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":4001}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbca8cf412afadf926533da22e263d2f864cf492f296e07de0f3d618d94f77a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): naga/src/front/spv/mod.rs:2087-2095 | naga/src/front/spv/mod.rs:2097-2110 \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":"naga/src/front/spv/mod.rs"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70846d183f5a264040a5e9d2994a0aed833056b611013d473040c8b14ba99d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): naga/src/front/wgsl/parse/lexer.rs:579-593 | naga/src/front/wgsl/parse/lexer.rs:596-610 \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":"naga/src/front/wgsl/parse/lexer.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ddd8fc5749657b9d74a5eb36e571c4235e7c03d73e1334585b0166630f98d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): wgpu-core/src/command/clear.rs:95-113 | wgpu-core/src/command/draw.rs:147-172 | wgpu-core/src/command/query.rs:164-174 | wgpu-core/src/ray_tracing.rs:217-253 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/clear.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee75aa9d21127510f1bc3277d31d74aa943aa5a6accc09da864b8921b7b2cbfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wgpu-core/src/indirect_validation/draw.rs:217-232 | wgpu-core/src/indirect_validation/draw.rs:242-263 \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":"wgpu-core/src/indirect_validation/draw.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd97209ee4328ab640d37f72a46e96934a8dfab6ceff0f177615458ddd069367"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wgpu-info/src/human.rs:29-40 | wgpu-info/src/human.rs:42-53 \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":"wgpu-info/src/human.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce031626d590a31df5a06a2230cbc21a643902b672d4c457142df7b65821c3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): naga-cli/src/bin/naga.rs:172-182 | naga-cli/src/bin/naga.rs:238-245 \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":"naga-cli/src/bin/naga.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5e55d697d626dd9ebf89a11cc72c0c828db43c9bdd15043c393d23a29fdc51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wgpu-core/src/command/bundle.rs:1446-1456 | wgpu-core/src/resource.rs:3112-3123 \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":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"083acef43971c1a61142fbfc7636d68962ce79e5d1c5d5acd7ca2443728c371e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): wgpu-hal/src/gles/egl.rs:248-269 | wgpu-hal/src/gles/wgl.rs:155-175 \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":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"072a13c55e6a5b12301319f2b8eda33be815d72a852a5b5adf003b168669202f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wgpu/src/api/device.rs:1065-1078 | wgpu/src/api/device.rs:1082-1093 \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":"wgpu/src/api/device.rs"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"5808c5d66f62c08ea5d22144f62792d439d2b57dbf545f882b3d204557fb0bd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): naga/src/proc/overloads/mathfunction.rs:145-163 | naga/src/proc/overloads/mathfunction.rs:177-193 \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":"naga/src/proc/overloads/mathfunction.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d04dd85b5fe0c9110e94ce7e47f46c145abbd1e5e95a3580b0ee8845ad5c00a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): naga/src/common/diagnostic_debug.rs:22-35 | naga/src/common/diagnostic_debug.rs:39-52 | naga/src/common/diagnostic_display.rs:77-90 | naga/src/common/diagnostic_display.rs:94-107 | naga/src/proc/overloads/rule.rs:129-145 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/common/diagnostic_debug.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaadf94278e805b0ab2b9c1ee0e69d08f0d710441139677ed59afff76ddaf6ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): wgpu-core/src/command/bundle.rs:727-741 | wgpu-core/src/command/compute.rs:1260-1279 | wgpu-core/src/command/ray_tracing_pass.rs:158-177 | wgpu-core/src/command/render.rs:3859-3878 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"43467a48e1a78ebcb050a2b90869109b1cd363b35dd274fdfe461d6328741ef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wgpu-types/src/limits.rs:961-977 | wgpu-types/src/limits.rs:985-1001 \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":"wgpu-types/src/limits.rs"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b0286b7a86f38c6d5861462849f355bf1bd8e106fed1ca88fd9b65f4fb74e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wgpu-core/src/device/life.rs:236-250 | wgpu-core/src/device/life.rs:252-263 \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":"wgpu-core/src/device/life.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c3f20d488002355bc596aa64e4dab17e57af777a2ca311619cc7d155a8808c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wgpu-core/src/pipeline.rs:332-348 | wgpu/src/backend/webgpu.rs:1979-1992 \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":"wgpu-core/src/pipeline.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a558312286cf83b5950f0fe161989a004b70f116a3c7aa2d7da19cdafe0a03f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): wgpu-hal/src/gles/device.rs:139-152 | wgpu-hal/src/gles/device.rs:166-178 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a81249bff4203210ca14e5f3ab21a577de35660c02a5ba532a92f342e01349"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wgpu-types/src/write_only.rs:588-601 | wgpu-types/src/write_only.rs:609-622 \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":"wgpu-types/src/write_only.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9ccdae7904e794b2f280c62071b7f3649c51743512c10070f21a5dac0ba9c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): naga/src/front/glsl/ast.rs:266-285 | naga/src/front/glsl/ast.rs:289-308 \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":"naga/src/front/glsl/ast.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a74b4fa32eb5f5746824fcb53826148db12f741edc2f00a0a814885bca6a5ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wgpu-core/src/device/life.rs:399-413 | wgpu-core/src/device/life.rs:420-434 \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":"wgpu-core/src/device/life.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae8bb77de51bccaac650faa4922b30364e300bda8ebe379b6008f1c7089d05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): wgpu-core/src/track/buffer.rs:604-624 | wgpu-core/src/track/texture.rs:756-777 \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":"wgpu-core/src/track/buffer.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"1479d5c6d1c814916f4fe9be1f932f59e57150f1976408d0886c8fee2344d56f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): naga/src/back/glsl/writer.rs:1532-1559 | naga/src/back/msl/writer.rs:1897-1914 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bcbceb7d17f1074afdb20fa74c5bc8d9573c632be89b582e736062aded6509"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): naga/src/back/hlsl/mod.rs:606-618 | naga/src/back/hlsl/mod.rs:623-641 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/mod.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3e5b76fea32eed6944eb96f8d6b69e261861767c6a795b7a8e9d95e6177c9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wgpu-core/src/command/pass.rs:325-342 | wgpu-core/src/command/pass.rs:367-382 \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":"wgpu-core/src/command/pass.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf4a276b3d2ffc4b530a9647cc78369458c12fc3d00634afb467f353041736f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): naga/src/back/spv/instructions.rs:797-808 | naga/src/back/spv/instructions.rs:897-911 | naga/src/back/spv/instructions.rs:931-946 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/instructions.rs"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"225babb9b1dc9985a978f90e968e01f482baacd892bf132a6ade5182fe7f4f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): wgpu-core/src/present.rs:298-306 | wgpu-core/src/present.rs:407-415 | wgpu-core/src/present.rs:454-462 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/present.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"09239c437964265ba7424590a6081eb3ef0d998863cbc265b48b3a95389918ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wgpu-core/src/command/transfer.rs:384-394 | wgpu-core/src/command/transfer.rs:407-419 \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":"wgpu-core/src/command/transfer.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d48d1e18066adab7e75cff186d073f1184448736ca91ae4fa0a78c700a4335"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wgpu-core/src/resource.rs:139-150 | wgpu-core/src/resource.rs:152-163 \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":"wgpu-core/src/resource.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"979feb7d083f294868d9f3544d38074fed34b7fa53d1423232607da4d40bba5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): wgpu-hal/src/dx12/mod.rs:440-452 | wgpu-hal/src/dx12/mod.rs:457-471 | wgpu-hal/src/dx12/mod.rs:476-489 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/mod.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad74dc506a55074b727e9e8df8199fbf12e0eb24a805a30db9621b786113d288"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): wgpu-core/src/command/compute.rs:1230-1251 | wgpu-core/src/command/ray_tracing_pass.rs:424-443 | wgpu-core/src/command/render.rs:3667-3685 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ec8e24b6d0c51dba6e49c8cb625a92cc923b7bde20fa3f4ec6c9bec1a7cfaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): naga/src/back/msl/mod.rs:583-594 | naga/src/back/msl/mod.rs:599-615 | naga/src/back/msl/mod.rs:620-636 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/mod.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1a70cfd836bfbac4a0afe2d83689905642790fbac98cf9363a610680c149b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): deno_webgpu/buffer.rs:56-66 | wgpu-core-remote/src/lib.rs:42-53 \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":"deno_webgpu/buffer.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab87543086869c8ec337ded78ae21557f6b47d8f59b874370a83944125405b31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): naga-test/src/lib.rs:397-412 | naga-test/src/lib.rs:415-430 \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":"naga-test/src/lib.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"c655f2b305850b8d15328518ce10e7f13cb1640e350f539ab90af7397e0af7f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): naga/src/back/spv/writer.rs:2727-2736 | naga/src/back/spv/writer.rs:2789-2801 \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":"naga/src/back/spv/writer.rs"},"region":{"startLine":2727}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c4a6c19b172250e3b905e6868ad87b083d72b711ae6bf93d7ea79d307993b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): naga/src/front/glsl/error.rs:176-186 | naga/src/front/spv/error.rs:166-174 \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":"naga/src/front/glsl/error.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64cd2e810bc9891a7aebb332d4471dba8267b7cba7bea13e211b690a850c7d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): naga/src/front/glsl/error.rs:212-225 | naga/src/front/spv/error.rs:180-191 | naga/src/span.rs:319-330 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/error.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edaa1523552ec90a7a68ddd580e534ec3b0eec783cdb69113a20ca2eeb4ed14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wgpu-core/src/command/clear.rs:122-132 | wgpu-core/src/command/clear.rs:150-163 \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":"wgpu-core/src/command/clear.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"301e506ee05505c2ca3b7ee4f287bbdcbbe8692f8d28c221e0db4924af397ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wgpu-core/src/device/queue.rs:715-723 | wgpu-core/src/ray_tracing.rs:521-530 \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":"wgpu-core/src/device/queue.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"769b1054e5f8fcd28c7f2200e0fe14ac6de4e1b818d283a1f2e791acf791c48a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wgpu/src/backend/wgpu_core.rs:1857-1869 | wgpu/src/backend/wgpu_core.rs:2357-2366 \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":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":1857}}}],"partialFingerprints":{"codehealthFindingId/v1":"64327e28c0bcaada08e15406a665491da4a2f51d1fec13492f2488e1663ab2ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): naga/src/compact/mod.rs:545-557 | naga/src/compact/mod.rs:562-576 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/compact/mod.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7ae5bbecbfeaa4b16a71d525fe8cd21777eba1ace7fbe83cb5c4355450ca7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wgpu-hal/src/vulkan/device.rs:2786-2800 | wgpu-hal/src/vulkan/device.rs:2801-2814 \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":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":2786}}}],"partialFingerprints":{"codehealthFindingId/v1":"798f1ad063dc4ba3336789e594ffee1ea866818cd56dc90d0690a6f303b4da37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): naga/src/front/glsl/context.rs:139-146 | naga/src/front/glsl/context.rs:151-158 \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":"naga/src/front/glsl/context.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3d17a3b36a4b7dabc2514f7781f92d10813c206b71f34444dda4c8b7ef9158"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wgpu-core/src/command/bundle.rs:837-854 | wgpu-core/src/command/bundle.rs:867-884 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bc4de407ba0123ff398d48a4ec38ec10eb64484e3b20f229d29a23e837ae8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wgpu-hal/src/metal/mod.rs:605-611 | wgpu-hal/src/metal/mod.rs:630-636 \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":"wgpu-hal/src/metal/mod.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"194fac1f50cccd123155cd7ae780d83e6a58a0c60d370e6dbac83cdad460de15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): deno_webgpu/webidl.rs:417-439 | deno_webgpu/webidl.rs:466-484 \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":"deno_webgpu/webidl.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8114547ea3b14e27582b8f4507594a35392918f52d203248f4225609cc0650"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): wgpu-types/src/texture.rs:645-657 | wgpu-types/src/texture.rs:665-677 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/texture.rs"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce235cfe00b1a3ce9564351a4bf0968bdbfb43dcd61d3709b176312d7927d9df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): wgpu/src/backend/webgpu.rs:654-661 | wgpu/src/backend/webgpu.rs:665-674 \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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1f4e4c0c45eea63f7e479d8faa3e0708ba916eaa2a8150879d94359705d050"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wgpu-core/src/command/mod.rs:1877-1892 | wgpu-core/src/command/pass.rs:347-365 \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":"wgpu-core/src/command/mod.rs"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61eca9916e82f29a56af4a6746a2fc1175193a8142dbca937dc606509b9451c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wgpu/src/util/belt.rs:266-279 | wgpu/src/util/belt.rs:301-312 \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":"wgpu/src/util/belt.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d62c98db2515a7800e475fa520791fbdf5523096b4bdb453170baba6433f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): naga/src/back/glsl/mod.rs:114-125 | naga/src/back/wgsl/mod.rs:77-89 \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":"naga/src/back/glsl/mod.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97bfdc314e06e455c9a41dea6d05a7d46a4abbffd82cd1e4f9d0735503319d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wgpu-core/src/command/query.rs:360-368 | wgpu-core/src/command/query.rs:418-426 \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":"wgpu-core/src/command/query.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a11efdc36796ef569f698b0164c440367707963a29da8618edd6dc49e88796"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wgpu-core/src/command/compute.rs:79-94 | wgpu-core/src/command/render.rs:330-353 \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":"wgpu-core/src/command/compute.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b18c572f1ec60f6f3f3b9531aab7a7dbe4eaf434e92c208e1e41ad7fe513381"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): wgpu-core/src/pipeline.rs:988-1000 | wgpu-core/src/pipeline.rs:1005-1017 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/pipeline.rs"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06f994861347409a06e323bfa39839bbd4ee06c06b3505ff09901fd58a57749"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): wgpu-hal/src/gles/command.rs:398-411 | wgpu-hal/src/gles/command.rs:420-434 | wgpu-hal/src/gles/command.rs:444-457 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a044088296a4b3cb4a0cda2b738f281f5bccad142495b388fdf7fe5f7cab3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wgpu/src/api/device.rs:308-323 | wgpu/src/api/device.rs:646-664 \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":"wgpu/src/api/device.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a7f1e34c206cfb0d3cab6aabc8ca4386a3a3cd922a1fd2ed3dc3abac7dbf8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): naga/src/front/spv/image.rs:252-265 | naga/src/front/spv/mod.rs:2709-2722 \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":"naga/src/front/spv/image.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf50955e1145775499206084a099b36b7f93e1cecf66c27d4857e3dbe9008c1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wgpu-core/src/device/resource.rs:4577-4585 | wgpu-core/src/device/resource.rs:4727-4735 \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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4577}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35c16ce17876b646e08c526ed4d33d40170213c89e1cd50d616a88a0b6b8546"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): wgpu-core/src/track/buffer.rs:234-261 | wgpu-core/src/track/texture.rs:1030-1058 \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":"wgpu-core/src/track/buffer.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dff2afaee958d1198f2557dc21266eeeec135423f2a6741352f9eaf4509b56e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wgpu-core/src/command/mod.rs:705-714 | wgpu-core/src/command/mod.rs:726-735 \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":"wgpu-core/src/command/mod.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"864a0e73aedb3555c71ec78a08592cc9eff69dfe727deec5e97445034cbf0ce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): naga/src/proc/type_methods.rs:149-157 | naga/src/proc/type_methods.rs:182-191 \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":"naga/src/proc/type_methods.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"235d2057c31feb90d989789987703a43b8bfc75f6c4dac9f628473671917e5ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 13\u002B corresponding lines): wgpu-core/src/command/compute.rs:1338-1350 | wgpu-core/src/command/compute.rs:1374-1386 | wgpu-core/src/command/ray_tracing_pass.rs:488-500 | wgpu-core/src/command/ray_tracing_pass.rs:528-540 | wgpu-core/src/command/render.rs:4366-4378 | wgpu-core/src/command/render.rs:4402-4414 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"02aa1fcf5eba5c04f5569a91d15d6e660af4fc9a2122783a00a9e17a7deae792"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wgpu-core/src/command/render.rs:3893-3908 | wgpu-core/src/command/render.rs:3932-3948 \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":"wgpu-core/src/command/render.rs"},"region":{"startLine":3893}}}],"partialFingerprints":{"codehealthFindingId/v1":"6267ca5c3241658664500cc5b986aed04b440f441caa5dc9540fcccc73d85e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wgpu-core/src/track/buffer.rs:199-216 | wgpu-core/src/track/buffer.rs:363-382 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/buffer.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"122bb24cab98be8e1c82748e1b5bdb29875a8e1ff3c9e26f2498b81910a8a701"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): wgpu/src/backend/wgpu_core.rs:261-271 | wgpu/src/backend/wgpu_core.rs:1592-1601 | wgpu/src/backend/wgpu_core.rs:1603-1612 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4326d72c374cb62ef2e1a8f6f7b995826b4c7058e014e88c0200b597b24bee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): naga/src/back/hlsl/writer.rs:216-233 | naga/src/back/msl/writer.rs:1156-1172 \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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b62661fb2c3b55f9e26951cd159c9563366944331b3f78aaefefaefc7ab1b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wgpu/src/api/adapter.rs:64-77 | wgpu/src/api/adapter.rs:90-103 \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":"wgpu/src/api/adapter.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21dd04789607345ee3970550289613d5f676198de61cb2089ac5e8d15efc38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wgpu-core/src/command/render.rs:355-368 | wgpu-core/src/command/compute.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":"wgpu-core/src/command/render.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5aa6b1ca5a4511f719bfca8657f66bbcfb5e926b68585b9d75fc7658b2cb57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): naga/src/back/spv/instructions.rs:956-966 | naga/src/back/spv/instructions.rs:981-991 \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":"naga/src/back/spv/instructions.rs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7eaf6fb2aa91ab5dde6112a056ff1dcb1bbcea44b442c1d54e2f9025c6157f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wgpu-core/src/device/trace/record.rs:691-701 | wgpu-core/src/device/trace/record.rs:921-926 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/trace/record.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"9816e6d064599f3eb48f9d225395bab5f453e6828f0d92df99862c7e082aa127"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wgpu-hal/src/dx12/command.rs:987-1005 | wgpu-hal/src/dx12/command.rs:1988-2002 \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":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19dc9bba9ee0da32d4cd887d16dfe052be1d064223a2c3c3d2f67db1f10179c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): naga-test/src/lib.rs:70-79 | naga/src/back/hlsl/mod.rs:460-469 | naga/src/back/msl/mod.rs:460-469 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga-test/src/lib.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb717232f25ac14d181ca2136126762c3921ff75d2ce06c0e03e5c4bd427390a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wgpu-core/src/command/compute.rs:1316-1326 | wgpu-core/src/command/render.rs:3700-3714 \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":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca9a21be9f1a4abeee3259e2343e80cdc735b43d1cb88d27746a802c531fd62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wgpu-core/src/ray_tracing.rs:53-62 | wgpu-core/src/resource.rs:3361-3372 \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":"wgpu-core/src/ray_tracing.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"93719b270c7da3a091f0942445cd71b2ef4f0e0826e25219a4d8b7621b605e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): naga/src/front/wgsl/lower/template_list.rs:120-131 | naga/src/front/wgsl/lower/template_list.rs:182-190 \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":"naga/src/front/wgsl/lower/template_list.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c11a76d2d7354908fe8a871e9a552f18ffb7f36473228ada8572000c60a4b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): naga/src/proc/overloads/list.rs:181-187 | naga/src/proc/overloads/regular.rs:262-267 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/overloads/list.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe87d0b947531171f34e5f538dd744fce84f2ac425727e281ef16ebdc2c5012"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wgpu-core/src/ray_tracing.rs:78-84 | wgpu-core/src/resource.rs:3389-3396 \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":"wgpu-core/src/ray_tracing.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e14c804be59d835812effae50430d7507031c7e9b924787a678a0b53ea60e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wgpu-sync/src/mutex.rs:102-111 | wgpu-sync/src/rwlock.rs:113-122 \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":"wgpu-sync/src/mutex.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a296a141a68995d3be8863defd7f749b235f36a58cceb3501ae16599075add2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): wgpu-core/src/command/bundle.rs:820-831 | wgpu-core/src/command/query.rs:482-493 | wgpu-core/src/command/render.rs:3957-3968 | wgpu-core/src/command/transfer.rs:889-903 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3e5caf5ce0e6aae2e40fa2e254759dac30dfbb531eb780fb0cbbb54740a7fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): wgpu-core/src/command/compute.rs:564-571 | wgpu-core/src/command/mod.rs:1409-1416 | wgpu-core/src/command/ray_tracing_pass.rs:661-668 | wgpu-core/src/command/render.rs:2206-2213 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb00fe63fb7101ed1f8e31c92565fa53e0c80437f79d1c2b85f6ad3cde56dff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wgpu-core/src/command/bundle.rs:633-638 | wgpu-core/src/command/render.rs:3722-3727 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edb3c20751c1472637775d7b03745b8473f1f3961a8904b99488c5b975b91a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wgpu-core/src/command/bundle.rs:720-725 | wgpu-core/src/command/render.rs:3762-3767 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"5096990180931acebf93a8c4f15878b62dde732499608981a77a3d88c980f613"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): wgpu-core/src/command/bundle.rs:779-786 | wgpu-core/src/command/render.rs:3916-3923 \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":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefa223e97d801f4ca1bba566dacbabe720e7d4e56c2a2df531dd2b4485f221a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): wgpu-core/src/command/clear.rs:139-144 | wgpu-core/src/command/transfer.rs:946-954 | wgpu-core/src/device/queue.rs:934-939 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/clear.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4908e582083abeffa3ec2a2b3c0304a624695d73619211f20f86e1952fed1a92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wgpu-core/src/command/transfer.rs:997-1005 | wgpu-core/src/device/queue.rs:1352-1357 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/transfer.rs"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e59d6170d10c8632722c234c7be8c68d4a4fca6566efee670c31db210f107a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): wgpu-core/src/command/bundle.rs:671-676 | wgpu-core/src/command/compute.rs:1220-1225 | wgpu-core/src/command/ray_tracing_pass.rs:113-118 | wgpu-core/src/command/render.rs:3660-3665 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a5f9713c992b3c4b0d816cd11358b1f7eca970d5469d06d7b826839e733ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): wgpu-core/src/command/clear.rs:169-174 | wgpu-core/src/command/ray_tracing.rs:96-104 | wgpu-core/src/command/transition_resources.rs:52-60 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/clear.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5f6251ad7a647211362f9f7e30a1e7c3293a2bf98691c8430fb02ed04a3da7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): naga/src/common/wgsl/types.rs:452-457 | naga/src/front/wgsl/lower/mod.rs:415-420 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/common/wgsl/types.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b1056480cfd617924ed31a2d8b5c5b89e8b092c841b8a1662b5a3e8140997a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wgpu-core/src/command/compute.rs:1439-1447 | wgpu-core/src/command/render.rs:4498-4506 \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":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1439}}}],"partialFingerprints":{"codehealthFindingId/v1":"07106b89c6bfd3113603499299b0f8331e9e6d34087c29f831b934915a50dec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wgpu-sync/src/mutex.rs:32-42 | wgpu-sync/src/rwlock.rs:39-49 \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":"wgpu-sync/src/mutex.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01f58ebfef169b38b9ea71e44a332973112fd3b98b01a5490dbf7111225d2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): wgpu-core/src/command/bundle.rs:743-748 | wgpu-core/src/command/compute.rs:1281-1286 | wgpu-core/src/command/ray_tracing_pass.rs:178-183 | wgpu-core/src/command/render.rs:3880-3885 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"809a0ae807e74b48d9d30d78917bb5a2d89d0cb674d2e6c88c502aacebe0a124"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wgpu-core/src/command/bundle.rs:856-861 | wgpu-core/src/command/render.rs:4023-4028 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac92764e955c819ee0b638218e953fa75005e5bc8f36dbb32437356d9e3dc6b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wgpu-core/src/command/bundle.rs:886-894 | wgpu-core/src/command/render.rs:4056-4061 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfadaa7a702b89a9c375bb9c7b4e8aea9125d3536949dc5e328a388aef009db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): wgpu-core/src/command/compute.rs:1352-1357 | wgpu-core/src/command/ray_tracing_pass.rs:502-507 | wgpu-core/src/command/render.rs:4380-4385 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0d092466fc46e460cffac4a0745c5922974a8aa8d860ee7674f6abd922f5a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): wgpu-core/src/command/compute.rs:1388-1393 | wgpu-core/src/command/ray_tracing_pass.rs:542-547 | wgpu-core/src/command/render.rs:4416-4421 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8f44555d1dd2ba1d0171a94cd535b38445530ecedeb4ca5436492222601752"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wgpu-core/src/lock/observing.rs:74-80 | wgpu-core/src/lock/ranked.rs:230-236 \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":"wgpu-core/src/lock/observing.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"171d7e3c1b7608bc3c84b2c557f4e6edbaadebdb0c67f2bdd2c0033f51deb53d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wgpu-core/src/lock/observing.rs:149-155 | wgpu-core/src/lock/ranked.rs:306-312 \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":"wgpu-core/src/lock/observing.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6448f57e4ae0404ef7e1db878c5e964881022057f32ac2805cc68678b53646d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wgpu-core/src/lock/observing.rs:158-164 | wgpu-core/src/lock/ranked.rs:315-321 \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":"wgpu-core/src/lock/observing.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba58b5e821317ae394bee4ca909f866169e1c2278d303d9775e940c6c304dde5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): naga/src/arena/mod.rs:275-280 | naga/src/arena/unique_arena.rs:228-233 | naga/src/ir/block.rs:25-28 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/arena/mod.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f30e9f0fdd8aa939c54567d04e1da429371114844a524a3a2f6a6f1ebbe68c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wgpu-core/src/command/bundle.rs:936-944 | wgpu-core/src/command/mod.rs:1817-1825 \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":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"db804b33629b277c59ee1ec34f91a2d1ed8b1b1647a53daa381e6754f0515561"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): naga/src/proc/overloads/constructor_set.rs:68-70 | naga/src/proc/overloads/scalar_set.rs:105-107 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/overloads/constructor_set.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed4d0d9a9ee711bf44e4372e33cae0d0cda4130738b53f77162ea15e5331c08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): wgpu-core/src/command/bundle.rs:690-695 | wgpu-core/src/command/compute.rs:1253-1258 | wgpu-core/src/command/ray_tracing_pass.rs:415-420 | wgpu-core/src/command/render.rs:3687-3692 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3e43cede5224ffb807b275be6f56f58796c63058cece3e7466d5a78c2f3604"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wgpu-core/src/command/bundle.rs:906-911 | wgpu-core/src/command/mod.rs:1799-1804 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8d63cace2c4a292898ad77ee4f6df9d87fbf09132ad44bd38a5f5bf46622fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wgpu-core/src/command/compute.rs:1457-1465 | wgpu-core/src/command/render.rs:4518-4526 \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":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ddb96e97609ffbc02b70f9655ec983c5b6a8347d2841e2c030ac5a13a458758"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): wgpu-core/src/device/stage_compiler.rs:92-96 | wgpu-core/src/ray_tracing_pipeline.rs:229-235 | wgpu-core/src/resource.rs:1656-1661 | wgpu-core/src/scratch.rs:39-44 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/stage_compiler.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06692462838185b6e144053f49f5e1785056ed50a6271717ccbc99606f00e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wgpu/src/backend/webgpu.rs:3964-3973 | wgpu/src/backend/wgpu_core.rs:2648-2656 \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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":3964}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dad56c5e4fafcaad107619953b70711518afd97352cffb13ff69bf362740c8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wgpu/src/backend/webgpu.rs:4273-4282 | wgpu/src/backend/wgpu_core.rs:2984-2992 \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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":4273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82d8cf6536702150084f9be1367e46fceccd3cbf362e61d2436a54a6970e6c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 6\u002B corresponding lines): wgpu-core/src/command/bundle.rs:919-924 | wgpu-core/src/command/compute.rs:1367-1372 | wgpu-core/src/command/mod.rs:1837-1842 | wgpu-core/src/command/ray_tracing_pass.rs:517-522 | wgpu-core/src/command/render.rs:4395-4400 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"813a5694497b7507f99f826a7e4541fc70d5c250d008d4a872376a98fccbf095"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): wgpu-core/src/command/compute.rs:614-619 | wgpu-core/src/command/ray_tracing_pass.rs:477-482 | wgpu-core/src/command/render.rs:2257-2262 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a283b65d9f9c3416b671ecdfd0416457a4e1925ff90f90b00ba3a7871ca6aa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): wgpu/src/backend/webgpu.rs:3954-3962 | wgpu/src/backend/wgpu_core.rs:2639-2646 \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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":3954}}}],"partialFingerprints":{"codehealthFindingId/v1":"88addd55130a38819c7994b9b473411cd3b8e3118fb44a5721101acb430f8890"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): wgpu/src/backend/webgpu.rs:4263-4271 | wgpu/src/backend/wgpu_core.rs:2975-2982 \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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":4263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cb8d76e4e846fcfdf77050cf5672912355dc7d09010867d101c84826fcfefa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): wgpu-core/src/device/trace/record.rs:836-843 | wgpu-hal/src/dynamic/mod.rs:149-156 \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":"wgpu-core/src/device/trace/record.rs"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28ae2d180a2d4619c8fe156bdf91884cde841a9da0214bbb0d51227a941be79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): wgpu-core/src/command/compute.rs:1413-1418 | wgpu-core/src/command/query.rs:445-450 | wgpu-core/src/command/render.rs:4440-4445 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"331bd75f4b12c19e043b63d9b988cab3595139b420763fa7c0b583173b60fe2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): wgpu-core/src/device/trace/record.rs:310-317 | wgpu-types/src/texture/external_image.rs:149-156 \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":"wgpu-core/src/device/trace/record.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b86c08372db8bd38c02debf1580c17d0570425c22800bb165c11596659b86fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): wgpu-core/src/track/buffer.rs:293-304 | wgpu-core/src/track/texture.rs:726-733 \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":"wgpu-core/src/track/buffer.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a2e9696a65a5dc9535c0962e8ba628c4f8d318e670a8069c443cf66b80cdc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): wgpu-core/src/track/buffer.rs:574-581 | wgpu-core/src/track/texture.rs:466-477 \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":"wgpu-core/src/track/buffer.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b1f9908c6587bdba62c6a9a2e5e5c32322dc58e6a6c48b6720da77e0574ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (73\u201374 lines \u00D7 2): naga/src/front/glsl/context.rs:840-912 | naga/src/front/glsl/context.rs:920-993 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/context.rs:840\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/glsl/context.rs:919\u0060 calls \u0060Scalar\u0060 and \u0060naga/src/front/glsl/context.rs:839\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":"naga/src/front/glsl/context.rs"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"339188284e330ff263a3a6148a745dd88ed602e63552b3ca048a03199bad9672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201345 lines \u00D7 2): wgpu-core/src/command/compute.rs:627-670 | wgpu-core/src/command/ray_tracing_pass.rs:675-719 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/compute.rs\u0060 and \u0060wgpu-core/src/command/ray_tracing_pass.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 180 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 \u0060wgpu-core/src/command/compute.rs:627\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fea545d1f7c0b174fb79c17852ea0d1b0ec86f04fb19e6c1ce527bb837cd77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): wgpu-core/src/command/compute.rs:868-912 | wgpu-core/src/command/ray_tracing_pass.rs:817-861 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/compute.rs\u0060 and \u0060wgpu-core/src/command/ray_tracing_pass.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 180 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 \u0060wgpu-core/src/command/compute.rs:868\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":"wgpu-core/src/command/compute.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"6459ad048571efbbb2b5016a5efd02421d18f120f40879ef5483108b2f856bd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): naga/src/back/glsl/writer.rs:2194-2237 | naga/src/back/wgsl/writer.rs:1117-1160 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 10 separate duplicated blocks between them, totalling at least 141 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2194}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb12150697ab154635369b99416c5e4d12fa6734eb11c3efb0b7eb38e1927bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): naga/src/back/spv/mesh_shader.rs:188-229 | naga/src/back/spv/mesh_shader.rs:268-309 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/mesh_shader.rs:188\u0060 it begins part-way through the construct above it, so those exact 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, \u0060naga/src/back/spv/mesh_shader.rs:310\u0060 calls \u0060decorate\u0060, \u0060to_words\u0060 and \u0060naga/src/back/spv/mesh_shader.rs:230\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":"naga/src/back/spv/mesh_shader.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cfd19134d88afdc5e1586362e82d62b86ecfaa0022cc8c5adc90f035f19b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): naga/src/front/spv/next_block.rs:1119-1156 | naga/src/front/spv/next_block.rs:1185-1222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/spv/next_block.rs:1119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69133d9c57f0e6f43ae9a250f37846a1f5c83979a486678203aa6b24e82c6fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): naga/src/back/spv/block.rs:1840-1876 | naga/src/back/spv/block.rs:1890-1926 \u2014 both copies are in the same file, so extract the block 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":"naga/src/back/spv/block.rs"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"b068a9481389f7fc06d2d033a85a6d9cb1ae3c6d0393a32da0e9e349fedb3f4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 3): deno_webgpu/compute_pass.rs:127-159 | deno_webgpu/render_bundle.rs:121-153 | deno_webgpu/render_pass.rs:182-215 \u2014 before extracting anything, compare \u0060deno_webgpu/compute_pass.rs\u0060 and \u0060deno_webgpu/render_pass.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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 \u0060deno_webgpu/compute_pass.rs:127\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060deno_webgpu/render_bundle.rs:118\u0060 calls \u0060borrow_mut\u0060, \u0060as_mut\u0060 and \u0060deno_webgpu/compute_pass.rs:126\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":"deno_webgpu/compute_pass.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce6025b1aa36c1b22c79d63142320f8d1ff4eb926f150747644a12a407dd30c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 2): naga/src/front/glsl/builtins.rs:974-1007 | naga/src/front/glsl/builtins.rs:1130-1162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:974\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fea20e13c1b35c3fc0e1fd757447c2aded594a0caaa5ec320a9c0ed871af35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): wgpu-core/src/device/queue.rs:1205-1236 | wgpu-core/src/device/queue.rs:1491-1522 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/device/queue.rs:1205\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":"wgpu-core/src/device/queue.rs"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c5e832602b3ed3a965a5bb105a347e80971682a48514172e9a192358572b3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): naga/src/back/spv/block.rs:935-963 | naga/src/back/spv/block.rs:1026-1054 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/block.rs:935\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e53b9d1faf1c94c3055984ecacf06f0e668a0c8424a4fdd16955180ced6016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): naga/src/front/glsl/builtins.rs:934-962 | naga/src/front/glsl/builtins.rs:1091-1119 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:934\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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c95342cc8ecfc8a276b9f24c8681640616c5245ce51b443e1568c96144a98d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): naga/src/front/spv/next_block.rs:938-965 | naga/src/front/spv/next_block.rs:1013-1040 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/spv/next_block.rs:938\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"91590e660652e38908d1a3e5f90b0c599fc40793452f0bd1587b5acad69e80b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): wgpu-hal/src/gles/egl.rs:1405-1430 | wgpu-hal/src/gles/wgl.rs:798-824 \u2014 before extracting anything, compare \u0060wgpu-hal/src/gles/egl.rs\u0060 and \u0060wgpu-hal/src/gles/wgl.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 73 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":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e072d3744666509397cb35d5a5291af0950971e8143ad8f4b0a8b249bdf5bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201326 lines \u00D7 2): naga/src/back/hlsl/writer.rs:3977-3994 | naga/src/back/wgsl/writer.rs:1575-1600 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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 \u0060naga/src/back/hlsl/writer.rs:3977\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3977}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34ec9d1dff7d0b21432c307c908ee987575a26cb3f3fa5b2838279d1881b263"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): wgpu-core/src/command/bundle.rs:1113-1138 | wgpu-core/src/command/render.rs:2928-2953 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/bundle.rs\u0060 and \u0060wgpu-core/src/command/render.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 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 \u0060wgpu-core/src/command/bundle.rs:1113\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb5fc472e7c6dcf33ad53b339041afb6c49ab6d335e56bec1f16854eca1180d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): naga/src/back/msl/hoist.rs:236-260 | naga/src/valid/function.rs:825-849 \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":"naga/src/back/msl/hoist.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e766d765918a7232789ea30ed00365f6b092543ad4d3c6040cd95f1025c8a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): naga/src/front/spv/image.rs:859-883 | naga/src/front/spv/image.rs:903-927 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/spv/image.rs:859\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/image.rs"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"418035819fc116042b236f19233a7127d04202a36cb724b68651232e3d5be45b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): wgpu-core/src/command/query.rs:331-353 | wgpu-core/src/command/query.rs:387-411 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/command/query.rs:331\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":"wgpu-core/src/command/query.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"1664b08577bc62a9f084cad8cf58c040a0b6c5fcc09e9eab46e521a525b2c188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): naga/src/back/msl/writer.rs:6193-6216 | naga/src/back/msl/writer.rs:6283-6303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/writer.rs:6193\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":6193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8069c718978b76b2779de8b98bbae5bf201546767f1fc235832c8f1fc1913c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 3): naga/src/front/glsl/context.rs:668-689 | naga/src/front/glsl/context.rs:874-896 | naga/src/front/glsl/context.rs:955-977 \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 \u0060naga/src/front/glsl/context.rs:668\u0060 it begins part-way through the construct above it, so those exact 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, \u0060naga/src/front/glsl/context.rs:870\u0060 calls \u0060with_capacity\u0060 and \u0060naga/src/front/glsl/context.rs:667\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":"naga/src/front/glsl/context.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"207ff97e6c6519868a525e4c46217820ccec649da2bcd2ad1118ca8efcdfe049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): naga/src/back/hlsl/writer.rs:5289-5311 | naga/src/back/hlsl/writer.rs:5347-5369 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/writer.rs:5289\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":5289}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6a19db8afd40b98b8bb4c146ef1e416ff577bc7fc69e8df607657d7743d3de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): naga/src/front/glsl/builtins.rs:1015-1037 | naga/src/front/glsl/builtins.rs:1165-1187 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:1015\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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"719b7d11045c19ea1e42d784915a687b40d5c425af0fbe15256a4e82133badde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): wgpu-core/src/device/queue.rs:1181-1203 | wgpu-core/src/device/queue.rs:1467-1489 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/device/queue.rs:1181\u0060 it begins part-way through the construct above it, so those exact 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: \u0060wgpu-core/src/device/queue.rs:1467\u0060 is reached only past guards at line 1404 (testing \u0060dst.desc.format\u0060) and line 1409 (testing \u0060dst.desc.dimension\u0060) that each leave the function early, and \u0060wgpu-core/src/device/queue.rs:1181\u0060 reads \u0060dst.desc.dimension\u0060 and \u0060dst.desc.format\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/queue.rs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f82d43f4be6431845e08c4848f93d2a7b24ccf883e85943d12e5596ace0227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): wgpu-core/src/command/compute.rs:1183-1204 | wgpu-core/src/command/ray_tracing_pass.rs:126-147 | wgpu-core/src/command/render.rs:3623-3644 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/compute.rs\u0060 and \u0060wgpu-core/src/command/ray_tracing_pass.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 180 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":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"097bc54bdd6dc57c4c16a567213df713ed87cee54f141a7f01cf1d5ee5d7e466"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): naga/src/back/glsl/writer.rs:2251-2272 | naga/src/back/wgsl/writer.rs:1172-1193 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 10 separate duplicated blocks between them, totalling at least 141 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 \u0060naga/src/back/glsl/writer.rs:2251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2251}}}],"partialFingerprints":{"codehealthFindingId/v1":"6949b75c9d79e5734fb028fda67309065f4c5b5d0550523db4a09bcc49089aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): naga/src/back/spv/writer.rs:1450-1469 | naga/src/back/spv/writer.rs:1482-1503 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/writer.rs:1482\u0060 it begins part-way through the construct above it, so those exact 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":"naga/src/back/spv/writer.rs"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3084c2a5738dd17ad32ac26754a609f2096613472c6bbe333f68915ce4540f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): naga/src/front/spv/mod.rs:2433-2454 | naga/src/front/spv/mod.rs:2484-2505 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/spv/mod.rs:2433\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":"naga/src/front/spv/mod.rs"},"region":{"startLine":2433}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b794d1604b201962fa54ee424d761405b37733034479544a5ec39ed6da92b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wgpu-core/src/indirect_validation/dispatch.rs:302-323 | wgpu-core/src/indirect_validation/draw.rs:190-211 \u2014 before extracting anything, compare \u0060wgpu-core/src/indirect_validation/dispatch.rs\u0060 and \u0060wgpu-core/src/indirect_validation/draw.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 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 \u0060wgpu-core/src/indirect_validation/dispatch.rs:302\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":"wgpu-core/src/indirect_validation/dispatch.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b7938e12c2a40e58080ba3793c2d9bdc80767361c5b268b434646502323c4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wgpu-hal/src/dx12/suballocation.rs:461-482 | wgpu-hal/src/dx12/suballocation.rs:504-525 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/dx12/suballocation.rs:461\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/suballocation.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"629ee1953f80967fa76b1e31b94d846c9290ed9359de1a635f145dccc95edf05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wgpu/src/backend/wgpu_core.rs:1302-1323 | wgpu/src/backend/wgpu_core.rs:1385-1406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060desc\u0060 to \u0060\u0026crate::RenderPipelineDescriptor\u003C\u0027_\u003E\u0060 in one and \u0060\u0026crate::MeshPipelineDescriptor\u003C\u0027_\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9d1f8f597f9d6e4562960627ba7c5eaa32aa48b6014fa77ef8c3fbaa8e8a6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): naga/src/back/msl/writer.rs:6098-6118 | naga/src/back/msl/writer.rs:6372-6392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/writer.rs:6098\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":6098}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a0f778ea12e03f6f69f1404c90a6b0fb55c5927873b9537aa9d76b8a959bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201321 lines \u00D7 2): naga/src/back/msl/writer.rs:6177-6191 | naga/src/back/msl/writer.rs:6261-6281 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/writer.rs:6177\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":6177}}}],"partialFingerprints":{"codehealthFindingId/v1":"058194a654e92673a979f6494ab7e760968cb2b46247f1e0f896b7a9fe7a8737"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): naga/src/front/glsl/functions.rs:1035-1055 | naga/src/front/glsl/functions.rs:1124-1144 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/functions.rs:1035\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d15a78a538a3e628a78f96c83d37ccc3eea3ae77434a80ab217c3fc216aa25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wgpu-core/src/command/bundle.rs:1244-1264 | wgpu-core/src/command/render.rs:3162-3182 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/bundle.rs\u0060 and \u0060wgpu-core/src/command/render.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 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":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f796a4d9b782c822ddfbff1f2a0cbb0b5b23dd9e3199629723b3a8e9f043a2f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wgpu-hal/src/dx12/command.rs:1548-1568 | wgpu-hal/src/dx12/command.rs:1587-1607 \u2014 both copies are in the same file, so extract the block 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":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e776c7b1858b17646cde5fbd21e60bb24e2fe2e205348156643aa744fdb800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wgpu-hal/src/dx12/suballocation.rs:427-447 | wgpu-hal/src/dx12/suballocation.rs:467-487 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/dx12/suballocation.rs:427\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/suballocation.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"085e2ee71ddb906f46d942e216c9c4740910744c2a33f135624cc802b921f8c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 3): naga/src/back/spv/block.rs:1859-1876 | naga/src/back/spv/block.rs:1909-1926 | naga/src/back/spv/image.rs:436-455 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"daee17b138310851ba1159571d14d66c0e1024e10d801bd44aee4f9957d9e2e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): naga/src/back/hlsl/help.rs:1681-1700 | naga/src/back/hlsl/help.rs:1746-1765 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/help.rs:1681\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"379becedada512594c613be277775420637102c255e8feb138bb4860d0c4bfa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): naga/src/back/spv/block.rs:862-880 | naga/src/back/spv/block.rs:989-1008 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"5776ca984f12a0f39e1a2353648ec2aea66e3904f03c45bbc697006007bed2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): naga/src/front/glsl/context.rs:662-681 | naga/src/front/glsl/context.rs:724-742 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/context.rs:662\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/context.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c91f2ba4223c93eccb3ef3ed7d8f1ca0f21aa73f9515d248efc6591a49a885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): naga/src/front/spv/mod.rs:1155-1174 | naga/src/front/spv/mod.rs:1225-1244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/spv/mod.rs:1155\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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1effc35270db43bb95ef3d17076f3cd23b17036f85472fe2b887e78f69e185"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wgpu-core/src/command/bundle.rs:467-486 | wgpu-core/src/command/render.rs:2465-2484 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/bundle.rs\u0060 and \u0060wgpu-core/src/command/render.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 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 \u0060wgpu-core/src/command/bundle.rs:467\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":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa434ef963ff3d2c2b8d831b2e2657f3fcc1ba303dea6f4633b46b9d052dbc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wgpu-core/src/command/ray_tracing.rs:715-734 | wgpu-core/src/command/ray_tracing.rs:1060-1079 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/command/ray_tracing.rs:715\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":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bfdb9e22a74c5ec98701914c7759b6b60fdc02ce834b61fd84ce085be7f84c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wgpu-hal/src/gles/device.rs:269-288 | wgpu-hal/src/gles/device.rs:722-741 \u2014 both copies are in the same file, so extract the block 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":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"112bb1fdc4d80d7a1ee6fec2aae1af435b294933d15bf2b12f0b858a490faa7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wgpu-hal/src/gles/egl.rs:1171-1190 | wgpu-hal/src/gles/wgl.rs:718-737 \u2014 before extracting anything, compare \u0060wgpu-hal/src/gles/egl.rs\u0060 and \u0060wgpu-hal/src/gles/wgl.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 73 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 \u0060wgpu-hal/src/gles/egl.rs:1171\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2184b76c42cce4741da10c66171d949ff3a7148d92b5d3373453b870ca4b40a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wgpu-hal/src/metal/conv.rs:439-458 | wgpu-hal/src/metal/conv.rs:470-489 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/metal/conv.rs:439\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":"wgpu-hal/src/metal/conv.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5f23b6298ec360c88f5e503c54cd63322d36ba7d8ac05d353bcae5506b1981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): naga/src/proc/constant_evaluator.rs:2898-2915 | naga/src/proc/constant_evaluator.rs:2961-2978 | naga/src/proc/constant_evaluator.rs:3064-3082 \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 \u0060naga/src/proc/constant_evaluator.rs:3064\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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":2898}}}],"partialFingerprints":{"codehealthFindingId/v1":"32157105f61bdf60a0eb0afec4e34a9212bc218ec4726e3c94524bba779464cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): naga/src/back/hlsl/writer.rs:2445-2463 | naga/src/back/wgsl/writer.rs:806-824 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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 \u0060naga/src/back/hlsl/writer.rs:2445\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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2445}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec11bdb47ca4b080320786b55583360346226215d41fc5454854a39ef749b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): naga/src/back/msl/writer.rs:2660-2678 | naga/src/common/wgsl/to_wgsl.rs:74-91 \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":"naga/src/back/msl/writer.rs"},"region":{"startLine":2660}}}],"partialFingerprints":{"codehealthFindingId/v1":"774091ec9ffe3d48a856f9ead295169e7062a6fa9782e0b3f3855a66a37d0678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): wgpu-core/src/command/compute.rs:673-691 | wgpu-core/src/command/ray_tracing_pass.rs:721-739 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/compute.rs\u0060 and \u0060wgpu-core/src/command/ray_tracing_pass.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 180 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 \u0060wgpu-core/src/command/compute.rs:673\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":"wgpu-core/src/command/compute.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d9bdeedb31817ecdea8eed652aacbfd40d0fe8235b8ac605fde47151d9d0e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): wgpu-core/src/command/transfer.rs:1309-1327 | wgpu-core/src/command/transfer.rs:1433-1450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/command/transfer.rs:1309\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":"wgpu-core/src/command/transfer.rs"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c247baab8f8d382b4ff938218a3cc0bfccf9bab571ef8860a81694d6da5d3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): wgpu-core/src/track/texture.rs:847-865 | wgpu-core/src/track/texture.rs:887-905 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/track/texture.rs:847\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":"wgpu-core/src/track/texture.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c67966205a6adebfdab5f6f20e5c1168a68bd4366c9c8ee87dfc853402ffa68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): naga/src/front/spv/next_block.rs:2673-2690 | naga/src/front/spv/next_block.rs:2754-2771 | naga/src/front/spv/next_block.rs:2809-2826 \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 \u0060naga/src/front/spv/next_block.rs:2673\u0060 it does not close everything it opens, so those exact 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, \u0060naga/src/front/spv/next_block.rs:2828\u0060 calls \u0060QuadSwap\u0060 and \u0060naga/src/front/spv/next_block.rs:2692\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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":2673}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a565d4bde0801cdd8b0394832d6b609bea18a4b1c5592e23ba8d651f2b18a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): deno_webgpu/compute_pass.rs:162-179 | deno_webgpu/render_pass.rs:218-235 \u2014 before extracting anything, compare \u0060deno_webgpu/compute_pass.rs\u0060 and \u0060deno_webgpu/render_pass.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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 \u0060deno_webgpu/compute_pass.rs:162\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/compute_pass.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b675ae0d68fce21e21ebc2093d1a59024af6db4112994e5eb866ccb736c800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): naga/src/back/hlsl/writer.rs:4436-4453 | naga/src/back/wgsl/writer.rs:1709-1726 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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 \u0060naga/src/back/hlsl/writer.rs:4436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":4436}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad25cbbbc7dbae11a06726d145d35c63e43d435e41056c1e62a2c0ee39de4422"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): naga/src/back/spv/image.rs:916-933 | naga/src/back/spv/image.rs:936-951 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/image.rs:916\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":"naga/src/back/spv/image.rs"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"4333a6298fda5241379cf5214c0a97c89a4d44bbc57071beac9ef84a4cd35682"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): naga/src/back/wgsl/writer.rs:396-413 | naga/src/back/wgsl/writer.rs:415-432 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f0736d88eed09d95c9c6536b8a4a5e64f93e3eca929328e67cc7e8c1ae8b44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): naga/src/front/spv/next_block.rs:872-889 | naga/src/front/spv/next_block.rs:979-996 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/spv/next_block.rs:870\u0060 calls \u0060span_from_with_op\u0060 and \u0060naga/src/front/spv/next_block.rs:977\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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd95b89aff5a08c94f83553f0a09c8a9285c45dc3dd5a81d08af65a6b3daccd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): naga/src/front/spv/next_block.rs:2448-2465 | naga/src/front/spv/next_block.rs:2493-2510 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":2448}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb67ec72eac8ef1df53dbd390a5bb71ea3c768fdb4289d0669ee1e1f1de554e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): naga/src/front/wgsl/lower/construction.rs:384-401 | naga/src/front/wgsl/lower/construction.rs:421-438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/lower/construction.rs:384\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/construction.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"42580938711c1cd32e8ebf3ff0a3c162999a12ba088c3d7487e880f02a604034"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): naga/src/valid/function.rs:1651-1668 | naga/src/valid/function.rs:1672-1689 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/valid/function.rs:1651\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":"naga/src/valid/function.rs"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d585fcc183b78dcb102f6bb6a9d3b6ff5235080d20f9e1c9aad9d68fd8f647"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): wgpu-core/src/command/memory_init.rs:397-414 | wgpu-core/src/command/memory_init.rs:475-491 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/command/memory_init.rs:397\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/memory_init.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefe9e3fd98cbd0805ec37de43d7f4281e60e1ac8d995e8040443c3fc826e7ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wgpu-core/src/command/mod.rs:232-249 | wgpu-core/src/command/mod.rs:276-293 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/command/mod.rs:232\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":"wgpu-core/src/command/mod.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a40e0b69389873b03881e13bb1feb43e2e8faf94cd698fea841aa354ffd28b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wgpu-core/src/device/resource.rs:4210-4227 | wgpu-core/src/device/resource.rs:4250-4267 \u2014 both copies are in the same file, so extract the block 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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4210}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa074c48d9655500d9b3bce7f194d71b899acba7961cd58967c1264bf8d5f66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wgpu-core/src/device/resource.rs:4665-4682 | wgpu-core/src/device/resource.rs:5422-5439 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/device/resource.rs:4665\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4665}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab0233320c9fb044ac13863bade3c84da3585f95e1d897b5bd5f42060f3f9ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): wgpu-core/src/track/texture.rs:1282-1299 | wgpu-core/src/track/texture.rs:1318-1334 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/track/texture.rs:1282\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wgpu-core/src/track/texture.rs:1313\u0060 calls \u0060is_empty\u0060 and \u0060wgpu-core/src/track/texture.rs:1280\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":"wgpu-core/src/track/texture.rs"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"626b1a55c0cfa4e2c50c014c75953227989ab8bc6d51ff45dcd318c6c605b711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): wgpu-hal/src/dx12/suballocation.rs:292-308 | wgpu-hal/src/dx12/suballocation.rs:331-347 | wgpu-hal/src/dx12/suballocation.rs:370-386 \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 \u0060wgpu-hal/src/dx12/suballocation.rs:292\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/suballocation.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"58198b2a06b1f6bdd37e23453d9dbd66480a83a532e71b592296b535455625a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): wgpu-hal/src/gles/egl.rs:1478-1494 | wgpu-hal/src/gles/web.rs:471-487 | wgpu-hal/src/gles/wgl.rs:884-900 \u2014 before extracting anything, compare \u0060wgpu-hal/src/gles/egl.rs\u0060 and \u0060wgpu-hal/src/gles/wgl.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 73 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 \u0060wgpu-hal/src/gles/egl.rs:1478\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fc32b8d99a3474099d7e8830d96d118342274d1fd6cb12634f5eab8eb881dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): naga/src/back/glsl/writer.rs:3756-3767 | naga/src/back/glsl/writer.rs:3769-3785 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/glsl/writer.rs:3756\u0060 it does not close everything it opens, so those exact 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":3756}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea6ff8b1593869f18088955537e6fe732ba54a4ef158fb4d150cfcdc2959d0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): naga/src/back/spv/writer.rs:2894-2910 | naga/src/back/spv/writer.rs:2926-2942 \u2014 both copies are in the same file, so extract the block 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":"naga/src/back/spv/writer.rs"},"region":{"startLine":2894}}}],"partialFingerprints":{"codehealthFindingId/v1":"2392ed0ff231133c2f66f51bd4c8612e5f10cea0689cdd16c5796219a84550c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): naga/src/front/glsl/functions.rs:1236-1252 | naga/src/front/glsl/functions.rs:1289-1305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/functions.rs:1236\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"079767957af99cffc1f705a61e4e3ac730975ba3015a8bb9cfb74a7004ac0390"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): wgpu-core/src/device/resource.rs:920-935 | wgpu-core/src/device/resource.rs:941-957 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/device/resource.rs:920\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6c063c59e43b6f6de556b8e4fdbafe660cf7099a1fcf55b1c95ff0e14fb50c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): wgpu-core/src/device/resource.rs:3607-3623 | wgpu-core/src/device/resource.rs:3724-3735 \u2014 both copies are in the same file, so extract the block 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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":3607}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbeef08b68b326a6094f3cc0b056e038da8bb23baf6ee23e43b77389c8e8aa7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): wgpu/src/backend/webgpu.rs:3769-3784 | wgpu/src/backend/webgpu.rs:3865-3880 | wgpu/src/backend/webgpu.rs:4189-4204 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":3769}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a64bc3cac4ffd4b98e787eb53a93e82304205418ab6aee7fd66a5e27065656"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): naga/src/back/glsl/writer.rs:1638-1653 | naga/src/back/hlsl/writer.rs:2401-2416 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/hlsl/writer.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 10 separate duplicated blocks between them, totalling at least 99 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"193e1f1262162bc744970a6918fb0183ca39eb8a85c3d9ea7d82c634b3fab41b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): naga/src/back/hlsl/help.rs:1465-1480 | naga/src/back/hlsl/help.rs:1507-1522 \u2014 both copies are in the same file, so extract the block 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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73601b79b96100347daf6d98b2b41d1038309b4e0c1c4309885598173f8a710"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): naga/src/back/spv/image.rs:623-638 | naga/src/back/spv/image.rs:646-661 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/image.rs:623\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":"naga/src/back/spv/image.rs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"e051d7bede1176bfd6d840f44b14e7d78e8438bbdadc6db83c0a9d59edef9e4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): naga/src/back/spv/mesh_shader.rs:891-906 | naga/src/back/spv/mesh_shader.rs:914-929 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/mesh_shader.rs:891\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060naga/src/back/spv/mesh_shader.rs:908\u0060 calls \u0060next\u0060 and \u0060naga/src/back/spv/mesh_shader.rs:930\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":"naga/src/back/spv/mesh_shader.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4c83044c146133e5e07308fe071a3087caac8388559f529dee558309dee3c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 2): naga/src/back/wgsl/writer.rs:2114-2129 | naga/src/back/wgsl/writer.rs:2171-2182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/wgsl/writer.rs:2114\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":2114}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f950952c58a98de038e5f91988a88feffeb0cf84d797a14ebfdf8d419d146d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): naga/src/front/glsl/builtins.rs:1867-1882 | naga/src/front/glsl/builtins.rs:1893-1908 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:1867\u0060 it does not close everything it opens, so those exact 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, \u0060naga/src/front/glsl/builtins.rs:1885\u0060 calls \u0060Some\u0060 and \u0060naga/src/front/glsl/builtins.rs:1911\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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"25178eb326567340c2b87957af7400bb62e07ef22e28fe8919b3ed7f0f48ebed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): naga/src/front/glsl/parser.rs:274-289 | naga/src/front/glsl/parser.rs:352-367 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/parser.rs:274\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"b942fda456576996cc93d65974565a870b4035eabe5930822089a653bae2563e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): naga/src/front/spv/next_block.rs:501-515 | naga/src/front/spv/next_block.rs:568-583 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/spv/next_block.rs:568\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a117bae73fc386390a44dffa4ef2bfb62c9e1bb06f585bfbb95df07e9e9fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wgpu-core/src/indirect_validation/dispatch.rs:88-103 | wgpu-core/src/indirect_validation/draw.rs:555-570 \u2014 before extracting anything, compare \u0060wgpu-core/src/indirect_validation/dispatch.rs\u0060 and \u0060wgpu-core/src/indirect_validation/draw.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 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 \u0060wgpu-core/src/indirect_validation/dispatch.rs:88\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":"wgpu-core/src/indirect_validation/dispatch.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"1844a1715951feaea93877dd84ccc79fe6b4c511e67fd9afe961f20f8b8f0d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): wgpu-core/src/track/texture.rs:579-594 | wgpu-core/src/track/texture.rs:620-634 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/track/texture.rs:579\u0060 it does not close everything it opens, so those exact 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":"wgpu-core/src/track/texture.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e5680e410979d980644b18eb7e5c54cb61b688bead6aa21b5ecbbcd736db70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wgpu-core/src/track/texture.rs:1256-1271 | wgpu-core/src/track/texture.rs:1500-1515 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/track/texture.rs:1256\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":"wgpu-core/src/track/texture.rs"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"398e606e15b748679e49ea895202f37509100fe109603b8cdbbba916d9157b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): naga/src/back/hlsl/help.rs:1464-1478 | naga/src/back/hlsl/help.rs:1506-1520 | naga/src/back/hlsl/help.rs:1575-1588 \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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"5712aa53f3fc1a5139aa23cd935ea9fcbb1d95986ca38bbe29a81e1af80a714d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): naga/src/front/spv/mod.rs:2130-2144 | naga/src/front/spv/mod.rs:2165-2179 | naga/src/front/spv/mod.rs:2192-2206 \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 \u0060naga/src/front/spv/mod.rs:2130\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":"naga/src/front/spv/mod.rs"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"26112945b628ca37b4d199ef6ca3fe1aea651ea89c211c44f24e7bf3dfcfce52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): naga/src/back/glsl/writer.rs:244-258 | naga/src/back/msl/writer.rs:5063-5077 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/msl/writer.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 58 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 \u0060naga/src/back/glsl/writer.rs:244\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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"443cc60d3f1785d5f1311fbabfb22560777fefd05065976e9db65df5ddb2464d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): naga/src/back/glsl/writer.rs:2501-2515 | naga/src/back/wgsl/writer.rs:1644-1658 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 10 separate duplicated blocks between them, totalling at least 141 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 \u0060naga/src/back/glsl/writer.rs:2501\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2501}}}],"partialFingerprints":{"codehealthFindingId/v1":"90767fe9217dc67af187c65d64ae28a0efaf65b16601e05aae4125f9c5cf5aa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): naga/src/back/hlsl/help.rs:1196-1210 | naga/src/back/hlsl/help.rs:1273-1287 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/help.rs:1196\u0060 it begins part-way through the construct above it, so those exact 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 \u0060self\u0060 to \u0060super) fn write_wrapped_struct_matrix_set_vec_function( \u0026mut\u0060 in one and \u0060super) fn write_wrapped_struct_matrix_set_scalar_function( \u0026mut\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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ac59890585f36fd25020d5d6343c80ee93d7c053e063c949216fec0e9ae567"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): naga/src/back/hlsl/help.rs:1702-1716 | naga/src/back/hlsl/help.rs:1767-1781 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/help.rs:1702\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1702}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f63eff7dbcec27e6ca15e612dc81775660aa8ddf822e9bbbfc5e7fd2696909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): naga/src/back/hlsl/writer.rs:3129-3143 | naga/src/back/hlsl/writer.rs:3193-3207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/writer.rs:3129\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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3129}}}],"partialFingerprints":{"codehealthFindingId/v1":"276b163e625279783d09435ccd6f7fbbec05e85c19a2ac2c46ffeed4a7e7da5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): naga/src/back/msl/writer.rs:3233-3247 | naga/src/back/msl/writer.rs:3252-3263 \u2014 both copies are in the same file, so extract the block 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":3233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d903152390df2a0bf9de6803c63668631f48e61ba98aafef67f35abfcba255eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): naga/src/back/spv/block.rs:2941-2952 | naga/src/back/spv/block.rs:3907-3921 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/block.rs:2941\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":2941}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e40d5909270f0673db36e77abbfef847574b86fbea936cffb9291638974680f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): naga/src/back/spv/ray/mod.rs:170-184 | naga/src/back/spv/ray/mod.rs:218-232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/ray/mod.rs:170\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":"naga/src/back/spv/ray/mod.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50cc4482f3e12bf0c1657091657462f4b5c0f87737c32130574120b8962c871"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): naga/src/front/glsl/builtins.rs:666-680 | naga/src/front/glsl/builtins.rs:1061-1075 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:666\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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe4919233907868bdb944e5a56619e8b80f865a433db2a9bc2bee7bcdb40bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): naga/src/front/glsl/builtins.rs:1448-1462 | naga/src/front/glsl/builtins.rs:1477-1491 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:1448\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada3d836e41ce5c08479dd09e19023e81bb68bb41b6d629c33562ab6b4b2fed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): naga/src/front/spv/next_block.rs:921-934 | naga/src/front/spv/next_block.rs:1002-1016 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/spv/next_block.rs:921\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ab205924dddeb1d317db664ff0e415157f4092b9f153f2d02dc4cd831ce262"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): naga/src/valid/expression.rs:811-825 | naga/src/valid/expression.rs:826-840 \u2014 both copies are in the same file, so extract the block 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":"naga/src/valid/expression.rs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"4262bfc33f4068521fed7387ad9244db9c21c64a64ff5ad1318cd20e3b5769a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wgpu-core/src/command/transfer.rs:1252-1266 | wgpu-core/src/command/transfer.rs:1370-1384 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/command/transfer.rs:1252\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/transfer.rs"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fb34db75f13e9b4e076993b3201f1772e038bb9d1200f66b87e425425190e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 2): wgpu-core/src/indirect_validation/dispatch.rs:186-208 | wgpu-core/src/indirect_validation/draw.rs:119-144 \u2014 before extracting anything, compare \u0060wgpu-core/src/indirect_validation/dispatch.rs\u0060 and \u0060wgpu-core/src/indirect_validation/draw.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 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 \u0060wgpu-core/src/indirect_validation/dispatch.rs:186\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/dispatch.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9440c088a8d1a3a3146577be9de89d9297402eb682dcb499690528e0d53a66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): wgpu-hal/src/dx12/command.rs:229-243 | wgpu-hal/src/dx12/command.rs:255-268 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/dx12/command.rs:229\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc00a8e3140d70648c22c5353cc5360c2de88687029841b174b63c0d8259dfe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wgpu/src/backend/webgpu.rs:3889-3903 | wgpu/src/backend/webgpu.rs:4213-4227 \u2014 both copies are in the same file, so extract the block 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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":3889}}}],"partialFingerprints":{"codehealthFindingId/v1":"26eeaed4579c8f590322623e933f0b25baf1e228fc8093db544558da127602f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): naga/src/front/wgsl/lower/mod.rs:3826-3839 | naga/src/front/wgsl/lower/mod.rs:3849-3862 | naga/src/front/wgsl/lower/mod.rs:3872-3885 \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 \u0060naga/src/front/wgsl/lower/mod.rs:3826\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3826}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e1b241aab9d32ee56db8f783c32e08ee03281b5f1885806f47d6a6c9662163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): deno_webgpu/device.rs:499-512 | deno_webgpu/device.rs:539-552 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060deno_webgpu/device.rs:499\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":"deno_webgpu/device.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf19d2e3f4a51b6ccfba8d4afcb678309039953e89a94ca43aa16e360fb8c585"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): naga/src/back/spv/block.rs:3294-3307 | naga/src/back/spv/block.rs:3394-3407 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/block.rs:3294\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":3294}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1629298c11590c6f3be5f753acdae08d1dcc49eb217107749f96a7bec380c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): naga/src/back/spv/ray/mod.rs:69-82 | naga/src/back/spv/ray/mod.rs:103-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/mod.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaec262e4022ab681672dad894b22563c101c84df0301959431996277e998b83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): naga/src/common/wgsl/types.rs:275-288 | naga/src/common/wgsl/types.rs:292-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/common/wgsl/types.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"f530e97bc05559026a017f6d0cc004c06754cda5ed4123566deb2b2d2eab46df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): naga/src/front/wgsl/parse/mod.rs:1414-1427 | naga/src/front/wgsl/parse/mod.rs:1465-1477 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5509cce2da22b8e782b1f44979910ebd80d413682e3f8583f7f9f082defe39d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): naga/src/valid/analyzer.rs:459-472 | naga/src/valid/analyzer.rs:475-488 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"naga/src/valid/analyzer.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"035754772985cd9c4333c69ba2d5dc080981565778a2277ee4a80e63cd213302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): naga/src/valid/type.rs:391-404 | naga/src/valid/type.rs:411-424 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/valid/type.rs:391\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/type.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd3cca684c79cdd631be324e402a7bcb8a8fbdd931047c3a0a77e8a422a37bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): wgpu-core/src/command/mod.rs:1137-1150 | wgpu-core/src/command/mod.rs:1245-1257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/command/mod.rs:1137\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":"wgpu-core/src/command/mod.rs"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d33f8ed1bd9010e7003eea042c7c22d746ac99e9600d543af17a0cb2fd25ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wgpu-core/src/ray_tracing_pipeline.rs:106-119 | wgpu-core/src/ray_tracing_pipeline.rs:121-134 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/ray_tracing_pipeline.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d925a16ffbb34612d45894dfeeb101490f5ae163b7f0b833bf6ab321cce4c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): naga/src/back/spv/ray/mod.rs:148-160 | naga/src/back/spv/ray/mod.rs:163-175 | naga/src/back/spv/ray/mod.rs:196-208 | naga/src/back/spv/ray/mod.rs:211-223 \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 \u0060naga/src/back/spv/ray/mod.rs:148\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":"naga/src/back/spv/ray/mod.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bd62e94113a8c993e9f8052e26b481c054887e929f97cc97e6a3282a157465"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): naga/src/back/glsl/writer.rs:2502-2514 | naga/src/back/hlsl/writer.rs:4316-4328 | naga/src/back/wgsl/writer.rs:1645-1657 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/hlsl/writer.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 10 separate duplicated blocks between them, totalling at least 99 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 \u0060naga/src/back/glsl/writer.rs:2502\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2502}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c5da9bd3c15910adf9db0666f0dbd46b146de1c6c04f8c204b56d1ceeb2241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): naga/src/front/wgsl/parse/number.rs:188-198 | naga/src/front/wgsl/parse/number.rs:217-229 | naga/src/front/wgsl/parse/number.rs:275-285 \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 \u0060naga/src/front/wgsl/parse/number.rs:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/wgsl/parse/number.rs:213\u0060 calls \u0060end\u0060, \u0060start\u0060 and \u0060naga/src/front/wgsl/parse/number.rs:186\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":"naga/src/front/wgsl/parse/number.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7a63b7ba5d376e5fc47d7dd73a09f3adb137ae95749b481cbb86bca3506a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): wgpu-core/src/command/render.rs:4222-4233 | wgpu-core/src/command/render.rs:4271-4283 | wgpu-core/src/command/render.rs:4324-4336 \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 \u0060wgpu-core/src/command/render.rs:4222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":4222}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df8981051017448a5376f0a9a91c2927f3bfdf0712ff677dd73d6aa53c81e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): deno_webgpu/webidl.rs:54-66 | deno_webgpu/webidl.rs:164-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060deno_webgpu/webidl.rs:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/webidl.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fb21f3258de90d59ec2d21bb1cf1289d04146e46cf5d172826ee6dde391a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): naga/src/back/hlsl/help.rs:2355-2367 | naga/src/back/hlsl/help.rs:2373-2385 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/help.rs:2355\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":2355}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dd76f3ef1295ce01e4d1bfca1ab7a70cf942bb07cafc626093d5262cd512b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): naga/src/back/hlsl/storage.rs:357-369 | naga/src/back/hlsl/storage.rs:377-389 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/storage.rs:357\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":"naga/src/back/hlsl/storage.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7aa5ccaab1a3c35b4d3a33bc7f797eb29ae4fbba74fca0d759ecc89dff564f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): naga/src/back/hlsl/writer.rs:3520-3532 | naga/src/back/msl/writer.rs:1951-1963 \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 \u0060naga/src/back/hlsl/writer.rs:3520\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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3520}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2794bb00dc187200ccd72aae7439bde0392eebfa6830753a93647ead481cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): naga/src/back/spv/index.rs:375-387 | naga/src/back/spv/index.rs:439-450 \u2014 both copies are in the same file, so extract the block 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":"naga/src/back/spv/index.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ea138f5d6767cb6aee4ce638dcbffb3e781bccc37e45786188d8a047f8c78e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): naga/src/back/spv/mesh_shader.rs:769-781 | naga/src/back/spv/mesh_shader.rs:840-852 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn write_mesh_shader_wrapper( \u0026mut\u0060 in one and \u0060super) fn write_task_shader_wrapper( \u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060naga/src/back/spv/mesh_shader.rs:782\u0060 calls \u0060get_u32_type_id\u0060 and \u0060naga/src/back/spv/mesh_shader.rs:854\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":"naga/src/back/spv/mesh_shader.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"75597e2ef89984a2e4c25720db2fe6648ba7b752ef3ad76282385b0df465e8c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): naga/src/common/diagnostic_debug.rs:57-69 | naga/src/common/diagnostic_display.rs:61-73 \u2014 before extracting anything, compare \u0060naga/src/common/diagnostic_debug.rs\u0060 and \u0060naga/src/common/diagnostic_display.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"naga/src/common/diagnostic_debug.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02a2f53dae2859a83fb123d35b955f8a1160208048023eacb916d90f416173d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): naga/src/front/wgsl/lower/mod.rs:3545-3557 | naga/src/front/wgsl/lower/mod.rs:3584-3596 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3545}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd25e40ccd59e54fcfa2594a50cc2f790f26814b7c502fc7626c99cce9498fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wgpu-core/src/command/render.rs:3242-3254 | wgpu-core/src/command/render.rs:3462-3474 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/command/render.rs:3242\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":"wgpu-core/src/command/render.rs"},"region":{"startLine":3242}}}],"partialFingerprints":{"codehealthFindingId/v1":"8234b4b0bd902645707cd7a05a36977a3b966b00f81f1555310788d28214fec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wgpu-core/src/device/resource.rs:1381-1393 | wgpu-core/src/device/resource.rs:1753-1765 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/device/resource.rs:1381\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be4a83b939d1d6a6a2f78e60d57b400a24f62da12912b2ee9cc1d8e1ced18cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wgpu-core/src/device/resource.rs:4629-4641 | wgpu-core/src/device/resource.rs:5312-5324 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wgpu-core/src/device/resource.rs:5326\u0060 calls \u0060is_some\u0060 and \u0060wgpu-core/src/device/resource.rs:4643\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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4629}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5aea83e18e3fe665df73ef2ab0125e1f9d00d03557a607ee41ec5934af942e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wgpu-core/src/pipeline.rs:316-328 | wgpu-core/src/pipeline.rs:367-379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"wgpu-core/src/pipeline.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd4ab47ab055de1f71e9852e4c7dd3fe88f72981ef28da937b30cc19c098ecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wgpu-core/src/track/texture.rs:1521-1533 | wgpu-core/src/track/texture.rs:1570-1582 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/track/texture.rs:1521\u0060 it begins part-way through the construct above it, so those exact 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, \u0060wgpu-core/src/track/texture.rs:1587\u0060 calls \u0060coalesce\u0060 and \u0060wgpu-core/src/track/texture.rs:1534\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":"wgpu-core/src/track/texture.rs"},"region":{"startLine":1521}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a3389b87cebe1a44a9375d6ab5ff703637056411ef52b48ba4771ca98ec3b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wgpu-hal/src/metal/command.rs:1359-1371 | wgpu-hal/src/metal/command.rs:1475-1487 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/metal/command.rs:1359\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"05229e881a015519182f34660cc44879e57d67a0be4eb6e419be4c63c23bc792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wgpu-hal/src/vulkan/device.rs:2488-2500 | wgpu-hal/src/vulkan/device.rs:2505-2517 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/vulkan/device.rs:2488\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":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":2488}}}],"partialFingerprints":{"codehealthFindingId/v1":"309b92b292ab4f1e20107800c902258f0f3f8bf1e6b8cffe128a70a2cea9d8c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): deno_webgpu/compute_pass.rs:168-179 | deno_webgpu/render_bundle.rs:162-173 | deno_webgpu/render_pass.rs:224-235 \u2014 before extracting anything, compare \u0060deno_webgpu/compute_pass.rs\u0060 and \u0060deno_webgpu/render_pass.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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 \u0060deno_webgpu/compute_pass.rs:168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/compute_pass.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c037fb9a2790b45b451eccda8ab52c658462ffd0c73bdee5810fb9cae172a92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): naga/src/back/msl/ray.rs:414-425 | naga/src/back/msl/ray.rs:468-479 | naga/src/back/msl/ray.rs:498-509 \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 \u0060naga/src/back/msl/ray.rs:414\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/ray.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d177c39f8b8ee08eb123d5ef3ccdac3b0d5c6da4a862559302ce9b4392f18c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): naga/src/back/spv/mesh_shader.rs:85-96 | naga/src/back/spv/mesh_shader.rs:108-119 | naga/src/back/spv/mesh_shader.rs:121-132 \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 \u0060naga/src/back/spv/mesh_shader.rs:85\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/mesh_shader.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc16977974cc6268e2678540f75f0fbb1565e228065d053e9fa3070b66b88398"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): naga/src/front/glsl/builtins.rs:349-360 | naga/src/front/glsl/builtins.rs:373-384 | naga/src/front/glsl/builtins.rs:412-423 \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 \u0060naga/src/front/glsl/builtins.rs:349\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"0517d178b8de749bf2b3203f2e845ad5da8320e518257666cfaed6a262f77ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): deno_webgpu/buffer.rs:263-274 | deno_webgpu/queue.rs:86-97 \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 \u0060deno_webgpu/buffer.rs:263\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/buffer.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd25234cbbcf8d1ddca7b85a929b3d2c46c83d210d8b341ee0e4bbcfd9afe559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): naga/src/back/glsl/writer.rs:2489-2500 | naga/src/back/wgsl/writer.rs:1631-1642 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 10 separate duplicated blocks between them, totalling at least 141 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 \u0060naga/src/back/glsl/writer.rs:2489\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2489}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e920d09ebb5fc5ef482086a1e09d7970c41a2bae7bbb10fa0c4d34eeb44c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): naga/src/back/hlsl/writer.rs:440-451 | naga/src/back/wgsl/writer.rs:162-173 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/back/hlsl/writer.rs:434\u0060 calls \u0060write_special_functions\u0060, \u0060write_wrapped_expression_functions\u0060, \u0060write_wrapped_zero_value_functions\u0060 and \u0060naga/src/back/wgsl/writer.rs:159\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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7906c7e2fc8acfa2c703b1c550187386c1531a4a89797336f4c3402690640f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): naga/src/back/wgsl/writer.rs:1685-1696 | naga/src/back/wgsl/writer.rs:1759-1770 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/wgsl/writer.rs:1685\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":1685}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3cb5070218d05e8dd5486240f497ab95d63b41f3956880a92ea0751e6e50e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): naga/src/common/diagnostic_debug.rs:74-85 | naga/src/common/diagnostic_display.rs:112-123 \u2014 before extracting anything, compare \u0060naga/src/common/diagnostic_debug.rs\u0060 and \u0060naga/src/common/diagnostic_display.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"naga/src/common/diagnostic_debug.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e900e5bf225cffe383c5d70c0712e864f19d577d44f50077aedda40a863389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): naga/src/front/glsl/builtins.rs:1305-1316 | naga/src/front/glsl/builtins.rs:1416-1427 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:1305\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"8caf0661d84a341bbd76dd08ba9192d09b57bd731e573729de3d2b0f429d40a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): naga/src/front/glsl/functions.rs:1074-1085 | naga/src/front/glsl/functions.rs:1156-1167 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/glsl/functions.rs"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"b015fcc7214b02986d66df96fcd453a83e8d4e33bdeed4bb23a32a9af2222650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): naga/src/front/spv/mod.rs:2867-2878 | naga/src/front/spv/mod.rs:2890-2900 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/spv/mod.rs:2890\u0060 it does not close everything it opens, so those exact 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":"naga/src/front/spv/mod.rs"},"region":{"startLine":2867}}}],"partialFingerprints":{"codehealthFindingId/v1":"270817d75eb63bec92c06c2d9660177e07f9bb1ec971a4101ab9e64198f94e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): naga/src/front/wgsl/lower/mod.rs:1731-1742 | naga/src/front/wgsl/lower/mod.rs:1746-1757 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/lower/mod.rs:1731\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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1731}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2144e7de6d0b299298c0b3b209b25062cfd7a1fae3c268e4244099308f9c2e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): naga/src/proc/constant_evaluator.rs:2918-2929 | naga/src/proc/constant_evaluator.rs:2981-2992 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/proc/constant_evaluator.rs:2918\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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2b48c0160c955fccc3f8e52f4971fdb37efba7242055dbf804f34d49beaee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): naga/src/proc/constant_evaluator.rs:2931-2942 | naga/src/proc/constant_evaluator.rs:2994-3005 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060naga/src/proc/constant_evaluator.rs:2943\u0060 calls \u0060Err\u0060, \u0060U16\u0060, \u0060U32\u0060 and \u0060naga/src/proc/constant_evaluator.rs:3006\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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":2931}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc6ecd51cfb7b4e0ae194efcf7b3ea801573e5b051ccf2e13ce67946bddfa0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): naga/src/valid/function.rs:735-746 | naga/src/valid/function.rs:798-809 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/valid/function.rs:735\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":"naga/src/valid/function.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a35dfbff93b871fe4aa349b049684643a2d40b0143e92022750bf9e670057b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): player/src/lib.rs:1135-1146 | player/src/lib.rs:1290-1301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060player/src/lib.rs:1135\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"player/src/lib.rs"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"203a8f0965be9ac0be7e551324c295963ffad42e9e1bd090748db7ef0e457d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wgpu-core/src/device/resource.rs:547-558 | wgpu-core/src/device/resource.rs:566-577 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/device/resource.rs:566\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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"86453cef502b6bb79356c26d4243949c8d73d2579a802541a541fa7b56c5883d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wgpu-core/src/indirect_validation/dispatch.rs:150-161 | wgpu-core/src/indirect_validation/dispatch.rs:176-187 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/indirect_validation/dispatch.rs:150\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/dispatch.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8c50754ea01eedcbe06586cfc0f51a0f3a2187877997ba7127472cbe306788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wgpu-core/src/track/texture.rs:1231-1242 | wgpu-core/src/track/texture.rs:1483-1494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/track/texture.rs:1231\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":"wgpu-core/src/track/texture.rs"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"92120f2bf6530f67a9ed2f51402f53cd58673167fd58df8326d8313fe543182e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wgpu-types/src/write_only.rs:539-550 | wgpu-types/src/write_only.rs:552-563 \u2014 both copies are in the same file, so extract the block 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":"wgpu-types/src/write_only.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d36f0c555da19927e1348cae9923a4f911b3b52c31a70b76653133fdbace8dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wgpu/src/api/command_encoder.rs:458-469 | wgpu/src/api/compute_pass.rs:139-150 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/command_encoder.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4aa00d72f8b136abf2fa7fc653c2639b98f09b4ab40021cc3d1ab5f1a27ce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wgpu/src/api/render_bundle_encoder.rs:122-133 | wgpu/src/api/render_pass.rs:136-147 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060buffer_slice\u0060 to \u0060BufferSlice\u003C\u0027a\u003E\u0060 in one and \u0060BufferSlice\u003C\u0027_\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/render_bundle_encoder.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"3192b07a9f9769fc0ecb2b0b852fa55894cc6b90306437981a45d56fffa01c82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): wgpu-hal/src/gles/queue.rs:499-509 | wgpu-hal/src/gles/queue.rs:514-524 | wgpu-hal/src/gles/queue.rs:529-539 | wgpu-hal/src/gles/queue.rs:541-553 | wgpu-hal/src/gles/queue.rs:559-569 | wgpu-hal/src/gles/queue.rs:574-584 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/gles/queue.rs:499\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":"wgpu-hal/src/gles/queue.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"f323a1044cb673fc65d3aa2983c6a65bdeda64b60f9a6337b985c20349ff5ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): wgpu-hal/src/gles/queue.rs:627-637 | wgpu-hal/src/gles/queue.rs:640-650 | wgpu-hal/src/gles/queue.rs:653-663 | wgpu-hal/src/gles/queue.rs:679-689 \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 \u0060wgpu-hal/src/gles/queue.rs:627\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":"wgpu-hal/src/gles/queue.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d72c377ea72af5cd3cdac18211f92d862cf3c787e2069d09847120a83267ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): naga/src/back/hlsl/writer.rs:3669-3677 | naga/src/back/wgsl/writer.rs:1689-1699 | naga/src/back/wgsl/writer.rs:1763-1773 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3669}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b9e48daa0feb96ff0cfde500a074b1e9053882edba1af51813acb8451521b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): naga/src/front/glsl/parser.rs:273-282 | naga/src/front/glsl/parser.rs:351-360 | naga/src/front/glsl/parser.rs:380-390 \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 \u0060naga/src/front/glsl/parser.rs:380\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"naga/src/front/glsl/parser.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2499a622f1d379ef2c6cc9419dbeeed82b41c40aabc635fffb28ec063e3159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 3): naga/src/front/spv/next_block.rs:967-977 | naga/src/front/spv/next_block.rs:1101-1109 | naga/src/front/spv/next_block.rs:2961-2968 \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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abbdd5e089875d86412820140df1b9778efe3ea2a1cb619236c46cdc9dfd2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/back/glsl/writer.rs:3211-3221 | naga/src/back/msl/writer.rs:2685-2695 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/msl/writer.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 58 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":3211}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f9e4c701852d1e545df878499575c8dc2cdf0abbe529113c59bd24c0cb0d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/back/hlsl/writer.rs:1944-1954 | naga/src/back/wgsl/writer.rs:576-586 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8da7c75192c0c7c4392aa29519c30f87e6a4f492204f09fa632ed8f4c0d877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/back/hlsl/writer.rs:3770-3780 | naga/src/back/hlsl/writer.rs:3793-3803 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/writer.rs:3770\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3770}}}],"partialFingerprints":{"codehealthFindingId/v1":"032e57e2eb7ef0c3d43036de47cb36786a0cc48564ab5572b043018c14ea881a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/back/hlsl/writer.rs:4734-4744 | naga/src/back/wgsl/writer.rs:1939-1949 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":4734}}}],"partialFingerprints":{"codehealthFindingId/v1":"474bd6b44f340a160355d7366d40203ee9f228b2391449364c5156d118cfa126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/back/pipeline_constants.rs:576-586 | naga/src/back/pipeline_constants.rs:646-656 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/pipeline_constants.rs:576\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"067719c5803505b37dd861e78bb082d03d82a0e0ae5462eb55816f23c6a4f9d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): naga/src/back/spv/mesh_shader.rs:447-457 | naga/src/back/spv/mesh_shader.rs:470-479 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/mesh_shader.rs:447\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060naga/src/back/spv/mesh_shader.rs:459\u0060 calls \u0060get_bool_type_id\u0060 and \u0060naga/src/back/spv/mesh_shader.rs:481\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":"naga/src/back/spv/mesh_shader.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"022bd951b066372a9113b077c1a7cfa2851dcde5b969523c8337b6ccb7fcecb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/back/spv/writer.rs:1555-1565 | naga/src/back/spv/writer.rs:3000-3011 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/writer.rs:1555\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"7103a6b93406f0eb5a9ef51f400a53e93db77288b9423f105b2075b2bca2c16c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/back/spv/writer.rs:2328-2338 | naga/src/back/spv/writer.rs:2340-2350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/writer.rs:2328\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":2328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ccc9d3c23ebbacd8e6bc0d0b12ff95f443ebe6a086e4a19f41b15ecc1a2688"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/common/diagnostic_debug.rs:25-35 | naga/src/common/diagnostic_display.rs:80-90 \u2014 before extracting anything, compare \u0060naga/src/common/diagnostic_debug.rs\u0060 and \u0060naga/src/common/diagnostic_display.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/common/diagnostic_debug.rs:25\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":"naga/src/common/diagnostic_debug.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c42d71119bae21a10a17a0263a88e9f8b8d42b7d7d2488be8d2d66db28e007"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/front/glsl/builtins.rs:269-279 | naga/src/front/glsl/builtins.rs:298-308 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:269\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8b610e4ef9d5a08e9ff5b15fa87c5fe3a06f36c351e1be787c086b7a8ebba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/front/glsl/types.rs:107-117 | naga/src/front/glsl/types.rs:148-158 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/glsl/types.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5923317545933665571a83569e8dfa644a0e062f7c99009629a8bf611078f2bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/proc/constant_evaluator.rs:2946-2956 | naga/src/proc/constant_evaluator.rs:3006-3016 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/proc/constant_evaluator.rs:2946\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/proc/constant_evaluator.rs:2943\u0060 calls \u0060Err\u0060, \u0060U16\u0060, \u0060U32\u0060 and \u0060naga/src/proc/constant_evaluator.rs:3005\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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":2946}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1a140fbcfa6ed00450d2cbbabd29b952cb951c977c8c74f3238c34baa32ef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/proc/constant_evaluator.rs:3040-3050 | naga/src/proc/constant_evaluator.rs:3085-3095 \u2014 both copies are in the same file, so extract the block 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":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":3040}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c0e24264d3a8ccdcbdbdaf0575a976d53acd4abe44074410cc8b0d2d24c7a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/valid/interface.rs:1401-1411 | naga/src/valid/interface.rs:1451-1461 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/valid/interface.rs:1401\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":"naga/src/valid/interface.rs"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3029a3c56bebc3770943f6d45772bd228726aab3dcdd0aef8431c08b7a1ed39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wgpu-core/src/command/render.rs:3208-3218 | wgpu-core/src/command/render.rs:3405-3415 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/command/render.rs:3208\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":"wgpu-core/src/command/render.rs"},"region":{"startLine":3208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53f5c0944a94c28c0addff91752fb393d41b59c9b078c21aac0aa96523e91d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wgpu-core/src/track/buffer.rs:394-404 | wgpu-core/src/track/buffer.rs:428-438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/track/buffer.rs:394\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/buffer.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"109b482a781711858330e4691e58ffc2288477501046fd7b721145f1f59e87d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wgpu-hal/src/gles/queue.rs:614-624 | wgpu-hal/src/gles/queue.rs:666-676 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/gles/queue.rs:614\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":"wgpu-hal/src/gles/queue.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"055e5d1873725832c6f5a61facd58dbbec1e2b69a4ab8b5f9bcd37838fd575d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wgpu-hal/src/gles/wgl.rs:692-702 | wgpu-hal/src/gles/wgl.rs:770-780 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/gles/wgl.rs:692\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/wgl.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"5799aaa9369574e991e12f94de4b9249b3eddb218737aade4fc0817500a1f71f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wgpu-hal/src/metal/icb.rs:843-853 | wgpu-hal/src/metal/icb.rs:864-874 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/metal/icb.rs:864\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":"wgpu-hal/src/metal/icb.rs"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"300301e59ece30b0f26732d3a0bcbb0240e907350ccfa39b58c0196919deedec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wgpu/src/backend/webgpu.rs:2185-2195 | wgpu/src/backend/webgpu.rs:2226-2236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu/src/backend/webgpu.rs:2185\u0060 it does not close everything it opens, so those exact 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 \u0060desc\u0060 to \u0060\u0026crate::ShaderModuleDescriptor\u003C\u0027_\u003E\u0060 in one and \u0060\u0026crate::ShaderModuleDescriptorPassthrough\u003C\u0027_\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":2185}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0487727278a2ec0464d5e96a0362bf0edab312e856b8b0b9230bd6c81c86f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): wgpu/src/backend/wgpu_core.rs:2184-2194 | wgpu/src/backend/wgpu_core.rs:2236-2243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060desc\u0060 to \u0060\u0026crate::ComputePassDescriptor\u003C\u0027_\u003E\u0060 in one and \u0060\u0026crate::RenderPassDescriptor\u003C\u0027_\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":2184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4d8dd4f43163fc558304d2856131c58ee71c03e33d61df43fdea33831517b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wgpu/src/dispatch.rs:927-937 | wgpu/src/dispatch.rs:1079-1089 \u2014 both copies are in the same file, so extract the block 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":"wgpu/src/dispatch.rs"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9235324d719ee52f49f3fc3452f24cc8b7628406bf55d54e8c1dca3e3f01ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 10): naga/src/front/spv/next_block.rs:462-468 | naga/src/front/spv/next_block.rs:539-545 | naga/src/front/spv/next_block.rs:1076-1081 | naga/src/front/spv/next_block.rs:1108-1113 | naga/src/front/spv/next_block.rs:1176-1181 | naga/src/front/spv/next_block.rs:1269-1274 | naga/src/front/spv/next_block.rs:1483-1489 | naga/src/front/spv/next_block.rs:2362-2371 | naga/src/front/spv/next_block.rs:2713-2719 | naga/src/front/spv/next_block.rs:2784-2790 \u2014 all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060naga/src/front/spv/next_block.rs:469\u0060 calls \u0060lookup\u0060 and \u0060naga/src/front/spv/next_block.rs:1082\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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"939b9862be17938e191d82f0cce9c6185a27123eccf922d0949cfc6846e5cddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 5): naga/src/front/spv/mod.rs:1070-1075 | naga/src/front/spv/mod.rs:1124-1129 | naga/src/front/spv/mod.rs:1192-1197 | naga/src/front/spv/mod.rs:1257-1263 | naga/src/front/spv/next_block.rs:867-876 \u2014 before extracting anything, compare \u0060naga/src/front/spv/mod.rs\u0060 and \u0060naga/src/front/spv/next_block.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/spv/next_block.rs:867\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/spv/mod.rs:1123\u0060 calls \u0060next\u0060 and \u0060naga/src/front/spv/mod.rs:1069\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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa8a488de240931a0286b5b3da36381727c0c2e53a21010016249d526fe3355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): naga/src/front/spv/mod.rs:2130-2139 | naga/src/front/spv/mod.rs:2165-2174 | naga/src/front/spv/mod.rs:2192-2201 | naga/src/front/spv/mod.rs:2228-2237 \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 \u0060naga/src/front/spv/mod.rs:2130\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ceee6432625115c2f81b190b3145dfe90d7467fa0164b6242c8c4fbd6d3405a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): naga/src/back/glsl/writer.rs:848-855 | naga/src/back/hlsl/writer.rs:245-252 | naga/src/back/msl/writer.rs:3817-3826 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/hlsl/writer.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 10 separate duplicated blocks between them, totalling at least 99 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 \u0060naga/src/back/glsl/writer.rs:848\u0060 it does not close everything it opens, so those exact 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"471f884ce7629690723afc018bb31d049e07ff6e31093df94f9c82704e2b2b09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): naga/src/back/hlsl/writer.rs:3588-3597 | naga/src/back/hlsl/writer.rs:3620-3629 | naga/src/back/hlsl/writer.rs:3633-3642 \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 \u0060naga/src/back/hlsl/writer.rs:3588\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3588}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef36a1b35f93dc792c4af9b83a1f85362a9235ce9c296ec87de5431d057d70b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): naga/src/back/spv/instructions.rs:799-808 | naga/src/back/spv/instructions.rs:902-911 | naga/src/back/spv/instructions.rs:937-946 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/instructions.rs:799\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/back/spv/instructions.rs:899\u0060 calls \u0060add_operand\u0060 and \u0060naga/src/back/spv/instructions.rs:798\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":"naga/src/back/spv/instructions.rs"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"36590240424787d22c06a948fa07923ce5d9ae2b13a601da72caa50df0508b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): wgpu-core/src/command/compute.rs:653-662 | wgpu-core/src/command/ray_tracing_pass.rs:701-710 | wgpu-core/src/command/render.rs:2345-2355 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/compute.rs\u0060 and \u0060wgpu-core/src/command/ray_tracing_pass.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 180 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 \u0060wgpu-core/src/command/compute.rs:653\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wgpu-core/src/command/render.rs:2357\u0060 calls \u0060new_usage_scope\u0060 and \u0060wgpu-core/src/command/compute.rs:663\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":"wgpu-core/src/command/compute.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"965c13458192b51ea2b07d2a35173a1075d6cd77c940068202ffea63a0a4b24f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): wgpu-core/src/pipeline.rs:619-628 | wgpu-core/src/pipeline.rs:1253-1262 | wgpu-core/src/ray_tracing_pipeline.rs:267-278 \u2014 before extracting anything, compare \u0060wgpu-core/src/pipeline.rs\u0060 and \u0060wgpu-core/src/ray_tracing_pipeline.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 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 \u0060wgpu-core/src/pipeline.rs:619\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":"wgpu-core/src/pipeline.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afadef95402ddfe8c5d7fa8aaa46768c0f4975256f08f0ffd079971e3eec8a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/back/glsl/writer.rs:1692-1708 | naga/src/back/hlsl/writer.rs:2432-2441 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/hlsl/writer.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 10 separate duplicated blocks between them, totalling at least 99 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 \u0060naga/src/back/glsl/writer.rs:1692\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1280b57daac1a5e6a4d892e2d0b3c5a44db13d4451a19200ae980d028977db8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/back/msl/mod.rs:603-612 | naga/src/back/msl/mod.rs:624-633 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/mod.rs:603\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/mod.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacd79832e7067927176d9cf6e0037ab2cfd1d23cc5cd13dbc51eb26a4d018a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/back/msl/writer.rs:6269-6278 | naga/src/back/msl/writer.rs:6493-6502 \u2014 both copies are in the same file, so extract the block 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":6269}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef146b7f27102bc1a42f96550f48eee8e2e8722554a4fc612bab707852cea1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): naga/src/back/spv/block.rs:3933-3942 | naga/src/back/spv/block.rs:4289-4295 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/block.rs:3933\u0060 it does not close everything it opens, so those exact 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":"naga/src/back/spv/block.rs"},"region":{"startLine":3933}}}],"partialFingerprints":{"codehealthFindingId/v1":"6458fce45c5466dfdcff6aa3c34f014f1cde549e797008dfddeca9af55ee5d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/back/wgsl/writer.rs:921-930 | naga/src/back/wgsl/writer.rs:950-959 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/wgsl/writer.rs:921\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/back/wgsl/writer.rs:918\u0060 calls \u0060to_wgsl\u0060 and \u0060naga/src/back/wgsl/writer.rs:947\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":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"902c981742a32556c88c74259a2c7eb753cefdb3ce1a36cd6c68953b3f606387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/front/glsl/builtins.rs:633-642 | naga/src/front/glsl/builtins.rs:809-818 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:633\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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cda03d05d290eb28fd245e25bc38625ff9444e7251975a4c9d82a9cc24ff0d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/front/glsl/builtins.rs:857-866 | naga/src/front/glsl/builtins.rs:885-894 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:857\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e010a428a58aaf59f3159f16b6533c9859eaf5613c6b5b262f933a458aceb77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/front/glsl/builtins.rs:868-877 | naga/src/front/glsl/builtins.rs:1196-1205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:868\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"07254d16ca1a494f4c4b3adc560fd33ae3af476f04b19aaac3bec1518bdfa474"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 2): naga/src/front/spv/mod.rs:1036-1041 | naga/src/front/spv/next_block.rs:974-983 \u2014 before extracting anything, compare \u0060naga/src/front/spv/mod.rs\u0060 and \u0060naga/src/front/spv/next_block.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/spv/next_block.rs:974\u0060 it does not close everything it opens, so those exact 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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"294896489a66af404f0a8dd4d2fd0fbd047bcd72a5c35c8af5403742895ea26b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201310 lines \u00D7 4): naga/src/front/spv/next_block.rs:2539-2542 | naga/src/front/spv/next_block.rs:2634-2643 | naga/src/front/spv/next_block.rs:2721-2724 | naga/src/front/spv/next_block.rs:2787-2796 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/spv/next_block.rs:2718\u0060 calls \u0060lookup\u0060 and \u0060naga/src/front/spv/next_block.rs:2537\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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":2539}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6faa1d9c578da61424717ad64097c760536865fd870a513ec23bcc9e2f81c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/front/wgsl/lower/mod.rs:3976-3985 | naga/src/front/wgsl/lower/mod.rs:5220-5229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/lower/mod.rs:3976\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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3976}}}],"partialFingerprints":{"codehealthFindingId/v1":"536718683c59a4f7e4d618ec9de40a8479084acf4aaaadb4d37879db68356458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/front/wgsl/parse/number.rs:253-262 | naga/src/front/wgsl/parse/number.rs:272-281 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/parse/number.rs:253\u0060 it begins part-way through the construct above it, so those exact 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":"naga/src/front/wgsl/parse/number.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"73733882f7bdf2743e5f346689ea4247d63c36cca4a15d0319108ec3b3cfd278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/valid/expression.rs:1392-1401 | naga/src/valid/expression.rs:1435-1445 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/valid/expression.rs:1392\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":"naga/src/valid/expression.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88c336eb2c6006f1ffbe8311e231adfcc05802dd98dd722d998e8876b290b40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/valid/function.rs:878-887 | naga/src/valid/function.rs:993-1002 \u2014 both copies are in the same file, so extract the block 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":"naga/src/valid/function.rs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed06d4249a4b54afe725f91e836f0040600fa119ea4ed2fd3a9d29016ea8236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): naga/src/valid/function.rs:1582-1591 | naga/src/valid/function.rs:2041-2049 \u2014 both copies are in the same file, so extract the block 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":"naga/src/valid/function.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"0750cbbfeb9ac36df40067457b3daabf11d6daaaf759d5e361234d5bc91477b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/valid/interface.rs:457-466 | naga/src/valid/interface.rs:468-477 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/valid/interface.rs:457\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":"naga/src/valid/interface.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"1895e5e44c0f559a7a0277feb5fa9469fa05cbd207c767a65fa3f9f6fcee63a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): wgpu-core/src/command/bundle.rs:1051-1057 | wgpu-core/src/command/render.rs:2837-2846 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/bundle.rs\u0060 and \u0060wgpu-core/src/command/render.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note 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":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5b1c623155004b79a5849b343d3138dce8a10a44687dc057e5498e900b3476"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wgpu-hal/src/dx12/command.rs:1038-1047 | wgpu-hal/src/dx12/command.rs:1710-1719 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb1a90fe590f6f44bc342f5e29044275a3a53d1640f1084f0c6e9be6b208589"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wgpu-hal/src/gles/device.rs:1481-1490 | wgpu-hal/src/metal/device.rs:1196-1205 \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 \u0060wgpu-hal/src/gles/device.rs:1481\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3b26698ba3654f48e4e73ef2a01d8eb16b268ca9649664e1689c103b25b3f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wgpu-info/src/human.rs:320-329 | wgpu-info/src/human.rs:349-358 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-info/src/human.rs:320\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-info/src/human.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"85faf85b67252a32749a80c1aa8bb8476b75eab0ec078b67d6f2d41aa8be927f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wgpu/src/backend/webgpu.rs:2658-2667 | wgpu/src/backend/webgpu.rs:4631-4640 \u2014 both copies are in the same file, so extract the block 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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":2658}}}],"partialFingerprints":{"codehealthFindingId/v1":"6079498ca5e9f4b4d0a9fc09cff19559f4df4d3304433f946a148ccf1c11c30f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wgpu/src/backend/webgpu.rs:3912-3921 | wgpu/src/backend/webgpu.rs:4236-4245 \u2014 both copies are in the same file, so extract the block 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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":3912}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fbbf47ccb470ebc52e1b92bbb455b7bee8ae1d96d26b2283f8dbc9e09f6699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): deno_webgpu/webidl.rs:46-54 | deno_webgpu/webidl.rs:156-164 | deno_webgpu/webidl.rs:251-259 \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 \u0060deno_webgpu/webidl.rs:46\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":"deno_webgpu/webidl.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a85c57cb2ac7504a663070fda79077800d23e5fec219c1c9f5bd2ca8c3ca80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): naga/src/back/hlsl/help.rs:1130-1136 | naga/src/back/hlsl/help.rs:1204-1212 | naga/src/back/hlsl/help.rs:1281-1289 \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 \u0060naga/src/back/hlsl/help.rs:1130\u0060 it does not close everything it opens, so those exact 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 \u0060self\u0060 to \u0060super) fn write_wrapped_struct_matrix_set_function( \u0026mut\u0060 in one and \u0060super) fn write_wrapped_struct_matrix_set_vec_function( \u0026mut\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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7177e8c482044cf8e23403551276ef01906084f48c3c6c649247ec7dab2d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): naga/src/front/glsl/parser.rs:270-278 | naga/src/front/glsl/parser.rs:293-301 | naga/src/front/glsl/parser.rs:377-385 \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 \u0060naga/src/front/glsl/parser.rs:270\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":"naga/src/front/glsl/parser.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a79600e3792757027c7873b1d34c4f78b3a3915de084c0ed78c31e89c6b8754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): naga/src/front/wgsl/lower/mod.rs:3690-3698 | naga/src/front/wgsl/lower/mod.rs:3977-3985 | naga/src/front/wgsl/lower/mod.rs:5221-5229 \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 \u0060naga/src/front/wgsl/lower/mod.rs:3690\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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3690}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d1bed4375719f1701955ac106b9c5fe0cde91b31ad5484b5dca1c29afa99d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): wgpu-core/src/command/compute.rs:579-587 | wgpu-core/src/command/ray_tracing_pass.rs:447-455 | wgpu-core/src/command/render.rs:2220-2228 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/compute.rs\u0060 and \u0060wgpu-core/src/command/ray_tracing_pass.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 180 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 \u0060wgpu-core/src/command/compute.rs:579\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d7b30bf3f0b7db5a1a31330b74f6affae8674679f4ef2dd27246bb663d1254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): wgpu-hal/src/gles/queue.rs:1821-1829 | wgpu-hal/src/gles/queue.rs:1855-1863 | wgpu-hal/src/gles/queue.rs:1890-1898 \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 \u0060wgpu-hal/src/gles/queue.rs:1821\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":"wgpu-hal/src/gles/queue.rs"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5f1f4be068f062f6963db5938d627bbf75879c8c3780e76e800794300c1c2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naga/src/back/glsl/writer.rs:2288-2296 | naga/src/back/wgsl/writer.rs:1209-1217 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 10 separate duplicated blocks between them, totalling at least 141 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 \u0060naga/src/back/glsl/writer.rs:2288\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2288}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25623778973585f6f95abd32c1e1753b247c1e11abc51c2d41426fa8b50e0b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naga/src/back/hlsl/writer.rs:2425-2433 | naga/src/back/wgsl/writer.rs:961-969 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2425}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0b4d93ea7f3e88ba31635dc590dad1f973bc0abc9eb1994a5ec6698a799241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naga/src/back/hlsl/writer.rs:3881-3889 | naga/src/back/wgsl/writer.rs:1519-1527 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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 \u0060naga/src/back/hlsl/writer.rs:3881\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3881}}}],"partialFingerprints":{"codehealthFindingId/v1":"4427222cd3fadadfaf860831ea6e00b40cda478c310def354554e46b0d85aedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): naga/src/back/wgsl/writer.rs:868-875 | naga/src/back/wgsl/writer.rs:889-897 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/wgsl/writer.rs:868\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":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc11af63bb005ed522570c14f4115b8744ebf9424e19c72331dce4a4b28f62a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): naga/src/front/spv/mod.rs:1468-1474 | naga/src/front/spv/next_block.rs:2900-2908 \u2014 before extracting anything, compare \u0060naga/src/front/spv/mod.rs\u0060 and \u0060naga/src/front/spv/next_block.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/spv/next_block.rs:2900\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/spv/mod.rs:1466\u0060 calls \u0060next\u0060 and \u0060naga/src/front/spv/next_block.rs:2898\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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"633125730cedac8be7b9fe3043851da9da959f68e90b976bd0f1d44320734cba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): naga/src/front/spv/next_block.rs:736-744 | naga/src/front/spv/next_block.rs:774-781 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/spv/next_block.rs:735\u0060 calls \u0060next\u0060 and \u0060naga/src/front/spv/next_block.rs:772\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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"70411ea53423b50108aa25c8ede446271159cb26c0374794b5ac0d9f8aea97f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naga/src/front/wgsl/lower/construction.rs:529-538 | naga/src/front/wgsl/lower/mod.rs:2924-2932 \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 \u0060naga/src/front/wgsl/lower/construction.rs:529\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":"naga/src/front/wgsl/lower/construction.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"78cf98373d240d0f8d8856a253814b2c9b9d7ddebb5c9bd6c69c714537169286"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 3): naga/src/front/wgsl/lower/mod.rs:3703-3711 | naga/src/front/wgsl/lower/mod.rs:3718-3726 | naga/src/front/wgsl/lower/mod.rs:3732-3737 \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 \u0060naga/src/front/wgsl/lower/mod.rs:3703\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/wgsl/lower/mod.rs:3703\u0060 calls \u0060prepare_args\u0060 and \u0060naga/src/front/wgsl/lower/mod.rs:3732\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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3703}}}],"partialFingerprints":{"codehealthFindingId/v1":"c925e5e153c7c862935e9d3d9c71263328e9685596b012b1d44eb55a9315f447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naga/src/front/wgsl/parse/mod.rs:917-925 | naga/src/front/wgsl/parse/mod.rs:1738-1746 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/parse/mod.rs:917\u0060 it does not close everything it opens, so those exact 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":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a24ac8f037b45aea29bb77e25e462116bcaec0e61be336479e3e84ef4520266"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naga/src/valid/analyzer.rs:743-751 | naga/src/valid/analyzer.rs:802-810 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/valid/analyzer.rs:743\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":"naga/src/valid/analyzer.rs"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"870e2161b39418cb3b8db393cfb903d35ee25c19b0185474ec3e3320f4e737e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wgpu-core/src/command/compute.rs:287-295 | wgpu-core/src/command/ray_tracing_pass.rs:340-348 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/compute.rs\u0060 and \u0060wgpu-core/src/command/ray_tracing_pass.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 180 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 \u0060wgpu-core/src/command/compute.rs:287\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"7570e04b3f0b71cb55364ad49d1c8760522cec53a22465ec78415208f2fae17e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wgpu-core/src/command/transfer.rs:916-924 | wgpu-core/src/command/transfer.rs:967-975 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/command/transfer.rs:916\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/transfer.rs"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a068a3ac32cdc09e211a714dd53fb205a0496c2533091f53f5071a3d05edd0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wgpu-core/src/device/resource.rs:4614-4622 | wgpu-core/src/device/resource.rs:5238-5246 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/device/resource.rs:4614\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4614}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bdc7e5213baecf8198e3a5fa918e059f1be5958e25f7c4cd8cad01b1fb6f7fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wgpu-hal/src/gles/command.rs:502-510 | wgpu-hal/src/gles/command.rs:1224-1232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060desc\u0060 to \u0060\u0026crate::RenderPassDescriptor\u003Csuper::QuerySet, super::TextureView\u003E\u0060 in one and \u0060\u0026crate::ComputePassDescriptor\u003Csuper::QuerySet\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wgpu-hal/src/gles/command.rs:513\u0060 calls \u0060clear\u0060 and \u0060wgpu-hal/src/gles/command.rs:1234\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":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b00c5ba805c7e59b4d2667bfc075b2335c11bb7ec75a0f7774b5777a67e6c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wgpu-hal/src/gles/device.rs:144-152 | wgpu-hal/src/gles/device.rs:170-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/gles/device.rs:144\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f76151a630b84e9ae5d98d5833dac726cfea7ca14fa48ee18bc0376e5b72089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wgpu-hal/src/metal/command.rs:703-711 | wgpu-hal/src/metal/command.rs:748-756 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/metal/command.rs:703\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"6539bc3bf51a4fade3e4ef452bd930742a9e1c1b19a167cad2ade6f8dfe37951"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 5): naga/src/back/wgsl/writer.rs:920-926 | naga/src/back/wgsl/writer.rs:949-955 | naga/src/back/wgsl/writer.rs:1687-1694 | naga/src/back/wgsl/writer.rs:1761-1768 | naga/src/back/wgsl/writer.rs:1809-1815 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/back/wgsl/writer.rs:918\u0060 calls \u0060to_wgsl\u0060 and \u0060naga/src/back/wgsl/writer.rs:947\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":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be0f14f5282fa142dcbfd959887f98323133d66daeca1ab1984891af4e8a8b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): naga/src/front/spv/next_block.rs:1050-1056 | naga/src/front/spv/next_block.rs:1239-1245 | naga/src/front/spv/next_block.rs:1881-1888 | naga/src/front/spv/next_block.rs:2515-2521 \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 \u0060naga/src/front/spv/next_block.rs:1881\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"f251291e39cd36f34ea74a2500584212e9416ca8f6ad613f64014bd15b01fdf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): naga/src/back/glsl/writer.rs:2415-2422 | naga/src/back/hlsl/writer.rs:3905-3911 | naga/src/back/wgsl/writer.rs:1533-1540 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/hlsl/writer.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 10 separate duplicated blocks between them, totalling at least 99 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060\u0026mut\u0060 in one and \u0060super) fn write_literal(\u0026mut\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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2415}}}],"partialFingerprints":{"codehealthFindingId/v1":"92033bb417f4713bf89bda7dba6cee24b9e080fca8bb867e4355b765b6a363b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): naga/src/front/spv/mod.rs:1465-1472 | naga/src/front/spv/next_block.rs:2838-2844 | naga/src/front/spv/next_block.rs:2898-2904 \u2014 before extracting anything, compare \u0060naga/src/front/spv/mod.rs\u0060 and \u0060naga/src/front/spv/next_block.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3f9a271eb0dd4fea000a47a854adb93cb2076415d591c2e1c11ac0f4e68787"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): wgpu-hal/src/gles/egl.rs:1416-1423 | wgpu-hal/src/gles/web.rs:415-423 | wgpu-hal/src/gles/wgl.rs:809-817 \u2014 before extracting anything, compare \u0060wgpu-hal/src/gles/egl.rs\u0060 and \u0060wgpu-hal/src/gles/wgl.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 73 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 \u0060wgpu-hal/src/gles/egl.rs:1416\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a9353bfb44dd36c6282dfb8fb5ff1cf0efd4dde52560cfd14fdacec22bdae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naga/src/back/dot/mod.rs:221-228 | naga/src/back/dot/mod.rs:266-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/dot/mod.rs:221\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":"naga/src/back/dot/mod.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dd65b087e49a84651af6354192bb615f2075c3c3302336dd358dd95a7cd847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 3): naga/src/back/glsl/writer.rs:2169-2172 | naga/src/back/glsl/writer.rs:2185-2192 | naga/src/back/glsl/writer.rs:2242-2249 \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 \u0060naga/src/back/glsl/writer.rs:2185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa08fdda05723ae6f5a44a30bb7ec429cd26e04c16d6c2f6c81883472c5cb1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naga/src/back/hlsl/help.rs:436-443 | naga/src/back/hlsl/help.rs:563-570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/help.rs:436\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn write_wrapped_image_load_function( \u0026mut\u0060 in one and \u0060super) fn write_wrapped_image_sample_function( \u0026mut\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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87cd126d82e15beaad348b378c39e6a45024c24a1ea0585211ed23375cbeb20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naga/src/back/spv/block.rs:1724-1731 | naga/src/back/spv/block.rs:1762-1769 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/block.rs:1724\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e82949518a99f78ce4b5c2fa6d613e286494dbaf0b104ff74c4125e275311ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naga/src/front/glsl/builtins.rs:1982-1989 | naga/src/front/glsl/builtins.rs:2005-2012 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:1982\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":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1982}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63945acb10f3c7aca2c1b93dec3c01d425882311eb4ffa1cac3726b396a3396"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naga/src/front/spv/mod.rs:2250-2257 | naga/src/front/spv/mod.rs:2305-2312 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/spv/mod.rs"},"region":{"startLine":2250}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0751bcff2ac863d8c40a35991cb233c127b6b723ef661289793dc5743a7d8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): naga/src/front/spv/mod.rs:2756-2762 | naga/src/front/spv/mod.rs:2832-2839 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/spv/mod.rs"},"region":{"startLine":2756}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffa5c76c424260a960f11c846aa999c2a7b6a22f8f97b3fc7b046dff97141f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): naga/src/front/wgsl/error.rs:94-107 | naga/src/span.rs:292-305 \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 \u0060naga/src/front/wgsl/error.rs:94\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":"naga/src/front/wgsl/error.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a14876f33f32dbdbd1cd33a032daaab53d689cfa28ef4ca39eaf92849b41e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naga/src/front/wgsl/error.rs:120-127 | naga/src/span.rs:323-330 \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 \u0060naga/src/front/wgsl/error.rs:120\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":"naga/src/front/wgsl/error.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"add2a6efe1c3e203c180599696e9eb4b67bd31ce336540af8c9c3634bd57357c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): naga/src/front/wgsl/lower/mod.rs:3356-3362 | naga/src/front/wgsl/lower/mod.rs:3564-3571 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3356}}}],"partialFingerprints":{"codehealthFindingId/v1":"953c708a459793b70f43ebbd04a4d8c0a3baa3d9b0b2df626046c8ec212e751d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naga/src/front/wgsl/lower/mod.rs:3780-3787 | naga/src/front/wgsl/lower/mod.rs:3794-3801 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/lower/mod.rs:3780\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3780}}}],"partialFingerprints":{"codehealthFindingId/v1":"33faa276646d2371a8db1ea5c1c791359c9fad7f623b0a147aa8d74a37f9e98a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): naga/src/front/wgsl/lower/mod.rs:3979-3986 | naga/src/front/wgsl/lower/mod.rs:5335-5340 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/lower/mod.rs:3979\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3979}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70260d31974b2db40470253890e131df44619ea19471aecd54cb54820a046f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wgpu-core/src/command/mod.rs:764-772 | wgpu-core/src/command/mod.rs:778-786 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060\u0026mut\u0060 in one and \u0060crate) fn open(\u0026mut\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":"wgpu-core/src/command/mod.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09341bbff38f86def23ae9d4734016425dec90043f9bcd62e3e425ffebcf9e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wgpu-core/src/command/query.rs:361-368 | wgpu-core/src/command/query.rs:419-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. 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":"wgpu-core/src/command/query.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dba0c4f0ea12f249b4da748cab8cf361acf113de841148e6809c9f8264e5211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wgpu-core/src/command/ray_tracing.rs:870-877 | wgpu-core/src/command/ray_tracing.rs:957-964 \u2014 both copies are in the same file, so extract the block 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":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef03176e8229830961b28aa603877803b67aac9a3c3e13ba9706c87b540df3a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wgpu-core/src/command/ray_tracing.rs:1040-1047 | wgpu-core/src/command/ray_tracing.rs:1169-1176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/command/ray_tracing.rs:1040\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb00b591d8192c60d6241545b8321863e5bb829e8a209eabf6295517d3d712a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 2): wgpu-core/src/device/resource.rs:4540-4547 | wgpu-core/src/device/resource.rs:4696-4700 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/device/resource.rs:4540\u0060 it begins part-way through the construct above it, so those exact 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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4540}}}],"partialFingerprints":{"codehealthFindingId/v1":"72916f077f3dfe531be169ffa3dfea735eb663154b8c51093d92224046f882f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wgpu-core/src/resource.rs:878-885 | wgpu-core/src/resource.rs:3733-3740 \u2014 both copies are in the same file, so extract the block 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":"wgpu-core/src/resource.rs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b459d14f51bc6c7e0314bd2dfb04c6c7f1a279b4e0116fe928a794341cd1903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wgpu-hal/src/auxil/dxgi/dxgi_lib.rs:48-55 | wgpu-hal/src/auxil/dxgi/dxgi_lib.rs:96-103 \u2014 both copies are in the same file, so extract the block 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":"wgpu-hal/src/auxil/dxgi/dxgi_lib.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b4731504b63ca1505fbbda8c4637f0750e1ef6e27deb96efdc008c4ab5b035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wgpu-hal/src/vulkan/device.rs:2367-2374 | wgpu-hal/src/vulkan/device.rs:2450-2457 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/vulkan/device.rs:2367\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":2367}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5bade24e0a8798c1f9bcae9b76ec94142dbacb6dc8450e027c75146772d8c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wgpu/src/backend/webgpu.rs:1084-1091 | wgpu/src/backend/webgpu.rs:1092-1099 \u2014 both copies are in the same file, so extract the block 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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"086d5cb38a61d309f23f4b6b63fbc11801565f3e7499a79a38bbd9e43e7f3e61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): naga/src/back/dot/mod.rs:378-384 | naga/src/back/glsl/writer.rs:2288-2294 | naga/src/back/msl/writer.rs:4608-4614 | naga/src/back/wgsl/writer.rs:1209-1215 | naga/src/valid/analyzer.rs:1188-1194 | naga/src/valid/handles.rs:874-880 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/msl/writer.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 58 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 \u0060naga/src/back/dot/mod.rs:378\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/valid/handles.rs:873\u0060 calls \u0060validate_expr\u0060 and \u0060naga/src/back/dot/mod.rs:377\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":"naga/src/back/dot/mod.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec902489875539624168ec0fd12cdc1a846d3e3dcd865b8c14ac6d24f3a53211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): naga/src/front/wgsl/lower/mod.rs:5226-5232 | naga/src/front/wgsl/lower/mod.rs:5243-5249 | naga/src/front/wgsl/lower/mod.rs:5259-5265 | naga/src/front/wgsl/lower/mod.rs:5274-5280 | naga/src/front/wgsl/lower/mod.rs:5290-5296 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/lower/mod.rs:5226\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/wgsl/lower/mod.rs:5239\u0060 calls \u0060generate_ray_desc_type\u0060 and \u0060naga/src/front/wgsl/lower/mod.rs:5285\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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":5226}}}],"partialFingerprints":{"codehealthFindingId/v1":"376893b078ae2068bf0422ce6aadc70d84194f59b4180642856fa5eca72db7d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): naga/src/front/wgsl/lower/mod.rs:1700-1706 | naga/src/front/wgsl/lower/mod.rs:1732-1738 | naga/src/front/wgsl/lower/mod.rs:1747-1753 \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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1700}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50c250d748cb92581133d2d8695b0507a25e788fd580be6cc436107f0995b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): naga/src/front/wgsl/lower/mod.rs:3407-3413 | naga/src/front/wgsl/lower/mod.rs:3543-3549 | naga/src/front/wgsl/lower/mod.rs:3582-3588 \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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3407}}}],"partialFingerprints":{"codehealthFindingId/v1":"681390bdb405fae97c8e706f0b19224dc191e6a3a80be3a149bba117331bfcef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): deno_webgpu/lib.rs:396-402 | deno_webgpu/lib.rs:439-445 \u2014 both copies are in the same file, so extract the block 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":"deno_webgpu/lib.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da3f75dedb7ccedfcea557d8a8f939fa30f2c388ed8cf216e9ebbd703adedb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/back/glsl/writer.rs:3484-3493 | naga/src/back/glsl/writer.rs:3506-3515 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/glsl/writer.rs:3484\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/back/glsl/writer.rs:3505\u0060 calls \u0060write_expr\u0060, \u0060unwrap\u0060 and \u0060naga/src/back/glsl/writer.rs:3483\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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":3484}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25973ce290e6d12cf2378b8a8c2d654b582a16d3cf2d2ae2720bb8b4e81d45f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): naga/src/back/hlsl/help.rs:364-374 | naga/src/back/hlsl/help.rs:459-472 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/help.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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn write_wrapped_image_load_function( \u0026mut\u0060 in one and \u0060super) fn write_wrapped_image_sample_function( \u0026mut\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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"79cde8da0135f39598166bccc0cc0b8f4c8e3567b9026e68ca2ce473830b7439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/back/hlsl/help.rs:1309-1315 | naga/src/back/msl/writer.rs:5054-5060 \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 \u0060naga/src/back/hlsl/help.rs:1309\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"527982e284fc9fd40fe65f144c84a616746f50806dee5e49688117bc208cb040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/back/hlsl/storage.rs:186-192 | naga/src/back/hlsl/storage.rs:349-355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/storage.rs:186\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/storage.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0adc19a5852b681b692f12d494c08829dfd3ed05e792b66067b8148e6bcb583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/back/hlsl/writer.rs:3713-3719 | naga/src/back/hlsl/writer.rs:3757-3763 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/writer.rs:3713\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3713}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73bfe8df72d865e09a7bc8f397d889cef64ddbb88e24e48f0f9273ca1c19058"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/back/hlsl/writer.rs:4031-4048 | naga/src/back/hlsl/writer.rs:4058-4064 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/writer.rs:4031\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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":4031}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7ac4abe5f8c8eb1a4a1831e0489a90a9f01b8340815c09f2ddecddf39b51d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/back/msl/writer.rs:6592-6598 | naga/src/back/msl/writer.rs:6809-6815 \u2014 both copies are in the same file, so extract the block 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":6592}}}],"partialFingerprints":{"codehealthFindingId/v1":"f350f870d452eb932c61b1a6129aa6660133a71a6bbdc850032b01eb8b8c5ef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/front/glsl/builtins.rs:1834-1840 | naga/src/front/glsl/builtins.rs:1981-1988 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/glsl/builtins.rs:1834\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1834}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2cec9993fb3da2e6f60ac33a44f92d6312c187b4a41aa302928a4a3eb5dad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/front/spv/mod.rs:1006-1012 | naga/src/front/spv/mod.rs:1305-1311 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2164bd67e4397385adbc30d44e93455d77e72aff86b5ea67a37a4a6dc5d7a22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/front/spv/mod.rs:2843-2849 | naga/src/front/spv/mod.rs:2954-2960 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/spv/mod.rs"},"region":{"startLine":2843}}}],"partialFingerprints":{"codehealthFindingId/v1":"7432e400383ab98128996ba93543c03a80876d675feb0fdc9b3547fa8876c28d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naga/src/front/spv/next_block.rs:2434-2442 | naga/src/front/spv/next_block.rs:2474-2482 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/spv/next_block.rs:2433\u0060 calls \u0060next\u0060 and \u0060naga/src/front/spv/next_block.rs:2473\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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":2434}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40551b596d8d017f1a76a9d94357a5b3d6d4973bc45014a3eb98aeae30ed8bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/front/wgsl/lower/mod.rs:1505-1511 | naga/src/front/wgsl/lower/mod.rs:2371-2377 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a3ca2c65797a27be59ceed90e7366bdf2231d370e6338083cb21793dd97f87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/front/wgsl/lower/mod.rs:4763-4769 | naga/src/front/wgsl/lower/mod.rs:4891-4897 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/lower/mod.rs:4763\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":4763}}}],"partialFingerprints":{"codehealthFindingId/v1":"de66c702fb96af05bb99e9dc085e3dcdeae5f9393c4cc437c78898164af4655e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/front/wgsl/parse/lexer.rs:395-401 | naga/src/front/wgsl/parse/lexer.rs:404-410 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/parse/lexer.rs:395\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060naga/src/front/wgsl/parse/lexer.rs:403\u0060 calls \u0060Some\u0060, \u0060as_str\u0060 and \u0060naga/src/front/wgsl/parse/lexer.rs:412\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":"naga/src/front/wgsl/parse/lexer.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5133b4f43417d8e2a5e32fb89949e823a03aafcb8a1193c34136a5a43e17c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naga/src/front/wgsl/parse/mod.rs:1652-1660 | naga/src/front/wgsl/parse/mod.rs:1885-1893 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/parse/mod.rs:1652\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e35ce76a669e5f3f3001702c527a17b59d0d5a30522a6d88cd31489873345a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/front/wgsl/parse/number.rs:454-463 | naga/src/front/wgsl/parse/number.rs:471-480 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/parse/number.rs:454\u0060 it does not close everything it opens, so those exact 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, \u0060naga/src/front/wgsl/parse/number.rs:469\u0060 calls \u0060starts_with\u0060 and \u0060naga/src/front/wgsl/parse/number.rs:451\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":"naga/src/front/wgsl/parse/number.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccd078e3cdfb6eea0d99c20284239901bf226fff22600c19afccd3fb63ada8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wgpu-core/src/device/resource.rs:2658-2664 | wgpu-core/src/device/resource.rs:2684-2690 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/device/resource.rs:2658\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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":2658}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e93352eaf50bf70bbfa7a9414badb7e1a78ded52ac9addc943601e33858e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wgpu-core/src/indirect_validation/dispatch.rs:87-93 | wgpu-core/src/timestamp_normalization/mod.rs:143-150 \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 \u0060wgpu-core/src/indirect_validation/dispatch.rs:87\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"wgpu-core/src/indirect_validation/dispatch.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d5d77e327a6a673e842668252fcc0390305b3112a70b4a248320bedb3755c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wgpu-core/src/indirect_validation/dispatch.rs:274-280 | wgpu-core/src/indirect_validation/draw.rs:160-166 \u2014 before extracting anything, compare \u0060wgpu-core/src/indirect_validation/dispatch.rs\u0060 and \u0060wgpu-core/src/indirect_validation/draw.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 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 \u0060wgpu-core/src/indirect_validation/dispatch.rs:274\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/dispatch.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce2ecd2b55d214b5c9a37d219f7fd79b41eeeb15083564bf77000b4dfd611d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wgpu-hal/src/gles/device.rs:1688-1696 | wgpu-hal/src/gles/device.rs:1724-1732 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060pipeline\u0060 to \u0060super::RenderPipeline\u0060 in one and \u0060super::ComputePipeline\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":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"736ec518552a830003b063ef18972d2152124a29296d21a30d4508a307687a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wgpu-hal/src/metal/device.rs:198-204 | wgpu-hal/src/vulkan/device.rs:816-822 \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 \u0060wgpu-hal/src/metal/device.rs:198\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed18d3f0b4db8896df97fa39819df0aef01a50a213c8dc7d91a7bcfa799b950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): naga/src/back/dot/mod.rs:379-384 | naga/src/back/glsl/writer.rs:2289-2294 | naga/src/back/msl/writer.rs:4609-4614 | naga/src/back/wgsl/writer.rs:1210-1215 | naga/src/valid/analyzer.rs:1189-1194 | naga/src/valid/function.rs:755-760 | naga/src/valid/handles.rs:875-880 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/msl/writer.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 58 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/valid/handles.rs:873\u0060 calls \u0060validate_expr\u0060 and \u0060naga/src/back/dot/mod.rs:377\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":"naga/src/back/dot/mod.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d3029874745ea64f79492c132d933267f6241476e26e48fe8aa67dbd419e26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): naga/src/front/wgsl/lower/mod.rs:5225-5230 | naga/src/front/wgsl/lower/mod.rs:5242-5247 | naga/src/front/wgsl/lower/mod.rs:5258-5263 | naga/src/front/wgsl/lower/mod.rs:5273-5278 | naga/src/front/wgsl/lower/mod.rs:5289-5294 | naga/src/front/wgsl/lower/mod.rs:5353-5358 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/wgsl/lower/mod.rs:5239\u0060 calls \u0060generate_ray_desc_type\u0060 and \u0060naga/src/front/wgsl/lower/mod.rs:5285\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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":5225}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c13898f3640f7f60de0ee230b2384aa55951aa15cbdc9e135bf3074281dc77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): naga/src/front/spv/mod.rs:1464-1469 | naga/src/front/spv/next_block.rs:861-869 | naga/src/front/spv/next_block.rs:2837-2842 | naga/src/front/spv/next_block.rs:2868-2873 | naga/src/front/spv/next_block.rs:2897-2902 \u2014 before extracting anything, compare \u0060naga/src/front/spv/mod.rs\u0060 and \u0060naga/src/front/spv/next_block.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060naga/src/front/spv/next_block.rs:2843\u0060 calls \u0060next\u0060 and \u0060naga/src/front/spv/next_block.rs:2874\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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8fcca49bce25062107222a817be76add762c5acd8318bc5212384a161eeae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): naga/src/front/spv/mod.rs:2151-2156 | naga/src/front/spv/mod.rs:2249-2254 | naga/src/front/spv/mod.rs:2304-2309 | naga/src/front/spv/mod.rs:2374-2379 | naga/src/front/spv/mod.rs:2618-2624 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ca2c736b766b75c4257c5b2bd1403358ec77c00aafe6b347c794cb3eff662c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): naga/src/back/msl/writer.rs:2365-2370 | naga/src/back/msl/writer.rs:2611-2616 | naga/src/back/msl/writer.rs:3201-3206 | naga/src/back/msl/writer.rs:4449-4454 \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 \u0060naga/src/back/msl/writer.rs:2365\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":"naga/src/back/msl/writer.rs"},"region":{"startLine":2365}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5c2461a2a3e8e007f0ce0b5e724ec3bc9815edf404f1ee50829acfc139e7e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): naga/src/back/hlsl/writer.rs:2926-2932 | naga/src/back/hlsl/writer.rs:3135-3141 | naga/src/back/hlsl/writer.rs:3199-3205 \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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2926}}}],"partialFingerprints":{"codehealthFindingId/v1":"a052e583d1b4796bce341b801e00f7b406d87ce91e311d549b618320fe10c71b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): naga/src/front/spv/mod.rs:1007-1012 | naga/src/front/spv/mod.rs:1037-1042 | naga/src/front/spv/mod.rs:1306-1311 \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, \u0060naga/src/front/spv/mod.rs:1036\u0060 calls \u0060next\u0060 and \u0060naga/src/front/spv/mod.rs:1006\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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d8cd53788e9af2e1d08b60b40f0a0032c503b9d074270f6c35cc8c0ba043fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): naga/src/front/spv/mod.rs:1198-1203 | naga/src/front/spv/mod.rs:1205-1210 | naga/src/front/spv/mod.rs:1266-1272 \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, \u0060naga/src/front/spv/mod.rs:1263\u0060 calls \u0060lookup\u0060, \u0060get_expr_handle\u0060 and \u0060naga/src/front/spv/mod.rs:1195\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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8396783e0f8d3fe36f024a7b65e0dc5ac5a5f0eedf895c84867b469a4442a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/back/glsl/writer.rs:3564-3569 | naga/src/back/hlsl/writer.rs:3506-3512 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/hlsl/writer.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 10 separate duplicated blocks between them, totalling at least 99 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 \u0060naga/src/back/glsl/writer.rs:3564\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":3564}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b3ce37993fadbeb85bfc1d8405192de3218bd51af366233d02bbafe076f128"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/back/hlsl/writer.rs:3448-3453 | naga/src/back/hlsl/writer.rs:3479-3486 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/writer.rs:3479\u0060 it does not close everything it opens, so those exact 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3448}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c6d71459fb8d4b97a60742aec10dc47d59bc75229eec0b7a154ead3600a545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naga/src/back/hlsl/writer.rs:4080-4087 | naga/src/back/wgsl/writer.rs:1609-1616 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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 \u0060naga/src/back/hlsl/writer.rs:4080\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":4080}}}],"partialFingerprints":{"codehealthFindingId/v1":"833e9e078ab6869ebdd758a880f66c3a81bff088468f214f24a7478710551847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/back/hlsl/writer.rs:4374-4379 | naga/src/back/wgsl/writer.rs:2059-2064 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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 \u0060naga/src/back/hlsl/writer.rs:4374\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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":4374}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1e281b0d1b4bd5ca2ef6f362d9f5a613d2e30d898f346af452d0332b180533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/back/msl/writer.rs:2022-2027 | naga/src/back/msl/writer.rs:2037-2042 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/writer.rs:2022\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":2022}}}],"partialFingerprints":{"codehealthFindingId/v1":"f654c7cd6bd4219a75ef6b9fdf9903fd6797e0cb86c3562eb1fabdf3cb00ec2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/back/msl/writer.rs:7283-7288 | naga/src/back/msl/writer.rs:8533-8540 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/writer.rs:7283\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":7283}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e522fb270fbfc726e74aba61a35a874373837d9041503567923d985c207a49c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/back/spv/writer.rs:943-949 | naga/src/back/spv/writer.rs:1175-1181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/spv/writer.rs:943\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a4590fe4008a09a909081794be7a9d5f11ab40e3c4e4221ed839d5774c2b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): naga/src/front/glsl/builtins.rs:925-928 | naga/src/front/glsl/builtins.rs:1079-1084 | naga/src/front/glsl/builtins.rs:1357-1362 \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 \u0060naga/src/front/glsl/builtins.rs:1079\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9692493140469f355c8d60818b408b737d6ac07c5115571034895251a14342"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/front/spv/image.rs:289-294 | naga/src/front/spv/image.rs:419-424 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/image.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"2395c233d95963c0c46fc6420a63a82ca6e5a7136bc766764391d673a14cbc3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naga/src/front/spv/next_block.rs:469-477 | naga/src/front/spv/next_block.rs:548-556 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"41bf7d8d1ec6b45c44a52689d862db4d57d96071211bddc5a6d5dee33aff09ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/front/wgsl/lower/mod.rs:3425-3430 | naga/src/front/wgsl/lower/mod.rs:3566-3571 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3425}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e88f0e2268ba1394506d9f6eaa62b088b494d6976888e0b4df07fa2da01618a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/front/wgsl/parse/mod.rs:1182-1187 | naga/src/front/wgsl/parse/mod.rs:1196-1201 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"9086b8e9fcff93a4a559040abdbe99123deaff15f55b8a3d8617d1ee91e88d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/valid/analyzer.rs:723-728 | naga/src/valid/analyzer.rs:749-754 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/valid/analyzer.rs:723\u0060 it does not close everything it opens, so those exact 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, \u0060naga/src/valid/analyzer.rs:729\u0060 calls \u0060add_ref\u0060 and \u0060naga/src/valid/analyzer.rs:755\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":"naga/src/valid/analyzer.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4e027ded684edd030b6e6922244a0f109ae5053ca9e9e2f9484a01d61b320e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wgpu-core/src/binding_model.rs:1801-1806 | wgpu-core/src/resource.rs:2848-2854 \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 \u0060wgpu-core/src/binding_model.rs:1801\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/binding_model.rs"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d84935b960a7ac37b6ae4821bf294c3e945cff1ff887970752057ad970b8d64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wgpu-core/src/pipeline.rs:686-691 | wgpu-core/src/pipeline.rs:1336-1341 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/pipeline.rs:686\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":"wgpu-core/src/pipeline.rs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"16482b1b27bdfba9a0b1e4caac3eb069603fde5126cf04e90ccb7fa6b21ec9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wgpu-hal/src/vulkan/device.rs:2850-2856 | wgpu-hal/src/vulkan/device.rs:2919-2924 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/vulkan/device.rs:2850\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73839adfa5c19cf1069048128fcb9597e1a15d6a02485007af75db9256609fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wgpu-hal/src/vulkan/instance.rs:130-135 | wgpu-hal/src/vulkan/instance.rs:143-148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-hal/src/vulkan/instance.rs:130\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/instance.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1ab4aee983306eb6b6d3366a567f775dd68a33bc079e65cf00528d90614453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 12): naga/src/front/spv/next_block.rs:463-468 | naga/src/front/spv/next_block.rs:540-545 | naga/src/front/spv/next_block.rs:1052-1056 | naga/src/front/spv/next_block.rs:1077-1081 | naga/src/front/spv/next_block.rs:1109-1113 | naga/src/front/spv/next_block.rs:1177-1181 | naga/src/front/spv/next_block.rs:1241-1245 | naga/src/front/spv/next_block.rs:1270-1274 | naga/src/front/spv/next_block.rs:1484-1489 | naga/src/front/spv/next_block.rs:1883-1888 | naga/src/front/spv/next_block.rs:2363-2371 | naga/src/front/spv/next_block.rs:2714-2719 \u2014 all 12 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, \u0060naga/src/front/spv/next_block.rs:462\u0060 calls \u0060next\u0060 and \u0060naga/src/front/spv/next_block.rs:1050\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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7b4bd7fd354cc92c2011d33e535fb2c39353c2e84aac35de498a5f13e6897f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): naga/src/back/hlsl/writer.rs:2732-2737 | naga/src/back/wgsl/writer.rs:920-924 | naga/src/back/wgsl/writer.rs:949-953 | naga/src/back/wgsl/writer.rs:1687-1692 | naga/src/back/wgsl/writer.rs:1761-1766 | naga/src/back/wgsl/writer.rs:1809-1813 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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 \u0060naga/src/back/hlsl/writer.rs:2732\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/back/wgsl/writer.rs:918\u0060 calls \u0060to_wgsl\u0060 and \u0060naga/src/back/wgsl/writer.rs:947\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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2732}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b08a142364424a863bc1bb2e57538bc596d976eec4cec010254ba411eb78742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): naga/src/back/hlsl/writer.rs:4373-4377 | naga/src/back/wgsl/writer.rs:1241-1245 | naga/src/back/wgsl/writer.rs:1274-1278 | naga/src/back/wgsl/writer.rs:1685-1689 | naga/src/back/wgsl/writer.rs:1969-1973 | naga/src/back/wgsl/writer.rs:2058-2062 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":4373}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2903cd509620bbc04f73b5d63e7688250b3184742fc59a1134389e4bb912f03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): naga/src/front/spv/next_block.rs:462-467 | naga/src/front/spv/next_block.rs:1076-1080 | naga/src/front/spv/next_block.rs:1269-1273 | naga/src/front/spv/next_block.rs:1511-1516 | naga/src/front/spv/next_block.rs:2362-2370 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060naga/src/front/spv/next_block.rs:469\u0060 calls \u0060lookup\u0060 and \u0060naga/src/front/spv/next_block.rs:1082\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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"e571d46dae967d0dc4af76fb2902541277da4ca7e9c8618c15fe2d033026cbd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): naga/src/back/hlsl/help.rs:1118-1124 | naga/src/back/hlsl/help.rs:1179-1185 | naga/src/back/hlsl/help.rs:1258-1264 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn write_wrapped_struct_matrix_set_function( \u0026mut\u0060 in one and \u0060super) fn write_wrapped_struct_matrix_set_vec_function( \u0026mut\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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"504b2c9e91aeacdbe749ad7049debf9fa94d0883d13e666af3290072beb26cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): naga/src/back/hlsl/storage.rs:357-361 | naga/src/back/hlsl/storage.rs:377-381 | naga/src/back/hlsl/storage.rs:428-433 \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 \u0060naga/src/back/hlsl/storage.rs:357\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/storage.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc7deded80bdb78842bcf94c3e1dc079ad81d0317299abef32acde6316cfe44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 4): naga/src/front/wgsl/lower/mod.rs:3684-3688 | naga/src/front/wgsl/lower/mod.rs:3938-3940 | naga/src/front/wgsl/lower/mod.rs:3970-3974 | naga/src/front/wgsl/lower/mod.rs:5214-5218 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/wgsl/lower/mod.rs:5212\u0060 calls \u0060hit_object_pointer\u0060, \u0060next\u0060 and \u0060naga/src/front/wgsl/lower/mod.rs:3936\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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3684}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a35ac95899c961ae69d0d4feb3c20f6606a60b56cd9989032a8959ad4565923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): naga/src/front/wgsl/lower/mod.rs:4521-4525 | naga/src/front/wgsl/lower/mod.rs:5397-5401 | naga/src/front/wgsl/lower/mod.rs:5420-5424 \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 \u0060naga/src/front/wgsl/lower/mod.rs:4521\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":4521}}}],"partialFingerprints":{"codehealthFindingId/v1":"242cf18d4b5f5fd00b81ec6179eb7373d0d71ac3877aa32db54c27af6101a434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): naga/src/front/wgsl/parse/mod.rs:1898-1902 | naga/src/front/wgsl/parse/mod.rs:1904-1908 | naga/src/front/wgsl/parse/mod.rs:1910-1914 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fd0c148f4f75c1b097fb6924c4d233e8b954bef72e218fa81345a85d261e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): wgpu-hal/src/gles/queue.rs:70-74 | wgpu-hal/src/gles/queue.rs:91-95 | wgpu-hal/src/gles/web.rs:289-293 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/queue.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a10c3bd403d9cc15d7ca7f873cc164f8151c08bb6d85a601c351b4c1439f2f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naga/src/back/glsl/writer.rs:761-766 | naga/src/back/glsl/writer.rs:829-833 \u2014 both copies are in the same file, so extract the block 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4abe42e8dcf3e7df45efeb162bf253a8dcbfe926a3f054374599213d6a1d965"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naga/src/back/glsl/writer.rs:1787-1791 | naga/src/back/hlsl/writer.rs:2355-2359 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/hlsl/writer.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 10 separate duplicated blocks between them, totalling at least 99 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 \u0060naga/src/back/glsl/writer.rs:1787\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1787}}}],"partialFingerprints":{"codehealthFindingId/v1":"a022c5e9922fd4c3b2b07779c0b37b2c1a3094d2eaf0fac7bc8413d4082f726c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naga/src/back/glsl/writer.rs:1867-1871 | naga/src/back/hlsl/writer.rs:2812-2816 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/hlsl/writer.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 10 separate duplicated blocks between them, totalling at least 99 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 \u0060naga/src/back/glsl/writer.rs:1867\u0060 it begins part-way through the construct above it, so those exact 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, \u0060naga/src/back/glsl/writer.rs:1872\u0060 calls \u0060next\u0060 and \u0060naga/src/back/hlsl/writer.rs:2817\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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e7f9c0710aad3cabcf2c7beee977cfefd24b87cf169728e5d47c1606b05abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): naga/src/back/hlsl/writer.rs:2538-2549 | naga/src/back/hlsl/writer.rs:5013-5024 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/writer.rs:2538\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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2538}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4161dd997c0d51d2d25f4e7bb24a7372ced924c5f944b4674a2482013aa5700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naga/src/back/msl/writer.rs:1706-1710 | naga/src/back/msl/writer.rs:1730-1734 \u2014 both copies are in the same file, so extract the block 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":"naga/src/back/msl/writer.rs"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5cbbaa05325c08f5eb790cbff51b8495afbee49e6b4cbcb891e9dd8d357de2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naga/src/back/msl/writer.rs:2949-2956 | naga/src/back/msl/writer.rs:2968-2975 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/writer.rs:2949\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":"naga/src/back/msl/writer.rs"},"region":{"startLine":2949}}}],"partialFingerprints":{"codehealthFindingId/v1":"c757166606d47a748bcd39e70c0db04c3b88f4ae0b91f20a37af48e1202d15fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/front/spv/next_block.rs:1516-1522 | naga/src/front/spv/next_block.rs:1523-1529 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/spv/next_block.rs"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be1ae5ae2104491d640f1c1a3b417c69ac54c3c68e35e94f03ca4bd21b1868d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/front/wgsl/parse/mod.rs:935-940 | naga/src/front/wgsl/parse/mod.rs:942-947 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"19af754474d666279af5ce8e5f9824afc6d97dce8104eab564453b76c6528b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naga/src/front/wgsl/parse/number.rs:438-443 | naga/src/front/wgsl/parse/number.rs:497-501 \u2014 both copies are in the same file, so extract the block 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":"naga/src/front/wgsl/parse/number.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3fba6a4322a4de9f83066129787f6f8864a485979db8e17e5a829bd1b886be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naga/src/proc/constant_evaluator.rs:3271-3275 | naga/src/proc/constant_evaluator.rs:3342-3346 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":3271}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c9e4afebc13d3402552e47a68f41781f91266e688abe51de3d0fd5d38b3ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wgpu-core/src/pipeline.rs:613-617 | wgpu-core/src/pipeline.rs:1247-1251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/pipeline.rs:613\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/pipeline.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba45d2305078dba731947c3a0adf4e13573d71b7e54fa7e91c005f1044631654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): wgpu-core/src/track/blas.rs:17-58 | wgpu-core/src/track/query_set.rs:17-62 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/blas.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a050cd77afb07c1b1fce632c4f8054a22e9c1d010240a55f21a6572bcd005de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wgpu/src/api/pipeline_cache.rs:78-95 | wgpu/src/api/render_bundle.rs:19-26 \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 \u0060wgpu/src/api/pipeline_cache.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":"wgpu/src/api/pipeline_cache.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfd1dedcb09255c9a4ee1070da8a58f8a2b754e9c1d9094c6435e3d6469ec3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): naga/src/back/glsl/mod.rs:102-111 | naga/src/back/hlsl/mod.rs:247-256 | naga/src/back/msl/mod.rs:136-145 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/mod.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"277b58030dcf997d91d18de6cc5671158ff38e6b5c6902f365ee6913c5c93b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naga/src/back/hlsl/writer.rs:3823-3827 | naga/src/back/wgsl/writer.rs:1464-1468 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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 \u0060naga/src/back/hlsl/writer.rs:3823\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3823}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b41c44ef15b9d35d9552f57015f68f6d83b436bba123798e7fa6f78c3bb5081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): wgpu-core/src/binding_model.rs:1343-1348 | wgpu-core/src/binding_model.rs:1832-1837 | wgpu-core/src/pipeline.rs:133-138 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wgpu-core/src/binding_model.rs:1839\u0060 calls \u0060pub\u0060, \u0060check_is_valid\u0060, \u0060state\u0060 and \u0060wgpu-core/src/pipeline.rs:140\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":"wgpu-core/src/binding_model.rs"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1353195087024f79034e86da19e851b0baf33824a71c3d25b99e282c6d8213"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): wgpu-core/src/binding_model.rs:1350-1355 | wgpu-core/src/pipeline.rs:655-660 | wgpu-core/src/pipeline.rs:1289-1294 | wgpu-core/src/ray_tracing_pipeline.rs:309-314 \u2014 before extracting anything, compare \u0060wgpu-core/src/pipeline.rs\u0060 and \u0060wgpu-core/src/ray_tracing_pipeline.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 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":"wgpu-core/src/binding_model.rs"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e15d703d6548b730047cafe9641a15aebae12fa303165436d5c6c0eb4202e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): wgpu-core/src/binding_model.rs:1530-1536 | wgpu-core/src/pipeline.rs:757-763 | wgpu-core/src/resource.rs:3285-3291 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wgpu-core/src/pipeline.rs:765\u0060 calls \u0060pub\u0060, \u0060check_is_valid\u0060, \u0060raw\u0060 and \u0060wgpu-core/src/resource.rs:3293\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":"wgpu-core/src/binding_model.rs"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8fd01fee86c37c1efa8c8e8485743c70d028fd7d0e8d78fc3b8e0336bd2260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): wgpu-core/src/command/bundle.rs:1407-1412 | wgpu-core/src/command/clear.rs:86-91 | wgpu-core/src/command/compute.rs:210-215 | wgpu-core/src/command/mod.rs:1695-1700 | wgpu-core/src/command/ray_tracing_pass.rs:266-271 | wgpu-core/src/command/render.rs:1006-1011 | wgpu-core/src/device/queue.rs:706-711 | wgpu-core/src/device/queue.rs:744-749 | wgpu-core/src/resource.rs:3047-3052 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/bundle.rs\u0060 and \u0060wgpu-core/src/command/render.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wgpu-core/src/command/compute.rs:206\u0060 calls \u0060TimestampWrites\u0060 and \u0060wgpu-core/src/command/ray_tracing_pass.rs:262\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":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9242fb3dd03011c7d47ae0a4bd175dd2973b65b3c2d57180486411f6145ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): wgpu-core/src/command/compute.rs:308-314 | wgpu-core/src/command/ray_tracing_pass.rs:361-367 | wgpu-core/src/command/render.rs:723-729 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/compute.rs\u0060 and \u0060wgpu-core/src/command/ray_tracing_pass.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 180 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":"wgpu-core/src/command/compute.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7949176c4a667b7e6c00514358428cdf3836f96b82b3872aaf0ad643a8c3abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wgpu-core/src/pipeline.rs:353-362 | wgpu/src/backend/webgpu.rs:1997-2006 \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 \u0060wgpu-core/src/pipeline.rs:353\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/pipeline.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b790f29df3c8e45cec27092983b8186327234a9ca296e2de2d3a2f709c4f7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wgpu-core/src/pipeline.rs:381-388 | wgpu/src/backend/webgpu.rs:2028-2035 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060value\u0060 to \u0060\u0026naga::SourceLocation\u0060 in one and \u0060crate::naga::SourceLocation\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":"wgpu-core/src/pipeline.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"87fee45352aa30b03891e6ed0f38c2a0704e3b479338ed90770e2bae41ca31b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): wgpu-core/src/pipeline.rs:641-646 | wgpu-core/src/pipeline.rs:1275-1280 | wgpu-core/src/ray_tracing_pipeline.rs:291-296 \u2014 before extracting anything, compare \u0060wgpu-core/src/pipeline.rs\u0060 and \u0060wgpu-core/src/ray_tracing_pipeline.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 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":"wgpu-core/src/pipeline.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"607af11247cbb126043058bbbe81d985e5d07ccf6659851f1d88c0188d26b5c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): wgpu-core/src/pipeline.rs:648-653 | wgpu-core/src/pipeline.rs:1282-1287 | wgpu-core/src/ray_tracing_pipeline.rs:316-321 \u2014 before extracting anything, compare \u0060wgpu-core/src/pipeline.rs\u0060 and \u0060wgpu-core/src/ray_tracing_pipeline.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 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":"wgpu-core/src/pipeline.rs"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02f2aca0b71dfd7fd329c8077a6e3ef31665d44f0411e25cec163b65864c7b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wgpu-hal/src/dx12/mod.rs:1042-1047 | wgpu-hal/src/lib.rs:2383-2388 \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":"wgpu-hal/src/dx12/mod.rs"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cc7414d2d1bad35d718a7a73151dcb733cc595a7b0f38da157aabb8711a34e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wgpu-hal/src/gles/device.rs:1360-1365 | wgpu-hal/src/metal/device.rs:982-988 \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 \u0060wgpu-hal/src/gles/device.rs:1360\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c8402409719e2481ea8797f6bd67419255faf349d2e6b79fe3b5586b2a7140"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wgpu/src/api/compute_pass.rs:60-64 | wgpu/src/api/ray_tracing_pass.rs:61-65 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wgpu/src/api/compute_pass.rs:67\u0060 calls \u0060set_pipeline\u0060 and \u0060wgpu/src/api/ray_tracing_pass.rs:68\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":"wgpu/src/api/compute_pass.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"306be47de3d0c1cfbe424daae76e622f552c0ff61f41097443d04e1408335620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wgpu/src/api/render_bundle_encoder.rs:95-102 | wgpu/src/api/render_pass.rs:107-114 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060buffer_slice\u0060 to \u0060BufferSlice\u003C\u0027a\u003E\u0060 in one and \u0060BufferSlice\u003C\u0027_\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/render_bundle_encoder.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a3589ab36a16b4e02d19018ec8c66cc342c856c656d0bdf7aac7ff3ecbddd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): deno_webgpu/adapter.rs:93-99 | deno_webgpu/device.rs:133-139 \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 \u0060deno_webgpu/device.rs:133\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/adapter.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7024cb850bb66a1a4721bb08af403d10318ae661494bac4dd0ff39dc4776c7b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): deno_webgpu/compute_pass.rs:202-207 | deno_webgpu/render_pass.rs:367-372 \u2014 before extracting anything, compare \u0060deno_webgpu/compute_pass.rs\u0060 and \u0060deno_webgpu/render_pass.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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 \u0060deno_webgpu/compute_pass.rs:202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/compute_pass.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3e48ed3a3c7cd64c0ae8f85d271fc66eceb993e74e1281a58506e4a809c0fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/arena/mod.rs:212-218 | naga/src/arena/unique_arena.rs:179-185 \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":"naga/src/arena/mod.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c190e7a88034c3942649c0a0168609918fce3054164f9deee479283d22b5f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): wgpu-core/src/command/compute.rs:1359-1365 | wgpu-core/src/command/ray_tracing_pass.rs:509-515 | wgpu-core/src/command/render.rs:4387-4393 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/compute.rs\u0060 and \u0060wgpu-core/src/command/ray_tracing_pass.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 180 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":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d477c1507a2680b85a94d3e8decb8e31f5cc189980d6d83164be760218489c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): wgpu-core/src/command/compute.rs:1399-1411 | wgpu-core/src/command/compute.rs:1424-1437 | wgpu-core/src/command/render.rs:4427-4438 | wgpu-core/src/command/render.rs:4484-4496 \u2014 before extracting anything, compare \u0060wgpu-core/src/command/compute.rs\u0060 and \u0060wgpu-core/src/command/render.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060wgpu-core/src/command/compute.rs:1399\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3ade946ca6dcad2488d7c6b258bd943d835d4917e268ae769654c4a772000a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wgpu-core/src/command/query.rs:209-220 | wgpu-core/src/present.rs:134-151 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/query.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7bccb0f67db4ba581aa674cbcf6d8a6a279951d99dd19a8fd9a815bccba7a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wgpu/src/api/command_buffer.rs:41-46 | wgpu/src/api/command_encoder.rs:479-484 \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":"wgpu/src/api/command_buffer.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1821d149b8b1b8a1009ea4e6a8f6c7a926bc355aa5b714fa356cf4be7bab10a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wgpu/src/api/render_bundle_encoder.rs:74-78 | wgpu/src/api/render_pass.rs:76-81 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/render_bundle_encoder.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccb849deefb6a1d28cc21b2f00a2ae81cca3cb6706a5e648763463e9f4ebd79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): naga/src/back/msl/writer.rs:5364-5376 | naga/src/back/msl/writer.rs:5411-5423 | naga/src/back/msl/writer.rs:5582-5594 | naga/src/back/msl/writer.rs:5638-5648 | naga/src/back/msl/writer.rs:5693-5705 | naga/src/back/msl/writer.rs:5791-5803 | naga/src/back/msl/writer.rs:6007-6027 | naga/src/back/msl/writer.rs:6035-6050 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/writer.rs:5364\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":5364}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe3205e086eae619e90570d25aecf98c15a1dd5911eb019b301bed54e725434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): naga/src/back/msl/writer.rs:6605-6620 | naga/src/back/msl/writer.rs:6700-6717 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/writer.rs:6605\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":6605}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a866c4068ce49071945fd715ab85cf9d9f22281d2ea86ddd82ffd0a441a83a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): naga/src/back/hlsl/writer.rs:4031-4048 | naga/src/back/hlsl/writer.rs:4058-4064 | naga/src/back/hlsl/writer.rs:4074-4078 \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 \u0060naga/src/back/hlsl/writer.rs:4031\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":4031}}}],"partialFingerprints":{"codehealthFindingId/v1":"711e782caf87d24cb90575218305e6cf43c4edb70265ed478d207b64a232016a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): naga/src/valid/type.rs:324-337 | naga/src/valid/type.rs:348-361 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/valid/type.rs:324\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/type.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"9510a2ba903c290ac8cc0734673e24e46de0b885e13741e4bca06b6c1e66103c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): naga/src/back/msl/writer.rs:5317-5329 | naga/src/back/msl/writer.rs:5525-5537 | naga/src/back/msl/writer.rs:5987-5999 \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 \u0060naga/src/back/msl/writer.rs:5317\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":5317}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd95d77ecfb85ae004c23282203319065366128e4790025ae965ff429bbbd57e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wgpu-hal/src/auxil/dxgi/exception.rs:85-94 | wgpu-hal/src/gles/mod.rs:1135-1147 \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 \u0060wgpu-hal/src/auxil/dxgi/exception.rs:85\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":"wgpu-hal/src/auxil/dxgi/exception.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efa4e928ac84cb5f63c7c5fadd85e8644e2ad2443a60a399114e1e3989088b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/back/glsl/writer.rs:1811-1817 | naga/src/back/hlsl/writer.rs:2277-2289 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/hlsl/writer.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 10 separate duplicated blocks between them, totalling at least 99 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 \u0060naga/src/back/glsl/writer.rs:1811\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"7733c6ea26d92247756ed91c61fea4221bf34811cb0fe15b06c0322231fb7759"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): naga-cli/src/bin/naga.rs:949-961 | naga-cli/src/bin/naga.rs:984-996 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga-cli/src/bin/naga.rs:949\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":"naga-cli/src/bin/naga.rs"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"5571d66f74f1915ae8f644eaf6fca73860e186aa39ec54ffed345ef3e7b82e77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): naga/src/back/dot/mod.rs:419-431 | naga/src/back/dot/mod.rs:445-457 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/dot/mod.rs:419\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":"naga/src/back/dot/mod.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b512051b1c93e65e75bf80b74054dde89a98914a2bab2e9f8f3fd9ac0f84f63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): naga/src/back/msl/writer.rs:5277-5286 | naga/src/back/msl/writer.rs:5468-5480 | naga/src/back/msl/writer.rs:5889-5901 \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 \u0060naga/src/back/msl/writer.rs:5277\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":5277}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e776234fc6fe531e1025f255266bc40e1a8726f57ec41ec9d06788ddf6f9638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/back/hlsl/writer.rs:4823-4832 | naga/src/back/wgsl/writer.rs:1958-1969 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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 \u0060naga/src/back/hlsl/writer.rs:4823\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":4823}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d26c8097eb6688e06c67d9c07e32753ec2a2f775e0aeec39234616a92a5363"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/back/hlsl/help.rs:2311-2320 | naga/src/back/hlsl/help.rs:2324-2335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/help.rs:2311\u0060 it does not close everything it opens, so those exact 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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":2311}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c0311ba7aab71514aabbad7b429bd47ce07869a8a670b32f9bf5f1ed9ef3d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wgpu-core/src/indirect_validation/dispatch.rs:110-121 | wgpu-core/src/indirect_validation/draw.rs:577-587 \u2014 before extracting anything, compare \u0060wgpu-core/src/indirect_validation/dispatch.rs\u0060 and \u0060wgpu-core/src/indirect_validation/draw.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 83 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 \u0060wgpu-core/src/indirect_validation/dispatch.rs:110\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/dispatch.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dadc4500c611f0cb1f786ab416d463b910f11dd82a628aff579f3114799a0b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): naga/src/front/wgsl/lower/mod.rs:3638-3649 | naga/src/front/wgsl/lower/mod.rs:3651-3662 | naga/src/front/wgsl/lower/mod.rs:3664-3675 \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 \u0060naga/src/front/wgsl/lower/mod.rs:3638\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3638}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b32bffdbdf206211f86faee0b17a51bfa96be0808f38a66425807b6ebc78df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga-cli/src/bin/naga.rs:869-879 | naga-cli/src/bin/naga.rs:895-905 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga-cli/src/bin/naga.rs:869\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":"naga-cli/src/bin/naga.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05c70c239d9db3a61770c75270ac4f0ed11be8bb1505b7e8572cf35abdc36ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): naga/src/back/msl/writer.rs:5299-5309 | naga/src/back/msl/writer.rs:5503-5513 | naga/src/back/msl/writer.rs:5930-5940 \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 \u0060naga/src/back/msl/writer.rs:5299\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":5299}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8d2961868a1334e56cba2d5995dbbefadc8787131a65ba25d46aa99a4bd0d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wgpu-hal/src/auxil/dxgi/dxgi_lib.rs:33-43 | wgpu-hal/src/dx12/mod.rs:238-248 \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 \u0060wgpu-hal/src/auxil/dxgi/dxgi_lib.rs:33\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":"wgpu-hal/src/auxil/dxgi/dxgi_lib.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff86510aab6a7dba73ae006b5c19dcb04800bfe43664fd5949a2ba8ed90736a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): naga/src/back/msl/writer.rs:5264-5269 | naga/src/back/msl/writer.rs:5446-5456 | naga/src/back/msl/writer.rs:5832-5842 \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 \u0060naga/src/back/msl/writer.rs:5264\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":5264}}}],"partialFingerprints":{"codehealthFindingId/v1":"385a732d72e8db0f5efaa5ef88dded48603456cf1246ba77c241179af0bd32f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wgpu-core/src/indirect_validation/dispatch.rs:135-145 | wgpu-core/src/indirect_validation/dispatch.rs:161-171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/indirect_validation/dispatch.rs:135\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/dispatch.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e25ed186495abc89428f049d1825888478035e0aef9885b2c554107bb8432d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): naga/src/back/msl/writer.rs:5346-5356 | naga/src/back/msl/writer.rs:5393-5403 | naga/src/back/msl/writer.rs:5560-5570 | naga/src/back/msl/writer.rs:5617-5626 | naga/src/back/msl/writer.rs:5671-5681 | naga/src/back/msl/writer.rs:5734-5744 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/writer.rs:5346\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":5346}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fc116d2c33ab6b534d9e79d8250740c62aeaec99ce526b88ce8c1962c66234"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): naga/src/back/msl/writer.rs:6223-6233 | naga/src/back/msl/writer.rs:6311-6321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/writer.rs:6223\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":6223}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b634346b558b028d478b50469e65efd4b934f5fdb8bb0673142f0ab8b4d19c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): naga/src/back/glsl/writer.rs:4041-4050 | naga/src/back/glsl/writer.rs:4091-4100 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/glsl/writer.rs:4041\u0060 it does not close everything it opens, so those exact 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, \u0060naga/src/back/glsl/writer.rs:4090\u0060 calls \u0060to_glsl\u0060 and \u0060naga/src/back/glsl/writer.rs:4038\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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":4041}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af2a9fcc13086cdee66bf5928ad5dc16d48c5617e25b122ce3528b3ea67c504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naga/src/back/hlsl/help.rs:1585-1594 | naga/src/back/hlsl/help.rs:1636-1644 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/help.rs:1585\u0060 it begins part-way through the construct above it, so those exact 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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"f339d176515fd514e07de5ef707c32d3ec6dcb4356cd92f7db4057fe37f85c47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naga/src/front/wgsl/parse/mod.rs:1941-1949 | naga/src/front/wgsl/parse/mod.rs:1982-1990 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/parse/mod.rs:1941\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060naga/src/front/wgsl/parse/mod.rs:1938\u0060 calls \u0060set\u0060 and \u0060naga/src/front/wgsl/parse/mod.rs:1981\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":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":1941}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e329e7fa8ccbd194d28442dadbec9df6197666f23c20878a4252aa80e6c473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): naga/src/proc/namer.rs:365-373 | naga/src/proc/namer.rs:380-388 \u2014 both copies are in the same file, so extract the block 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":"naga/src/proc/namer.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fe70be6a59b80e14ebc6e9b537c2701c7081270d219fee74f71dcdf369fc02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/back/glsl/writer.rs:1827-1835 | naga/src/back/msl/writer.rs:4261-4267 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/msl/writer.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 58 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 \u0060naga/src/back/glsl/writer.rs:1827\u0060 it begins part-way through the construct above it, so those exact 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1827}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0108378e054e592a27fa30aab5c46b2f1569fd8346f2fd6a9b17f1f63d308d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naga/src/back/hlsl/help.rs:436-443 | naga/src/back/msl/writer.rs:6775-6783 \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 \u0060naga/src/back/hlsl/help.rs:436\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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5af08cdb26d33173addb06665ac6c109ad26ad073d17a75dcde268ec2d48ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naga/src/back/msl/writer.rs:1435-1442 | naga/src/back/msl/writer.rs:3202-3209 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/writer.rs:1435\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":"naga/src/back/msl/writer.rs"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e9b87e4a7067cce9f3e8165d698d293ae2f733af803c675fb5a1e8ac6df631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naga/src/back/hlsl/writer.rs:3723-3730 | naga/src/back/hlsl/writer.rs:3740-3744 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/writer.rs:3723\u0060 it does not close everything it opens, so those exact 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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3723}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7c7aca316dc4af8ca336b791b004843beb756104559ac77a5e2e686ae3f242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): wgpu-hal/src/auxil/dxgi/dxgi_lib.rs:50-55 | wgpu-hal/src/auxil/dxgi/dxgi_lib.rs:74-81 | wgpu-hal/src/auxil/dxgi/dxgi_lib.rs:98-103 \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 \u0060wgpu-hal/src/auxil/dxgi/dxgi_lib.rs:50\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/auxil/dxgi/dxgi_lib.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc78bf1400c853e61b6bbc913c3ba6254f324ebebeeb1fd3cbc478af8d6b549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): naga/src/back/hlsl/storage.rs:198-205 | naga/src/back/hlsl/storage.rs:218-225 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/storage.rs:198\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/storage.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"acca304efe0b0c3fcfe2cb087d96a5d74e5d75fb7ae8cd72c68c1798944a6701"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): naga/src/front/wgsl/lower/mod.rs:3752-3758 | naga/src/front/wgsl/lower/mod.rs:3763-3769 | naga/src/front/wgsl/lower/mod.rs:3774-3780 \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 \u0060naga/src/front/wgsl/lower/mod.rs:3752\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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3752}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed4ace8d30e0da2925106d410412b16b31f06e3d01f8aaf2162af29f037499f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/front/wgsl/parse/mod.rs:186-191 | naga/src/front/wgsl/parse/mod.rs:195-201 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/front/wgsl/parse/mod.rs:186\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":"naga/src/front/wgsl/parse/mod.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b59aa740e4390b592af7c9cf9fdfc8aea39368512529a2bfe1f048483b715f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wgpu-info/src/human.rs:31-37 | wgpu-info/src/human.rs:44-50 \u2014 both copies are in the same file, so extract the block 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":"wgpu-info/src/human.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"887ad6cb8fa9d0f58c957c59afbb7b6f1f0633a574405ca899a590d31e0c02d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/back/hlsl/writer.rs:3691-3697 | naga/src/back/hlsl/writer.rs:3705-3711 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/writer.rs:3691\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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3691}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b17bc7b52c8afdd98569cecccfe0d43fc900da8a0a987b44aace8b2c613506d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga-cli/src/bin/naga.rs:692-698 | naga-cli/src/bin/naga.rs:1051-1057 \u2014 both copies are in the same file, so extract the block 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":"naga-cli/src/bin/naga.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"1352639bb872fd6ac0243d28b8a73ec230fef1fcde96ebe9be0659ee286c22a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): naga/src/back/hlsl/writer.rs:5083-5089 | naga/src/back/hlsl/writer.rs:5103-5109 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/hlsl/writer.rs:5083\u0060 it does not close everything it opens, so those exact 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 \u0060self\u0060 to \u0060super) fn write_control_barrier( \u0026mut\u0060 in one and \u0060\u0026mut\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":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":5083}}}],"partialFingerprints":{"codehealthFindingId/v1":"733f27f197e130ba8f15de7a3018c25c4c4eb199a2c14d1ba0bd936e0d630a8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/back/glsl/writer.rs:3389-3394 | naga/src/back/glsl/writer.rs:3420-3425 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/glsl/writer.rs:3389\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":3389}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac138d90edbfc396a233eefecf42a40475cab78737ea5379ce5e77307e312a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): deno_webgpu/byow.rs:245-250 | deno_webgpu/byow.rs:253-258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060deno_webgpu/byow.rs:245\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":"deno_webgpu/byow.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9acdbfbf932c8ef856435917323ef68efbc8f90dfc2ab7b690920b5ea085133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/back/msl/writer.rs:2500-2505 | naga/src/back/msl/writer.rs:2509-2514 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060naga/src/back/msl/writer.rs:2500\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":2500}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2678caa44d61edb01a27e8c9b11808a82804e575be14f65fbe487203d71868"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naga/src/back/msl/writer.rs:4371-4376 | naga/src/back/wgsl/writer.rs:877-881 \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 \u0060naga/src/back/msl/writer.rs:4371\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":4371}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb523f5ecce04926a60835a699160c9b0ccc609f5a8203133f7de16023dd300"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): naga/src/back/wgsl/writer.rs:932-937 | naga/src/back/wgsl/writer.rs:1097-1102 \u2014 both copies are in the same file, so extract the block 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":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b4543343edd24465177453b727e7fbadcbab7c538561b69cad117a5c009bd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naga/src/back/hlsl/help.rs:1485-1489 | naga/src/back/hlsl/help.rs:1537-1541 \u2014 both copies are in the same file, so extract the block 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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0294fbd5b7727046e1b714c9d08f63d15476ed6efdc09b18a832cf0c881e447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): naga/src/back/glsl/writer.rs:2196-2200 | naga/src/back/hlsl/writer.rs:3145-3149 | naga/src/back/wgsl/writer.rs:1119-1123 \u2014 \u0060naga/src/back/glsl/writer.rs\u0060 and \u0060naga/src/back/hlsl/writer.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 10 separate duplicated blocks between them, totalling at least 99 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 \u0060naga/src/back/glsl/writer.rs:2196\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2196}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c09f470bddcbd6e6321d613c2544431f0851c429dafa5a03890072bbf2629d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wgpu-core/src/resource.rs:2042-2046 | wgpu-core/src/resource.rs:3136-3140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wgpu-core/src/resource.rs:2042\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/resource.rs"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"b350ff77fa817e9596813b13cea1b95d5e04ddd6ce441071adf48c37cde27955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): naga/src/back/hlsl/help.rs:1032-1036 | naga/src/back/hlsl/help.rs:1096-1100 | naga/src/back/hlsl/help.rs:1156-1160 | naga/src/back/hlsl/help.rs:1234-1238 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn write_wrapped_struct_matrix_get_function_name( \u0026mut\u0060 in one and \u0060super) fn write_wrapped_struct_matrix_set_function_name( \u0026mut\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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cd75e702be9509d38d685b5a607da17e8722981ab81ed47a92a61bc796b434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naga/src/back/hlsl/writer.rs:2855-2859 | naga/src/back/wgsl/writer.rs:849-853 \u2014 \u0060naga/src/back/hlsl/writer.rs\u0060 and \u0060naga/src/back/wgsl/writer.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 19 separate duplicated blocks between them, totalling at least 199 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 \u0060naga/src/back/hlsl/writer.rs:2855\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2855}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a321a8b10bcfb959155906241b8fb38e129e43867e28ec960ce752305e3d698"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): naga/src/back/msl/writer.rs:2502-2506 | naga/src/back/msl/writer.rs:2511-2515 | naga/src/back/msl/writer.rs:2521-2525 \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":"naga/src/back/msl/writer.rs"},"region":{"startLine":2502}}}],"partialFingerprints":{"codehealthFindingId/v1":"5841c73263347353c7cca1b8f1168ef1683e64af0b6908daf8fcfd66ec00fecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): naga/src/back/glsl/writer.rs:3160-3164 | naga/src/back/glsl/writer.rs:3503-3507 \u2014 both copies are in the same file, so extract the block 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":"naga/src/back/glsl/writer.rs"},"region":{"startLine":3160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e9f6a15d475a1d2c77893af97defeb2dcab790b6b7699a22a837966470d21a"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: hlsl-snapshots: hlsl-snapshots: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"71c6958155151f216c38b553eddd5b0935d6e2b9c38a80fb2c5048a6182a6fae"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: naga-types: naga-types: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 5 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"099a7e8dd7ee95d37cde76ce85c16194c8734b9c4c662d5f550e31e0bcacca94"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: wgpu-sync: wgpu-sync: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"be6661f3ca82fa28fee58d1354792279173b4c932c342218574e5d1f60576526"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: wgpu-types: wgpu-types: abstractness 0.09, instability 0.11, distance 0.80 \u2014 zone of pain \u2014 concrete and depended on by 8 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c63fe54b6f8a11a387a895e7d73b0135111e5dcda140f51a2c8116a61e7fb448"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: naga: naga: abstractness 0.06, instability 0.17, distance 0.78 \u2014 zone of pain \u2014 concrete and depended on by 5 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"da3642ad67b920e8d8eeddecb941aa9e1c747f25666e8f90f7965afe7468e7a9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Device (LCOM4 9): Device\u0027s methods fall into 9 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 9 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":"wgpu-hal/src/dx12/mod.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60e1144c5e9f88060e26b1a27754081163404dd8a25aaa9aaac9aa9e362ab6e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Handle (LCOM4 4): Handle\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":"naga/src/arena/handle.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf86521bb3163c5d8cfe2ab41e08da1312afcb6fa625b4c4dabbb1675e91129"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Device (LCOM4 4): Device\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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05524cb0ab2eb67f1790e6bcef52fdd7b8a805d8061e129e846ac8f4f67730f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Limits (LCOM4 4): Limits\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":"wgpu-types/src/limits.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"13448f87a2e2689985fe1a0eac5b17d7648052eabbd2b9985f343dc1b42eb4c9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: benches/src/context.rs: 0.0% line coverage (0/11)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benches/src/context.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"043ec07ce9e691ac719951c89058f08fd0b1f8cbad448c854661bb2b6d21dcab"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: benches/src/file.rs: 0.0% line coverage (0/18)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benches/src/file.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf3e034661e09eee5877af334eae02c19d8fb6912c7dabc22957fad5a6336d6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: benches/src/iter.rs: 0.0% line coverage (0/73)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benches/src/iter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41defdf3ad77f98e49eac9f356a4189951e94c8c494d3b1c1765de0ebb43a2b9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: benches/src/lib.rs: 0.0% line coverage (0/124)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benches/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7919d936b994ab592ad51735a62cd79f35316678ce7b2545cca82ae2ced63747"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: benches/src/print.rs: 0.0% line coverage (0/155)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benches/src/print.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c500d79bf6539ac652741a72f81aa8c3e604b1281de4a27e20884f35f8758c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: cts_runner/src/main.rs: 0.0% line coverage (0/112)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cts_runner/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2adae033318093b8cb82d8ddf1fd25b3a65f9b65a3ec411e08c7e6e74edd9a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/adapter.rs: 0.0% line coverage (0/360)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada0cd200dc1c205f491c9eaa7e797a5ca36fbe98ffdcbc05925894515f52af7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/bind_group.rs: 0.0% line coverage (0/66)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/bind_group.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f643f8b4564ec3dc1c0b076c47e662d5b6bf45f7db44c7090f13d3e09260adb3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/bind_group_layout.rs: 0.0% line coverage (0/82)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/bind_group_layout.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b76b2e97f4f5e43c7a7e264b5516f095a2c2177a00769220bc18e579e004bb6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/buffer.rs: 0.0% line coverage (0/205)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/buffer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef35cb9315556653416b18974ee9f8f66ac353ba65b1f4678aa572e267b86e3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/byow.rs: 0.0% line coverage (0/129)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/byow.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2dd5b1675e01404f2615605d520e53dadb4394720d5b655be666e2cc639300a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/command_buffer.rs: 0.0% line coverage (0/11)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/command_buffer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68966a940080aa92adf5a107e97e7a62cd926fcc1aee2704d7ab53e17508c62e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/command_encoder.rs: 0.0% line coverage (0/285)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/command_encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c6e8d1b850285381127bb0ace1803797e19f1ea6b0d96afe94e986688d87ce"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/compute_pass.rs: 0.0% line coverage (0/135)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/compute_pass.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31416023d16428416cc7b8767312c082cef207ed2de7ec9483a7da7af8f70909"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/compute_pipeline.rs: 0.0% line coverage (0/18)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/compute_pipeline.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f7895f905a2e8d27cb339128d3530cfeddcccacc55568f53acc75c7894dd88"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/device.rs: 0.0% line coverage (0/640)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d33a0fc83835fbdb7fecdec70de5f9598a2145b6c7d2077129149f271d4be9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/error.rs: 0.0% line coverage (0/160)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ad6f0683dd3a5bc573a7b47933a7c7806c1c332ea4e05a2f691d7378d3dba8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/lib.rs: 32.1% line coverage (84/262)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08abece780e0f7a1f89851225cd37b6cbb4551289b9904e49d0a458b0341d25"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/pipeline_layout.rs: 0.0% line coverage (0/11)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/pipeline_layout.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4860e8e8758641781c19a6d99814c8dc3cfccf1bdb3624a8f84ef766bece87b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/query_set.rs: 0.0% line coverage (0/26)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/query_set.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c2da7d0e55a513392bdfdb880c76804362d4f1913281cdae9b931f0dc8be61"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/queue.rs: 0.0% line coverage (0/91)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/queue.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06530a72fd841fccdc842613c112fad7359b4a2c70ba5519e172ba74bad06b0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/render_bundle.rs: 0.0% line coverage (0/231)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/render_bundle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ad4876a2de2fb1ab896a4285ce7c4bbdd031780e4eb468946bdace8f9546f6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/render_pass.rs: 0.0% line coverage (0/297)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/render_pass.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c413052bc16880fd81294260144de34707926dc98d423e497ce26477d56ca64"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/render_pipeline.rs: 0.0% line coverage (0/131)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/render_pipeline.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38caa8fc91c92ae59a85ee778c029341b93e390a3011709f89d4d5484341d240"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/sampler.rs: 0.0% line coverage (0/38)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/sampler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c621b16be177095ba7fd3203fa8ac70450b87da0a61f73614020aa66f5fe1a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/shader.rs: 0.0% line coverage (0/91)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/shader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"157122a3bbf90169a5e0eacfb18407e7432f89782df72bd2c98f58279cacbc9a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/surface.rs: 0.0% line coverage (0/115)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/surface.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58644363d455c63d8e37637158713750c5e0bff0119c0412cc781a1e7f23e35"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/texture.rs: 0.0% line coverage (0/291)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/texture.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad86f92cd38fc17d411c06ca950ae979e5d36e368f5a014db3e624fdaa631e25"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: deno_webgpu/webidl.rs: 0.0% line coverage (0/336)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/webidl.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc4ea1076a812a6e13612b011958e10584d1e13f8a1dd01924ce2c527d10bec"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/bug-repro/01_texture_atomic_bug/src/main.rs: 0.0% line coverage (0/267)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/bug-repro/01_texture_atomic_bug/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db43129d7674a1755b1411d9e0d687661a1e52d4584775a958b268429e5b441f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/bug-repro/02_present_bugs/src/main.rs: 0.0% line coverage (0/95)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/bug-repro/02_present_bugs/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9692b243cb1e33cbbe0442a7419c344621e2b3243c411159da8294584a55df31"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/big_compute_buffers/mod.rs: 0.0% line coverage (0/197)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/big_compute_buffers/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9eec1c88477eb177f2c7b036200bc51b80ed6da5347a8aab0054672916c5b87"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/big_compute_buffers/tests.rs: 0.0% line coverage (0/10)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/big_compute_buffers/tests.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"313da2038d842bc0c346c45c090668a3265dabffb66f691f7a7da0e1ab8c634d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/boids/mod.rs: 0.0% line coverage (0/240)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/boids/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eccae8c3fe5d38eb0cbb235ea29da3170de4a91d4f95418d2536e9d7abae23d2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/bunnymark/mod.rs: 0.0% line coverage (0/346)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/bunnymark/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9c0d9efc4ff4bc2ba5e14c9ccc67d0c0006b5a1fa07230c4dc87b33f2de6bc"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/conservative_raster/mod.rs: 0.0% line coverage (0/278)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/conservative_raster/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"933dfb13c2ad955c3530ae5c0e3d958841e6d06989f670014f1f74d37f15a985"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/cooperative_matrix/mod.rs: 0.0% line coverage (0/312)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/cooperative_matrix/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d023bd40370662611ead0885cd698badb894c32505db5634917bcee174b456bc"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/cooperative_matrix/tests.rs: 0.0% line coverage (0/34)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/cooperative_matrix/tests.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"817613ae0c7c2167530dda3f843467bf381e181b14b973baf283531a6e9847ea"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/cube/mod.rs: 0.0% line coverage (0/318)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/cube/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"889ae2f9da6893ca265cc123587a204f63c02edc05715adae1d06367620a25ed"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/error_scope/mod.rs: 0.0% line coverage (0/89)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/error_scope/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43269d1a2c11ddb5656140261323a54e9fa760a698961976296369e7cf6833c7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/framework.rs: 0.0% line coverage (0/299)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/framework.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d101501a569f82d8dcf6bc77e0d0fc8eb51b65f0710c3c35c943de91a2ee2635"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/hello_synchronization/mod.rs: 0.0% line coverage (0/170)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/hello_synchronization/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa89b5137e0fa6e4f39abad651f6f2585b5df06ab0d730848db306a1050087ae"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/hello_synchronization/tests.rs: 0.0% line coverage (0/5)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/hello_synchronization/tests.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eaadb91d952165027025f6bff3706bd2676847fcc3189aab06785b0ad8fa065"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/hello_triangle/mod.rs: 0.0% line coverage (0/211)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/hello_triangle/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d746bd2bdc716c4c0dbd06d5725db1150ee720629a28341e171a9ffb4297947d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/hello_windows/mod.rs: 0.0% line coverage (0/183)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/hello_windows/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5e371a7acdbca2c2c6ebac73440ad7392974e2809f23419c4f0ae7df4f70ad"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/hello_workgroups/mod.rs: 0.0% line coverage (0/163)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/hello_workgroups/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b816f99fa12e3dbaaf340b524a0a7bd9b5ebb3552d379382b14011a5a36c4cb6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/mesh_shader/mod.rs: 0.0% line coverage (0/96)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/mesh_shader/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5a3b1cc552f6a4862e7f170fcb29c5b6fcc3154e9e1f35c1ac276edcd65609"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/mipmap/mod.rs: 0.0% line coverage (0/406)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/mipmap/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c3b6cb0c3d9d90d27327424296c68e4acbd67cf6b572d2bc6531d89bd9e19b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/msaa_line/mod.rs: 0.0% line coverage (0/234)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/msaa_line/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec687606a11b11af810438e71330acb5d4ffb5214fff50f517cb1f24368416d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/multiple_render_targets/mod.rs: 0.0% line coverage (0/447)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/multiple_render_targets/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04426a6bee6827860b0b56784245de13d5df86cf537304cf5b7c735ac8731ced"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/multiview/mod.rs: 0.0% line coverage (0/148)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/multiview/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f5974a7d3147002e5f1a08b9609e574ff548923424e4ee374b3679ec05b893"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/ray_aabb_compute/mod.rs: 0.0% line coverage (0/301)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/ray_aabb_compute/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b856f321283694a88a56ee175457e687a545736f1ae09da26aee35bcb71a4be2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/ray_cube_compute/mod.rs: 0.0% line coverage (0/364)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/ray_cube_compute/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d642751afc3874471ce214abc84e4ba48031f199d996062735790c1f31cd3043"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/ray_cube_fragment/mod.rs: 0.0% line coverage (0/266)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/ray_cube_fragment/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6eb6a52a64bfabc809e929395b09690da1ac93bcc8da3bbcaffdb58bcc30405"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/ray_cube_normals/mod.rs: 0.0% line coverage (0/359)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/ray_cube_normals/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44005fc7b7df53f559529f41769380d5baac58bff0ed71590b0cfd65c2e3ff87"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/ray_scene/mod.rs: 0.0% line coverage (0/371)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/ray_scene/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b231242e582113681fe76b697c0d03f73ba208b38c45141943c2ab671dee8a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/ray_shadows/mod.rs: 0.0% line coverage (0/258)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/ray_shadows/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"570408a43316d4eaf4ae6ed2ff0f13275f52f285535e4e1b104a9e8dcc4e4cbd"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/ray_traced_triangle/mod.rs: 0.0% line coverage (0/354)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/ray_traced_triangle/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a33fd896da3893a2cb2bf5eddf1bd726b46703464691c8b8c172885794f7c2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/render_to_texture/mod.rs: 0.0% line coverage (0/135)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/render_to_texture/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9185edf93a11e45c6632b0ada219808e8c3beb6c6e4ace740a90d7fb967431"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/render_with_compute/mod.rs: 0.0% line coverage (0/163)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/render_with_compute/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9526c9e6510e369e854aeabbdc9b0f40175f699c8900ae51d591ee475ed5485d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/repeated_compute/mod.rs: 0.0% line coverage (0/146)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/repeated_compute/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d028f8d92672a6f5cb43eaebddbd4195265bac34237b170f5e57f6c5c3a2afa"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/shadow/mod.rs: 0.0% line coverage (0/640)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/shadow/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d04faa5cd2bf9655fd92b10f9440fb56396a06b5c789bfb4a8b61a61f76f8cd"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/skybox/mod.rs: 0.0% line coverage (0/364)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/skybox/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66c0dcf5275876a9685280be77018af323df0bcaf4fc4c57f011aae5c2bf017"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/srgb_blend/mod.rs: 0.0% line coverage (0/173)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/srgb_blend/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"398c6fb8c8f97eb37c7064fdf31f5ad0ed522fd94290f82973530697c8eb53e3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/stencil_triangles/mod.rs: 0.0% line coverage (0/204)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/stencil_triangles/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8b466ceb24ee5425c1ab92a72c32539d40ec69ed90a639a9e2267bd228bcd6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/storage_texture/mod.rs: 0.0% line coverage (0/135)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/storage_texture/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"711b333b4a717601d7aa79361ad7a38fca6750712d91888cbde8ef229d4fddb0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/texture_arrays/mod.rs: 0.0% line coverage (0/342)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/texture_arrays/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68c255041b652ddd0aab4902369ae9b31b1ef8c274db9fb631525e19e60750d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/timestamp_queries/mod.rs: 0.0% line coverage (0/312)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/timestamp_queries/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbfa5fd07a2f39f209c8dec8466a0da6702f0a03b147c42b8bae9336771ed13"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/uniform_values/mod.rs: 0.0% line coverage (0/304)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/uniform_values/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8e1269f21dd006fdd16a2e1013ec239119a70e025d75da1359a4621e8c51e8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/utils.rs: 0.0% line coverage (0/62)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/utils.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7964e54dde0ff0a3478e624be67710b39d3de700f58c900dcd97d4e9f8495d5e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/water/mod.rs: 0.0% line coverage (0/601)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/water/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c1c84334297d1c39cea9568d2cb5df06e68b872b0f50da07bdca4910ce5b74"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/features/src/water/point_gen.rs: 0.0% line coverage (0/144)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/water/point_gen.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9863c11157e40966fe25d8107979de6e5c3a02c5a4e74f990b39eb33dea1c0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/standalone/01_hello_compute/src/main.rs: 0.0% line coverage (0/133)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/standalone/01_hello_compute/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacaf5b6ec1b94973229d54e4a4eb37e29bff0afc6e51a195213b38a82975b45"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/standalone/02_hello_window/src/main.rs: 0.0% line coverage (0/130)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/standalone/02_hello_window/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32ecf2c7ec95a1ffc7cb725bce231f666f2768bfba77fbe690a69345adf7979"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/standalone/03_hdr_surface/src/main.rs: 0.0% line coverage (0/298)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/standalone/03_hdr_surface/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c9dfb0051a047c8da7cdeb6725097a9e7b990defcaa803bceadc8a5b3f9162"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/standalone/custom_backend/src/custom.rs: 0.0% line coverage (0/236)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/standalone/custom_backend/src/custom.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78ae6b1a26f248d239de7f8c33ca1695d74ff0715f8043ae4eed6428f6da8d8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lock-analyzer/src/main.rs: 0.0% line coverage (0/152)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lock-analyzer/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff06a5eca7ab353073f9fa7a85de9b0db7196d94bbc454604ad62216e71e9d4e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga-types/src/glsl.rs: 38.2% line coverage (34/89)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga-types/src/glsl.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e6865540ac9dfe6c617e28f8e9e83d57c32538b5e929e8993a92e69a01028a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga-types/src/lib.rs: 45.2% line coverage (19/42)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga-types/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"488e1e43b997df6836a95af5e57fbca3d07d628575e6dec2dce963442dd9e3d6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga-types/src/wgsl.rs: 0.0% line coverage (0/36)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga-types/src/wgsl.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30bd15cd1a248aef273b1008e6667c558da48d2327ed8e071f755197753ab11"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/hlsl-snapshots/src/lib.rs: 0.0% line coverage (0/69)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/hlsl-snapshots/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"212183680cf9cbd72beab3b4d3cec19a048f171674c008603b83178e502a2695"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/arena/unique_arena.rs: 48.7% line coverage (56/115)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/arena/unique_arena.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9d7ce9275f4770cb4ad8d22d09cfb5f04aba138e1c976af422664465c42713"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/continue_forward.rs: 0.0% line coverage (0/49)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/continue_forward.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39dddb144c7a7632f180498c88879c41e96a1f62d68307c524f96ac0845bfdf2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/dot/mod.rs: 0.0% line coverage (0/592)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/dot/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1848786dd1c6bf092342b150917c8836ba4d947893621800abfdc77fb513fc"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/glsl/conv.rs: 21.3% line coverage (36/169)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/conv.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7677e5b3df31c4023c9ce775fc3ae020512d7fae38cf7b280d5bd55e644a130"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/glsl/writer.rs: 20.6% line coverage (556/2697)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"002618ad0b37bf80f98432066deacfd83d27590cd1a22728e5dbf04d1f183320"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/hlsl/conv.rs: 0.0% line coverage (0/149)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/conv.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfa288555b8b7f772bcfafe9fa75450c6ee1bf86e084622ce357daf44bbc511"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/hlsl/help.rs: 0.0% line coverage (0/1426)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1981a1ddd55daccb1647d99ccdd236492586e8c8acd72ef9fcd82735114e2d3c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/hlsl/immediates.rs: 0.0% line coverage (0/147)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/immediates.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01be6fd5874fbc9e2390dad65c2f7cde6437006105003105879ad7780d67226c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/hlsl/keywords.rs: 0.0% line coverage (0/2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/keywords.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f8a578957e41c4899d7bd18afad6fa0f6e91f194b6f33b8b3645d42a5dad0f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/hlsl/mesh_shader.rs: 0.0% line coverage (0/315)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/mesh_shader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56256c0cd48f16119b3de19ed3f426bc4fd239b8c096a99cba3231e72565ab81"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/hlsl/mod.rs: 38.9% line coverage (84/216)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"547be788f648eb1eb0aa73da32cee41f0f2a3269b603eb89da7f15f0bd461906"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/hlsl/ray.rs: 0.0% line coverage (0/471)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/ray.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fce4fd22bd3b5d15651ae9d534a5bc0a40d7e76f7ecc308fe624b942fb33e0d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/hlsl/storage.rs: 0.0% line coverage (0/367)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/storage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaad5a50d84053b33e02db4884a4b0fd9724ab97b0d3b8f193945eca39315a5d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/hlsl/writer.rs: 0.0% line coverage (0/3457)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a499b9b396eb216471e6550ca1bb855502c47279087e83e87f7b3ca1870028"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/msl/hoist.rs: 0.0% line coverage (0/91)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/hoist.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c5420ea549e1bbfa5b0262d6c7438847fa52d1fe9d354aecf81daea9b4167a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/msl/keywords.rs: 0.0% line coverage (0/19)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/keywords.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a0e1dae2a21fcc1a9f26ca3cdc177af64c1949781a87e043b3f20b2bc06a15"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/msl/mesh_shader.rs: 0.0% line coverage (0/294)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/mesh_shader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c11d5c42fff329ca976bffe3053ec886d97e2dcd09fff9b8dab930a0a3c577"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/msl/mod.rs: 22.7% line coverage (73/322)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff910c6b34805359e0cdfebfd454fd7ce1d81694fe7d0610c0d24e282b25fa4b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/msl/ray.rs: 0.0% line coverage (0/357)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/ray.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa0b750f0bc3dd6a5bb057995471367e74e4603a1a9adb231dc9bd4c245f42f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/msl/sampler.rs: 0.0% line coverage (0/49)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/sampler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b546749f6841f330f1e4f8e184d36d9da9baa38ee13b1d1ca2ff649c6d8cc914"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/msl/writer.rs: 0.0% line coverage (0/5312)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7e435e6b30d0465e83b1f9c13b27edf7ba1a2bbad5a139fee899170c97464d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/pipeline_constants.rs: 42.1% line coverage (316/750)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2112937e33f55bdf738e6771a29f11b724bcb8f9b72fe4e6c65a2b29e5b14ef"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/spv/block.rs: 25.6% line coverage (726/2834)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad17ddd8de2bea4a22a12ad4c2c975043aa47fca40217e65acfe12628f63f3a4"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/spv/image.rs: 10.4% line coverage (90/862)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/image.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d6088e989140dcb68cab9efad6caf90ccdd825ab2b3f1070b842c9e8f5f24a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/spv/index.rs: 5.8% line coverage (16/275)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/index.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a80941bb1de3f7de7f1e08064e9375f70ded80144938e353ecc49f584ac26d2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/spv/instructions.rs: 41.2% line coverage (519/1261)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/instructions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1b8cc845c62cc23a5ad2fdabbad04daadfae0efe37cb00de114e9865e6280c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/spv/mesh_shader.rs: 1.3% line coverage (10/771)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/mesh_shader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab88571035f97373161191e729c635be34e71150fd226e28c7b2f5e57d2462b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/spv/ray/hit_object.rs: 0.0% line coverage (0/639)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/hit_object.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ad2cd896242f564a109b90f1f2d87801d1d23a7753cc318a8e07919f8cfb90"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/spv/ray/mod.rs: 0.0% line coverage (0/334)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9e7508f8b927f24c5e9beafcb2c15e5d23033828600d6462a7bcd55083b580"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/spv/ray/pipeline.rs: 0.0% line coverage (0/118)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/pipeline.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df625d521bc92612b5fbf2a1a92a2b8cbd2ea24389a71bc6e0708855a1f8720"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/spv/ray/query.rs: 0.0% line coverage (0/1215)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/query.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38895e0bf81017bfec5e1bc393f6935c7281d48fa3111a0ff0597299c6effbad"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/spv/selection.rs: 0.0% line coverage (0/54)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/selection.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3780348a4f16121c91c9adfb18bae7b2a66f057e61f979a927a24ba316c456ff"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/spv/subgroup.rs: 0.0% line coverage (0/162)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/subgroup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"090410dbebd06ca6f13addf37406445676bb95655c6d23efc19fac23396bd9f0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/spv/writer.rs: 49.8% line coverage (1406/2822)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33aabb50c9849d097bb57935e8b4cf671f936a3d09ab6e84be3dbf8e5bfb365"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/back/wgsl/mod.rs: 48.6% line coverage (17/35)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62fc73b33150a6aecbbefbbf2bea51d4b2aa277cd52d8cf5de5e3f0c48b2b14"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/common/diagnostic_debug.rs: 48.5% line coverage (16/33)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/common/diagnostic_debug.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62354596065e4d02bbb8676b6a2e9bed93e0f48411a859c809d2910a28a26997"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/common/diagnostic_display.rs: 22.7% line coverage (5/22)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/common/diagnostic_display.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12f19e0068d44ec9b40709f1b9f7ba41758a189fe1801ead920ad986a26e44e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/common/predeclared.rs: 33.3% line coverage (5/15)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/common/predeclared.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e95c8e6713002116db95198f2f762cee6ebc6843752d8be1bc927374959e593"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/common/wgsl/diagnostics.rs: 41.4% line coverage (12/29)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/common/wgsl/diagnostics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fd71b621223aadfe60c7182c99d50a03991c116f05a43dfd39e0c141f67e83"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/common/wgsl/to_wgsl.rs: 47.2% line coverage (119/252)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/common/wgsl/to_wgsl.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14178beb5d55958abe92a83fb073e5a1b9b85b4b0bee09b358fedf346e636567"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/common/wgsl/types.rs: 46.0% line coverage (116/252)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/common/wgsl/types.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0b25dbd94c29b3c64d71e0b8d52a322a1e296ddb096ccc3e999acd7418a5d9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/error.rs: 44.8% line coverage (30/67)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6107732b45220af857d39b782775f411436b7804eaff0d0614b145eeb43c814"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/front/glsl/ast.rs: 43.5% line coverage (37/85)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/ast.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df41cf183abd47e8e57ffa9ca2c52fa1e872908d8e3e681788376099961985c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/front/glsl/error.rs: 7.7% line coverage (6/78)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a08bc55a8e6abecca4b3c8e27f2b8f4a04025f0e58d1ad026b7c861a9fb01bf"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/front/spv/convert.rs: 21.4% line coverage (30/140)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/convert.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a59641c1edf6db546f50ad5ca8ad2546af318a0af8c3a7e484577d7eda6def8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/front/spv/error.rs: 0.0% line coverage (0/28)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43247e6fd867a41331920abb055e65bc73c7665bda051af7ed78f2965492c321"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/front/spv/function.rs: 35.7% line coverage (179/502)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/function.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61492ba00e665826430fa9660f0c1ba44319b94e7ebc41d0e216989f43c77d1"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/front/spv/image.rs: 0.0% line coverage (0/648)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/image.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8deee15a99707f301518ae7a0f6cf97c2959476a7f6728572479ee1b3cffa97b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/front/spv/next_block.rs: 23.8% line coverage (505/2125)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e469a8bec8a9b677270a0af4ad8508dcd0eadeb7cdc4f6c50881b50821e3f79"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/front/spv/null.rs: 0.0% line coverage (0/21)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/null.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c13892cdb782135e6d97cab68eaaef84f27b86a9f3020cd85400779d0088b9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/non_max_u32.rs: 40.6% line coverage (13/32)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/non_max_u32.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d21098ef4fd229373410cdf57d65272f66b61f4bb34362fb78842b51656672"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/proc/index.rs: 27.8% line coverage (59/212)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/index.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9269abccccaf7de61fa5b209ad8761ef66134e615b9a18982a0a7372da29165d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/proc/keyword_set.rs: 31.6% line coverage (24/76)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/keyword_set.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95613fecda5aa9846f0fc3da12a49c6bcffef8eb9910899182372ea5a1be4a31"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/proc/overloads/rule.rs: 16.3% line coverage (7/43)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/overloads/rule.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bc2f3f6a541372f8b62f15cb219c7625c90e01995f12cef1cf29034ed8dc4f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/src/racy_lock.rs: 37.5% line coverage (3/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/racy_lock.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bec2ecd35f55d6b572d5226e5c21dc887d06e2c930184f946fc20f6f4093f9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/xtask/src/cli.rs: 0.0% line coverage (0/87)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/xtask/src/cli.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcfb1115c65c7d352e3b90f1c40f48beef216db63399eefdb41a4d59f0a7d45"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/xtask/src/fs.rs: 0.0% line coverage (0/4)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/xtask/src/fs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f804e168f3436add50679862824e71fb5d2cd080fd034b55c46d8134578b5d7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/xtask/src/glob.rs: 0.0% line coverage (0/23)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/xtask/src/glob.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4b0ba735d8e44a63a96b3cbfbcb6f3c74e54b1a3500f6ffc00dbc44e8b99c5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/xtask/src/jobserver.rs: 0.0% line coverage (0/19)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/xtask/src/jobserver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f6fcb2cffa1f9aa2c9204dc71c2ebd5801f1d11ac1e59be11f035de91b9cd0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/xtask/src/main.rs: 0.0% line coverage (0/35)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/xtask/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"193e7a0202da16eb36a6f5aa7cd963595eca98cf27c71d4fe5ebea72e54fca18"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/xtask/src/path.rs: 0.0% line coverage (0/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/xtask/src/path.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efb99411cbeb0882dd22142fa5e000136b7accc609871479504d46a459cef92"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/xtask/src/process.rs: 0.0% line coverage (0/45)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/xtask/src/process.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"018bedd2fd016146b1ec51a8c8844251965d8c1f27a05d4d3b95e57bb765efa1"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: naga/xtask/src/validate.rs: 0.0% line coverage (0/316)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/xtask/src/validate.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a959260198b5c23be79f510be2627a5dadd692ce4ac8e51834af77fc91ef47e8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: player/src/lib.rs: 0.0% line coverage (0/1224)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"player/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10fd93645d15ea72fe7dae9e6770b7d72bb9b56e0313a5bb5e09b4b8f552dd2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote-types/src/encoders.rs: 0.0% line coverage (0/10)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote-types/src/encoders.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"575d2e8ca8365831ba3eaeeff0aee9ac88deca1c0859a092b0ec9aa5623969f6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote-types/src/ffi.rs: 0.0% line coverage (0/11)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote-types/src/ffi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8720c7109449891585f9fcd8314255864403de7fd6b52f51c5a49250f774b6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote-types/src/id.rs: 34.6% line coverage (18/52)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote-types/src/id.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43313c0fdeb20a8f6453ac80b09db2c7db4e46b53e96cc43fe51d78cff88a5f8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote/src/global/bundle.rs: 0.0% line coverage (0/229)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote/src/global/bundle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"785f8ce6f3cac09b06ed2c531a4d80cc69779439b7a3d1769a3ae2479ae03752"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote/src/global/command_encoder.rs: 0.0% line coverage (0/238)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote/src/global/command_encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58cf715a7896d52ba7d8a658a45afd1160c521ad73058775910799304095fa0a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote/src/global/compute_pass.rs: 0.0% line coverage (0/193)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote/src/global/compute_pass.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5af549fdf2c61fdaa9af52150650a0de17aff65601e71fe0798ac66233d539f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote/src/global/device.rs: 0.0% line coverage (0/922)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote/src/global/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a648a9233ded6bba315ab13a5b50fffe8620eb57344d0e2313a768df032e09"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote/src/global/instance.rs: 0.0% line coverage (0/161)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote/src/global/instance.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7501d3e2eb95581138515c88c71a9930933edd0803501bf5ec26125056d3b1d8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote/src/global/mod.rs: 0.0% line coverage (0/239)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote/src/global/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6eb26b3b1a6ee67f9e1cd489da141cd27e22e312ae5291a1c47aa2c5dc65475"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote/src/global/queue.rs: 0.0% line coverage (0/54)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote/src/global/queue.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b857d77ddf797bd35aff88056aeca2b123db34fc1376a61a04f23139521733"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote/src/global/render_pass.rs: 0.0% line coverage (0/403)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote/src/global/render_pass.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84bd5b802e93347ad2fed8891dcb82bc6fc7fa494b60cba932da8e7ce4db6474"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote/src/hub.rs: 0.0% line coverage (0/28)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote/src/hub.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"baccd266eafaa6f8834b94461440b40c966df5a83b0bf4954567a6b62a35b094"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote/src/lib.rs: 0.0% line coverage (0/10)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2645967c6a3cdaf45366435b4e8a6825b4132e386f460b642fa230738c600c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core-remote/src/registry.rs: 0.0% line coverage (0/18)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core-remote/src/registry.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5029f114f091851db392287ec491de5e51afa7dc1db87405f0f98f6836b7679e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/as_hal.rs: 16.7% line coverage (15/90)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/as_hal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"435919c91c31296fdb0c96623ffbf066889a234fbe9bbc9a816b885168dfd773"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/command/bundle.rs: 37.6% line coverage (478/1270)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/bundle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f978f96fb8aabe2d0c35aa552284d7ea8dccb4671b2d8db89914279cac32fa"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/command/clear.rs: 21.0% line coverage (77/366)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/clear.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6bda0b5c23378a6ea14af79e0a2bdbb3f5a6293fdd313850e184486339e6ba"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/command/compute.rs: 40.5% line coverage (387/955)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/compute.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d09531df68e5d1dd7cf47d829a9f7116648ba82493ed9f363c1586fab3218f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/command/memory_init.rs: 26.9% line coverage (81/301)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/memory_init.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0128bbac8d61c0af44fe484f9baf122e6977014fa371e7d4ce0bed90742e6b36"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/command/query.rs: 3.2% line coverage (13/403)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/query.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc9f01b132c86785ae1e75a8ba6d8e79f8ecaaff731a55edef5231b50a9b369"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/command/ray_tracing.rs: 1.8% line coverage (18/1006)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4726d9cd5c45f174ff1ab3188b5be9f544ae1fffd385f919e8edc93c39677628"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/command/ray_tracing_pass.rs: 0.0% line coverage (0/603)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/ray_tracing_pass.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"997e998d742ac5d0281108de4dde946f0c3a2934c0fbe2bdde92f6819b5220d9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/command/render.rs: 38.1% line coverage (1171/3070)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab60b292b226deeff1057fe302834363e3ed3ea882250802efe32315a916d16"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/command/transition_resources.rs: 0.0% line coverage (0/76)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/transition_resources.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8913cc936216119c5076cc16df6b0afbf78167c7d046b7c5a98646190babbe"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/device/mod.rs: 41.1% line coverage (67/163)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eac40ce803d4ade80f405b1ad759a988ad0d8ce8a3b78df3a797e4c3a9e84de"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/device/ray_tracing.rs: 0.0% line coverage (0/442)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/ray_tracing.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88d6871087a5007f4887f3a360f15ccd286f0693864fb6add7e80a19f56c8d1"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/device/trace.rs: 0.0% line coverage (0/43)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/trace.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"284e39c02167e846e1c2470c652f520c4e4d05953420372c2bad06bf4a38bf65"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/device/trace/record.rs: 10.5% line coverage (95/902)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/trace/record.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2d908d3b13d1d2ad4d0f8ac3873f50a67a63a479e0ae8330ed9a9e53f385ad"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/device/trace/replay.rs: 0.0% line coverage (0/21)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/trace/replay.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8afc01886ea3e915c67d8581e6b2b639f1cc78d617390f439f4229d8a4daa60"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/indirect_validation/draw.rs: 34.2% line coverage (256/748)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/draw.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"457ed9ee14ea0a565daf4fd4679a9b28d93d456c9b48d3d597750edea6815eb0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/indirect_validation/mod.rs: 41.8% line coverage (28/67)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17cbeddcf46548b2ba32a3d3586e8b20a6fcd747d1136004e67d51b091a8831"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/indirect_validation/utils.rs: 0.0% line coverage (0/37)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/utils.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe227b1b62be54f8aa6b5465dcc59e14f45eac3d1ab6da8c68e2a3ac7630262"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/instance.rs: 44.8% line coverage (343/765)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/instance.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c4f2f694e4570026771def3e99c1c84eb7f1a38ed0dc410cee914a12b210f3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/lock/rank.rs: 33.3% line coverage (3/9)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/lock/rank.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c3c65c3bf1b73b69d5201d219f13f829fce94d545937c65d8a59c490993182"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/lock/ranked.rs: 48.7% line coverage (55/113)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/lock/ranked.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7256868ac7bf714e8810bac77dfad66734d413a073f4a53e50af74ddbb7105dd"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/pipeline.rs: 44.2% line coverage (189/428)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/pipeline.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede249f06a4b8e743a993a6ecc0796dcc28add20c036cdff139f91f4399a38ca"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/present.rs: 0.0% line coverage (0/250)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/present.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0242674d8991d54b558e457cb5f25ba7d30f9f9b9af716445250edd58a664100"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/ray_tracing.rs: 0.0% line coverage (0/48)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/ray_tracing.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0111353fba2a1fd9dab59d5cca889638321136fbc6c8959ecaed265d29e658"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/ray_tracing_pipeline.rs: 0.0% line coverage (0/185)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/ray_tracing_pipeline.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62dcf17af48617a807101d1b9b8f818768d7049b24d327dd080213bca217ad84"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/scratch.rs: 0.0% line coverage (0/24)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/scratch.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbfaedb8c4eaa825046e0888d58539a95229821e97fc2c574a6d270b018d337"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/timestamp_normalization/mod.rs: 15.6% line coverage (36/231)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/timestamp_normalization/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"105ddb22dcc5b8be51f5649a302cff7ac7da2a6d677f47d2aa60d481f61f1b20"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/track/blas.rs: 26.1% line coverage (6/23)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/blas.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8dfd3f4f006e8663464f2e58d202a0b7cd384a3748b289cfa9c1ec31c264036"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/track/query_set.rs: 34.6% line coverage (9/26)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/query_set.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec635ee84e4e44893c8580a7fd07091d26fe56834686d8f8fb028b7f134586c7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/track/texture.rs: 43.1% line coverage (403/935)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/texture.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d79adfe2406c08d846b96ba571e1b23d98241477d8a7d16aedb32f96efa061"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/validation.rs: 47.0% line coverage (572/1217)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/validation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a7c2cd637fd35c7210235d56e200348e751f1ecd88a75f2f92bf3bed327c85"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-core/src/validation/shader_io_deductions.rs: 12.1% line coverage (8/66)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/validation/shader_io_deductions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27aa7a2412bfed4c5c1331ccc65be96df7572e4d098403749e53febbf192e0f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/auxil/mod.rs: 21.6% line coverage (30/139)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/auxil/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0606634f4c2d3e9fc393b690a1f7b8d0afd168aee34b8620cea882d2e1bd7d7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/auxil/renderdoc.rs: 0.0% line coverage (0/63)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/auxil/renderdoc.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b533e8e4512139d44165a9f3f631913ef6513d93cf9b736a4ae974c5359df49a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/dynamic/adapter.rs: 39.5% line coverage (17/43)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dynamic/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e238349e81a91ffcb2ebc24485babc4ff3091af8896ee3b3c8f96eed58760c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/dynamic/command.rs: 38.5% line coverage (193/501)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dynamic/command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14ea9cd3d010f88bd43bc903073048727456157a4b0e2337e3e56776498a956"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/dynamic/surface.rs: 0.0% line coverage (0/30)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dynamic/surface.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ae29cf91c8caea4c328b5853c72eb1a9f121210b0f257dfc988be87a3eb7e8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/gles/adapter.rs: 4.8% line coverage (43/894)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f019005af53205b0da23247d74779b6f4498a35c762da1f8ece66bda9e57a910"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/gles/command.rs: 0.0% line coverage (0/1051)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f3068488bed951d98b2fdbad602b8d730b86b6855b83b9ea6ef2c84291c8af"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/gles/conv.rs: 0.0% line coverage (0/349)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/conv.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"039ba5334490227cfbe072bce9eadd14e8b038e109c3da66cb09715c6556d5a0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/gles/device.rs: 0.0% line coverage (0/1344)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc7dd0c2ae8e2a9552c5e217d0a81c7e2325d84f3f91bfbe09811626a13281f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/gles/egl.rs: 1.5% line coverage (13/854)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de03979bc1bd9a0e524a274afa91cdb2032c97f70263e81aa672aa3da1646e96"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/gles/fence.rs: 0.0% line coverage (0/110)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/fence.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df5f11a02c25eaba5b617fbeafd7175010d552b3d1b0d52420ee6e914eb9e16"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/gles/mod.rs: 0.0% line coverage (0/140)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8899dbbbae7bab65fc5c590be15223db1bbc173cb4195ff7678992ce1720d1e1"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/gles/queue.rs: 0.0% line coverage (0/1319)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/queue.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf34ed3f45be375fcd96caab1d4879a68c036ea0759fe2dc834f0b42767b8eca"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/lib.rs: 28.3% line coverage (67/237)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c66d918c76b585cf8d8e31551b7fd9d2750b1791076e1a9e037fb0cc0168ed"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/noop/command.rs: 44.2% line coverage (115/260)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/noop/command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"faaf30b7f538a45f75ca9618346ce46981d1342445544e1355e64e1f2710ff75"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/adapter.rs: 0.0% line coverage (0/2388)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b57775b2a133ab2c8be0ab6958ce7efa8d774e1689d0707d6484c19421bcf9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/command.rs: 0.0% line coverage (0/1253)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5e5802fcf4ac6bdd0a9889a0c9e142ad7d36f5d7057712672f70f37f19ac2d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/conv.rs: 17.0% line coverage (165/969)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/conv.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e82aa8e339daaf394164f6366480e401ebeb1773dc33f3ad3f7ff4cc53f477"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/descriptor.rs: 0.0% line coverage (0/237)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/descriptor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06e4148e5bf59b9be5d488fdb54d3c93a7335b9ad0106863b7e2d1723ad60d1"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/device.rs: 0.0% line coverage (0/2389)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a0be71cdb2064ba271393e9cc38488f85bc4998e630753846f24553316a6a9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/instance.rs: 33.1% line coverage (222/670)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/instance.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc318b5971b12fdc9aecdd705f7b3ed4e49f740eff9c98b26b3661788d3069d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/memory.rs: 0.0% line coverage (0/87)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/memory.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7619aac2e47b3bd8002d46aebcf5900b9d52e674dfcfcdd20c2cb6ca45f2a7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/mod.rs: 0.0% line coverage (0/474)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"577d7b310d41f13204f79ec5379fd1a1bcb2e17a8fe8f6779bd546bb831b8110"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/pnext_chain.rs: 0.0% line coverage (0/11)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/pnext_chain.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b92859a221a9e7467e8a2ff889c44e5a9b5487b71c66627714224a7543dafe"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/sampler.rs: 0.0% line coverage (0/94)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/sampler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3fe2a3a3c508cab72d12a7832c7e10814c0baf73af9e2ad9c8aca8cd36f3a7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/semaphore_list.rs: 0.0% line coverage (0/107)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/semaphore_list.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4fe5ef71175f2cfecbf0d303d2852f0fc96b21cf8fc99f79b25e347f12dc8b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/swapchain/mod.rs: 0.0% line coverage (0/3)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/swapchain/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71cce4f35da45d528d2060ae9c04876706604c8ee2581202e61372356e98976"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-hal/src/vulkan/swapchain/native.rs: 0.0% line coverage (0/507)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/swapchain/native.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa48bd0878c1e05c7f2bae6f721412e83b6a7a56781ca05e35d25fe8c5d0cd30"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-info/src/cli.rs: 0.0% line coverage (0/60)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-info/src/cli.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9d4f8cfa5da688c41d48a34dc2394f0f0749a22ef4ca60dcca1dc8cce1acee"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-info/src/human.rs: 0.0% line coverage (0/263)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-info/src/human.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c2f40c1c049627a818de5fc12b5d344b52bd8148335b51e10b73c4fe57119e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-info/src/main.rs: 0.0% line coverage (0/3)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-info/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"647b709be367887185cca8ff8abf89dd9680e093cd638cbeef32fd330603f768"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-info/src/report.rs: 36.7% line coverage (11/30)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-info/src/report.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48104758b88411e815c0081a3cae94817b88718c8a95040d3b3c24937b593e2a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-info/src/texture.rs: 0.0% line coverage (0/12)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-info/src/texture.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82196054a0e09c852d50dd2fa960def9f992ab912c711a257210766bbb404158"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-sync/src/mutex.rs: 17.1% line coverage (6/35)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-sync/src/mutex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c549d9820fb9c3aa6f4ca92ace3d13e55705e54d3d255dea8e83bb0f02cc823a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-sync/src/rwlock.rs: 27.3% line coverage (12/44)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-sync/src/rwlock.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a81cc886d6a9fd4f47f2963f88105978467b838c440314aeab96c4a26b7b84e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-types/src/backend.rs: 40.7% line coverage (123/302)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/backend.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bf6ef29e2e9bfdb06e022ae8cacda0c035faf1019c4c6d057339f09011514f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-types/src/binding.rs: 0.0% line coverage (0/6)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/binding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f55ac2f84d1188f736c372fd5b0658a491a263426c5f8946283d87c9d3bf43a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-types/src/compilation_info.rs: 11.1% line coverage (5/45)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/compilation_info.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0f275d0f0e5397e16e59d2e97fa9c4845a78a39963b439530d6710986b7e1b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-types/src/counters.rs: 0.0% line coverage (0/67)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/counters.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"378dbe47006cdc7904cd296b9c3d7953c34d48fbb1166c559ddf2d7aa236d781"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-types/src/error.rs: 22.2% line coverage (4/18)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba3c73776928910d02ed6065e79790d2e7741b3310434be11806dbe7934836d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-types/src/lib.rs: 42.9% line coverage (27/63)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1baadc8eb167e48774cf6e1be317cc234973e3836e7447095eab543cba529440"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-types/src/origin_extent.rs: 41.3% line coverage (26/63)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/origin_extent.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58d4414e3308c694d89e2f96d1c312c1c1fe82e845a567894163ba604191d53"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-types/src/ray_tracing.rs: 0.0% line coverage (0/15)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/ray_tracing.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a64d4633c997e5e7f5803c13a18667efe71b0eeb20251e887a4848c71e874fe"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-types/src/render.rs: 38.4% line coverage (58/151)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/render.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f1eb701896f558757e7b589ea9d47774e3206465dadcd8b90af0c7e602a280"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-types/src/shader.rs: 19.5% line coverage (16/82)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/shader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37adcdc885c5ca356b9d5a932d0adc668566f6c44600b2980c3f8481d63c5d9c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-types/src/surface.rs: 35.3% line coverage (24/68)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/surface.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc50b5af6188322302c853d1310d70153db39c6b6dde0f11ec7f97f1bcbc1bd"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu-types/src/texture/external_image.rs: 0.0% line coverage (0/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/texture/external_image.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3322a0f72f25991eb5fb7deadf00bf9192abe26cefbadde7d859247fc7247b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/adapter.rs: 20.7% line coverage (17/82)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be91e7357c59b8a260c097f7717dacaeb56e151911392c9b2f2ae87ecf583a6c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/bind_group.rs: 0.0% line coverage (0/11)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/bind_group.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e613d53850811edc1616f95131ae85e1cac0608b9e095a1a93b83c78073e342"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/bind_group_layout.rs: 0.0% line coverage (0/16)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/bind_group_layout.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ae766ec5fe81fa7fdd1488dc8d7402baf66bedb5625e0c2ccd828df65ef8e8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/blas.rs: 0.0% line coverage (0/54)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/blas.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4cdf4f0487bfe23433aabdfba9e6a24439cb24f650bc972c86feab8ec17b5c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/command_buffer.rs: 0.0% line coverage (0/12)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/command_buffer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c621c3eed75f536731353ac4cef49cdb05465a524d3ff32b14256c16353c9e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/command_encoder.rs: 49.7% line coverage (85/171)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/command_encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8133eebee829eebed084ca94a2c3aedd43d7bf02532a2e0a898dd1ead085736"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/compute_pass.rs: 23.2% line coverage (16/69)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/compute_pass.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8d1a14f1e492feac27aefd2ead390bcbde44436bf660d22f545e68cf03d280"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/compute_pipeline.rs: 22.2% line coverage (4/18)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/compute_pipeline.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b41474bc9a777d5f5ea87129170e93532fd2c3065819693421c30a5d90998a9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/device.rs: 43.4% line coverage (134/309)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b999734166f87f77ae9007ad79b7b4b8bcd0eb0562430e6a8ba6ae994fdad46"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/external_texture.rs: 0.0% line coverage (0/17)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/external_texture.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10918bce29e85629d39b2a858486515b170019834b80b257535d139aed43e2db"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/instance.rs: 32.1% line coverage (43/134)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/instance.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fffa06a16be7732469adea421153c5342bb3dbc22e45f4f7ec5e4a3ae5ae600"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/pipeline_cache.rs: 0.0% line coverage (0/6)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/pipeline_cache.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ae3ff00c7894cdf5578693e0a7bfa5a1f6e85a2927c532a9da899dd97cc9fd"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/pipeline_layout.rs: 0.0% line coverage (0/14)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/pipeline_layout.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2ec2edade4d0ec4289a0670211c2d11b9c34788709721385759cfeaa70cc44"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/query_set.rs: 0.0% line coverage (0/20)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/query_set.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0988d1e86326ecc7e61cfcd8fd6fd01be367fa5ba1bd21108a53f08a3f0049d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/queue.rs: 14.4% line coverage (16/111)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/queue.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7e21a5b1669870472ad4796f4bfd214201bbb2b4ee3a9c67b5ed6f499e3c21"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/ray_tracing_pass.rs: 0.0% line coverage (0/32)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/ray_tracing_pass.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"391535c2aebe5e441fa13fe6f84f5b42c99565fc7dc8580d6a67d30f40a505d9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/ray_tracing_pipeline.rs: 0.0% line coverage (0/22)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/ray_tracing_pipeline.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"552674f1521391515425ed6bc9367d77a9983c4e89995ba963841b36d40fa5af"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/render_bundle.rs: 0.0% line coverage (0/3)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/render_bundle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1630ea00c6b701ebe8f95cb7ee2f62d5e60bd398bf87a72813c7b8870cebc2f6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/render_bundle_encoder.rs: 31.9% line coverage (23/72)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/render_bundle_encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"602d1c6355334e56a2b6a8e9e3eac17174de0aa109a664bf4bc5b2f66a76ee89"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/render_pass.rs: 18.6% line coverage (37/199)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/render_pass.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b07959002d906e25b4656cc1378100f5d781555d4a87de347d74173ab4da6d7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/render_pipeline.rs: 33.3% line coverage (7/21)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/render_pipeline.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ab476f3630c91a5a1f80040f6aeea01fdf104862159cdb02e367b1ce4b2d98"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/sampler.rs: 0.0% line coverage (0/11)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/sampler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"270287b5306164bbeb878d54a91d9f1ae189b538cffbeefbcc49a09f195fe3ab"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/shader_module.rs: 0.0% line coverage (0/15)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/shader_module.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9daa33227f869527661e992106e9873ea1b01b342001d2bb6c73dbe506196563"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/surface.rs: 0.0% line coverage (0/127)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/surface.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8284384a6bb29fa1512d60c19a027f09b6039326769c97757926885f1f7e405f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/surface_texture.rs: 0.0% line coverage (0/18)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/surface_texture.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49b683d79a47e60eaf99df6c728ac5c2f768649e8f1d6eb1219613d4d9c9168"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/texture.rs: 38.0% line coverage (27/71)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/texture.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4cd84e8e360264182f10e5f7688c8ea977b89a2529ada12e030cd9e948c36c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/texture_view.rs: 15.0% line coverage (3/20)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/texture_view.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65db0a995ee3a842bf02bf96d579ee5723062403cfcc703d1f53de5cb61b02fa"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/api/tlas.rs: 0.0% line coverage (0/56)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/tlas.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25dd96b460d0d433485836d66094a3265e576fc0ed9071dc5ccc4dc7480b973"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/backend/custom.rs: 0.0% line coverage (0/54)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/custom.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99875d81e7d505a14ddd36934429babb61f4eac11950b03f689b66ad3c02ca5a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/backend/wgpu_core.rs: 35.6% line coverage (780/2189)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1ed8c69e71e3f13a9d3bec7dbbb29d81d315c7a56f62045131e356e11c7fff"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/cmp.rs: 25.5% line coverage (13/51)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/cmp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b1c059a450b8b82451ada5512ac36739c522fc584b09783948b5f41342fed4"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/dispatch.rs: 38.6% line coverage (32/83)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/dispatch.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62a926b1af816eb97306eadb4d72b74837352c3678aa9f18619c8ef84da60fe"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/documentation/extensions/ray_tracing.rs: 0.0% line coverage (0/2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/documentation/extensions/ray_tracing.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c571aa51bcdc219e53ad1b2eefee629b9d0723814e5b4488326ddd3b3db142b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/util/device.rs: 0.0% line coverage (0/87)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/util/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1bad0677be2eef3b968b9c0c51b0e42baa5bb127953537d4690596cbfbe0e8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/util/encoder.rs: 8.3% line coverage (6/72)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/util/encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c09f55490c8a95db6ace56912f1cf571b0a3de66adb5bab6e147de919dd3345"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/util/init.rs: 0.0% line coverage (0/53)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/util/init.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3be6d6c0509f040db0ac7ae9576b673bf14a091b7fd7170b85dde0a8d9b144e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: wgpu/src/util/texture_blitter.rs: 0.0% line coverage (0/139)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/util/texture_blitter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4590402dd2394e6afefed9087f240d7360dfcbd995f748157b85e5f293c4b96b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/cts.rs: 0.0% line coverage (0/297)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/cts.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3062e707037af666f37be3e3f71ac4f310e97fbe4fb122d0875b7cfed91560f8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/install_agility_sdk.rs: 0.0% line coverage (0/62)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/install_agility_sdk.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbbb10b3fa7ccbc5fb32e08b710011cad6d5072d60220c64641f044346e2ef8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/install_warp.rs: 0.0% line coverage (0/74)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/install_warp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fcc3756987bf31ea21c0f9171b1a15abd63c92d9eac42bf731bf8fb3d2cff6a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/main.rs: 0.0% line coverage (0/37)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfca7732a8a8f9cb6bb82e22409e56de500047397ca0917a6fa50df2bcdd893b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/miri.rs: 0.0% line coverage (0/25)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/miri.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe49b01f1e3bff98548da59a0d4d9440aa6e23ba15d2bc394dc643db3ecf64e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/run_wasm.rs: 0.0% line coverage (0/76)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/run_wasm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64a353245dec20a572c2a086212bea6c46a82045b0342e9036c69a82475ddc6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/sync_repo_files.rs: 45.4% line coverage (59/130)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/sync_repo_files.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f6c1138afefd6271760e7e6c8a317f98a78cde676410c43fbcaa4ff07c1813"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/test.rs: 0.0% line coverage (0/98)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/test.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d788cde35579e81c694394bc1be9aa72203805128cedf89b9e5ee872a3351810"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/test_wasm.rs: 0.0% line coverage (0/152)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/test_wasm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60c4ca67c5ae160d41e822087afe33c76c699c658c2ede7cbea5e38cd106f0c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/util.rs: 28.3% line coverage (26/92)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/util.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c15f39b74bdd275f1bd0179500f90c03849fe27603ff5751a3d2b1053036917"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/vendor_web_sys.rs: 0.0% line coverage (0/101)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/vendor_web_sys.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d999f9e34c1a7f398153a2966670ca0f81b32ac0f0c6249594bb5366e30963"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-core/src/device/resource.rs: wgpu-core/src/device/resource.rs changed 55 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 105 in Device::create_render_pipeline_or_error_inner at line 4737. 11 of those changes were fix/bug commits, and the other 44 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-core/src/device/resource.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":"wgpu-core/src/device/resource.rs"},"region":{"startLine":4737}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f16595a759279f6788c8cfec2a7f5f2891e5c213e95cf0b8a2a7b4fdf145003"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-hal/src/metal/adapter.rs: wgpu-hal/src/metal/adapter.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 135 in CapabilitiesQuery::new at line 715. 3 of those changes were fix/bug commits, and the other 18 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-hal/src/metal/adapter.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":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d81eb85a9be3e414f4ea9de54c29a7202b80487c875653355832c53e924794"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/back/msl/writer.rs: naga/src/back/msl/writer.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 207 in Writer::put_expression at line 2218. 1 of those changes was a fix/bug commit, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/back/msl/writer.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":2218}}}],"partialFingerprints":{"codehealthFindingId/v1":"999c61a0d72d82d9a4c8906e561008b9ad6060e80a6b8848b1dee31b44837f7c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/back/glsl/writer.rs: naga/src/back/glsl/writer.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 300 in Writer::write_expr at line 2445. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/back/glsl/writer.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2445}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae133659980e3936acc4d4dcc679a45353321cb5cf5a617de624f0fb7a46ffd6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu/src/backend/wgpu_core.rs: wgpu/src/backend/wgpu_core.rs changed 85 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in CoreDevice::create_bind_group at line 1077. 2 of those changes were fix/bug commits, and the other 83 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu/src/backend/wgpu_core.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":"wgpu/src/backend/wgpu_core.rs"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"a177b1a0209ebe35b784124098374efe2d2257be8f19673668174e49766c35a7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/back/hlsl/writer.rs: naga/src/back/hlsl/writer.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 132 in Writer::write_expr at line 3939. 3 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/back/hlsl/writer.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":3939}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf18a6716e73ce848be9a4be5e77ab16119d9173208a2f3a337e33d6362b9668"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-core/src/resource.rs: wgpu-core/src/resource.rs changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in Texture::create_view_inner at line 2108. 4 of those changes were fix/bug commits, and the other 28 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-core/src/resource.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":"wgpu-core/src/resource.rs"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6835509e06810fefe33382d54b00be33d83dec6e0f10843d03230f4f47c076d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: player/src/lib.rs: player/src/lib.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in Player::process at line 105. 1 of those changes was a fix/bug commit, and the other 19 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- player/src/lib.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":"player/src/lib.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13654f8c32b021ce059ef2c197d800242bce086b8d72f692cdf22e890ba5ad0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-core/src/validation.rs: wgpu-core/src/validation.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 89 in Interface::check_stage at line 1682. 1 of those changes was a fix/bug commit, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-core/src/validation.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":"wgpu-core/src/validation.rs"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"76302d6ecf0e08e106dce33737745c49b889e6d95c71d3ff05c12b32de2bd439"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/valid/interface.rs: naga/src/valid/interface.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 133 in VaryingContext::validate_impl at line 234. 3 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/valid/interface.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":"naga/src/valid/interface.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"060140cedfb3b463c8921197fa5d15eaad0e69d3981d178f5e70d2dfdbe6b90c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-hal/src/vulkan/adapter.rs: wgpu-hal/src/vulkan/adapter.rs changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in PhysicalDeviceProperties::get_required_extensions at line 1232. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-hal/src/vulkan/adapter.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":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"5deec2a957dfa4cb11421e39d95a0513b0b9313f2c6c265ad9780724ed6cfeaa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-hal/src/dx12/adapter.rs: wgpu-hal/src/dx12/adapter.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 103 in Adapter::expose at line 159. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-hal/src/dx12/adapter.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":"wgpu-hal/src/dx12/adapter.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22875c15b64e6960b90465c079948d053e845c5dfd0087a2ec7b302e4474182"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/valid/function.rs: naga/src/valid/function.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 149 in Validator::validate_block_impl at line 812. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/valid/function.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":"naga/src/valid/function.rs"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"2224c30ebc250c36b0212677133f4f325f2d657d0b3279a3f096b9e68fec8529"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-hal/src/gles/queue.rs: wgpu-hal/src/gles/queue.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 177 in Queue::process at line 192. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-hal/src/gles/queue.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":"wgpu-hal/src/gles/queue.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc97befb8f46517a1ee3e0cc736be0dd27589043e1a24db6689d4c3e2e06ac6b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-hal/src/gles/adapter.rs: wgpu-hal/src/gles/adapter.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 96 in Adapter::expose at line 195. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-hal/src/gles/adapter.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":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7d84889b856dc398c4f6f8357482add3829281ce6707b0e5efcfc6ae7c354f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-core/src/command/render.rs: wgpu-core/src/command/render.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in RenderPassInfo::start at line 1219. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-core/src/command/render.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":"wgpu-core/src/command/render.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b889f6e51f478b59ddb765d81ea2f51091383e94453e6f8bd0ecc0b0c12574b2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/back/spv/block.rs: naga/src/back/spv/block.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 251 in BlockContext::cache_expression_value at line 790. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/back/spv/block.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":"naga/src/back/spv/block.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b31ecbd51ca65df409911655ab0d72596245f6491c5f5e718552b3a44ebc0e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/front/wgsl/lower/mod.rs: naga/src/front/wgsl/lower/mod.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in Lowerer::call_builtin at line 3142. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/front/wgsl/lower/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":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":3142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a852eb10d855c65f2c95541998184a1df9106c8b0f219e84dbd4614b236e40"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/valid/expression.rs: naga/src/valid/expression.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 219 in Validator::validate_expression at line 386. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/valid/expression.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":"naga/src/valid/expression.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ab3daf3e9beb4e42bf7dc54486e6a55b671d53e866fa0e0e206e6039bc2282"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-hal/src/metal/device.rs: wgpu-hal/src/metal/device.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in Device::create_render_pipeline at line 1517. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-hal/src/metal/device.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":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4936707d1431cb44f459dbe3f2b8da231bd5f2e725dda62a65f89a02b8314e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/front/wgsl/error.rs: naga/src/front/wgsl/error.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 125 in Error::as_parse_error at line 680. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/front/wgsl/error.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":"naga/src/front/wgsl/error.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"5badb6777cd98a68ee2bf3a25c45efbedaf8ae3e5ad54bad9fcdffb7fe6fff05"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/back/wgsl/writer.rs: naga/src/back/wgsl/writer.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 103 in Writer::write_stmt at line 750. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/back/wgsl/writer.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36519cf5a0a93d37319c16af5d05a60a24c7c5b80831124406b7c5284da80ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu/src/backend/webgpu.rs: wgpu/src/backend/webgpu.rs changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in WebCommandEncoder::begin_render_pass at line 3501. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu/src/backend/webgpu.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":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":3501}}}],"partialFingerprints":{"codehealthFindingId/v1":"340bbebdccbfb393b12bcfb76a93fc054f85d13f0c63492ac65e46c376cbd947"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/back/spv/writer.rs: naga/src/back/spv/writer.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in Writer::map_binding at line 3219. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/back/spv/writer.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":3219}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e27398aa6b897a0231dffec337aca0ddec8a78a52e64c640aa361c7cd6c6749"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/back/dot/mod.rs: naga/src/back/dot/mod.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in StatementGraph::add at line 65. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/back/dot/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":"naga/src/back/dot/mod.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb86f48ce2440a7681754c3deab7c8fc7ef5276815a809dacdfcf89e2c5fdad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-core/src/device/queue.rs: wgpu-core/src/device/queue.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in Queue::submit_inner at line 1634. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-core/src/device/queue.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":"wgpu-core/src/device/queue.rs"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbcf24913e445805b5dd1545f690827197d994ee3de314d1311e93df2343028"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-core/src/instance.rs: wgpu-core/src/instance.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Instance::request_adapters at line 442. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-core/src/instance.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":"wgpu-core/src/instance.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb18f2b5c8defb1ec66f11a1c09774db99e5422a5ea4976f9b9301dd229278d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/valid/type.rs: naga/src/valid/type.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 86 in Validator::validate_type at line 383. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/valid/type.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":"naga/src/valid/type.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f69a268a065eaf7d55f4708f019d2fe73c88ae8fb23edd66e7f80b9dc1e750f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/back/msl/mod.rs: naga/src/back/msl/mod.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in ResolvedBinding::try_fmt at line 650. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/back/msl/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":"naga/src/back/msl/mod.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c1746af5aad432947c79c3ed1ab64d0fe6c98b9ae3f6cd1a1d1641864fb901"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-hal/src/dx12/device.rs: wgpu-hal/src/dx12/device.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in Device::create_render_pipeline at line 1997. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-hal/src/dx12/device.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":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"64801ba76ca7fef05ecd577ebf2820365b7130cd8aaa7171ad3d534bbaf4c123"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/valid/analyzer.rs: naga/src/valid/analyzer.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in FunctionInfo::process_expression at line 539. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/valid/analyzer.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":"naga/src/valid/analyzer.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"708805ab942c269f2486b99a3dc781e95cb9c050990050630b20916d62397bbe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/proc/typifier.rs: naga/src/proc/typifier.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 103 in ResolveContext::resolve at line 265. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/proc/typifier.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":"naga/src/proc/typifier.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"208b39f1de0665876086f374911feab8f569f3a1a4a24af513f69e038015a784"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/back/pipeline_constants.rs: naga/src/back/pipeline_constants.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in naga::back::pipeline_constants::adjust_stmt at line 746. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/back/pipeline_constants.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":"naga/src/back/pipeline_constants.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb65b605e4df68405f3b3123c2152ccbf43493f021354d7d74450af786ea5107"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-hal/src/metal/surface.rs: wgpu-hal/src/metal/surface.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in Surface::configure at line 250. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-hal/src/metal/surface.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":"wgpu-hal/src/metal/surface.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b5e7204b6816f9bc0038237677e19d73bcd62a331bf341934810689d73cb0e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/valid/handles.rs: naga/src/valid/handles.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in Validator::validate_block_handles at line 694. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/valid/handles.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":"naga/src/valid/handles.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"850753d93ba5ac424e784cfd7f8293ef5cae755d5cf6381e95eb979347bc3e9c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/compact/statements.rs: naga/src/compact/statements.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in FunctionTracer::trace_block_impl at line 30. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/compact/statements.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":"naga/src/compact/statements.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4097b4bdf243fd18426bd02d93b7ad32a84589dfbf1dbe5bd25bf72d32323c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wgpu-core/src/command/ray_tracing.rs: wgpu-core/src/command/ray_tracing.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in wgpu_core::command::ray_tracing::build_acceleration_structures at line 197. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- wgpu-core/src/command/ray_tracing.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":"wgpu-core/src/command/ray_tracing.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f2ffc2af4566ff2b92803c80abed57dda8701884abc35414d52d98302f6a70"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/back/hlsl/help.rs: naga/src/back/hlsl/help.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in Writer::write_wrapped_functions at line 1999. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/back/hlsl/help.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":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1999}}}],"partialFingerprints":{"codehealthFindingId/v1":"65895c57058b26456c240c1dec9e31446373f475f5569e958a7e6c4f276c9292"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/compact/expressions.rs: naga/src/compact/expressions.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in ExpressionTracer::trace_expression at line 76. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/compact/expressions.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":"naga/src/compact/expressions.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"817f691300c341d4ca8c8245a9d87fa17e8a62a71a7f6bb481048074b2d90283"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/front/spv/mod.rs: naga/src/front/spv/mod.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Frontend::patch_statements at line 1573. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/front/spv/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":"naga/src/front/spv/mod.rs"},"region":{"startLine":1573}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2eb4a3435203d0e2b9647707ddaf545521473900603d2230f70783f1142444e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: player/src/bin/play.rs: player/src/bin/play.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in player::bin::play::main at line 4. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- player/src/bin/play.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":"player/src/bin/play.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"732c7d2c1196f000e2d412fd06f70255622cf56b94b10be9e22036a5664056ae"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: naga/src/back/msl/ray.rs: naga/src/back/msl/ray.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in Writer::write_ray_query_stmt at line 195. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 04:54:42 \u002B00:00\u0027 --until=\u00272026-11-14 04:54:42 \u002B00:00\u0027 --full-history --no-merges -- naga/src/back/msl/ray.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":"naga/src/back/msl/ray.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7bd8c8e40ef223bb67ed5cfc7a45a3ea1f99fd8bbe2dee90c2c867f5676e5f"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 13 significant file(s) lose their only recent owner: wgpu-types/src/bitflags_array.rs, wgpu-core-remote/src/global/render_pass.rs, wgpu-core-remote-types/src/encoders.rs, deno_webgpu/buffer.rs, wgpu-core-remote/src/global/command_encoder.rs, wgpu-core-remote-types/src/lib.rs, wgpu-core-remote/src/global/compute_pass.rs, wgpu-core-remote-types/src/binding_model.rs (\u002B5 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2908be9cff60b6bf650a9f72211dc25b2b59f512fe54a59f075b1c1ae65c9919"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 5 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 (18 single-owned of 382 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; 382 of the 469 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 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: naga/src/back/msl/mesh_shader.rs, lock-analyzer/src/main.rs, naga/src/back/spv/layout.rs, wgpu-hal/src/vulkan/memory.rs, naga/hlsl-snapshots/src/lib.rs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: convert \u0060vendor\u0060 and \u0060device\u0060 to \u0060u32\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/adapter.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34c9f095f73129e4969ee08f2b41b6c477a4398767e777cf97af3020f6661e8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO    #[cfg(features=)] \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/counters.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f040ddde366167f0606d2ca13e1b3b665ee4271e1dfc6916f29e768825f5d10d"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: Rename to total_capacity_bytes following the rename at https://github.com/Traverse-Research/gpu-allocator/pull/266?"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/counters.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40cb6c7a5c3791e8ae3a8eac978fbb656659fce48a8f31885499c7d428aba49"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fill out the differences between shader models more completely \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/limits.rs"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d112f2c061363f135afdca19814e17602524c08c8c1883c50ec1d2bb5cb558d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(\u003Chttps://github.com/gfx-rs/wgpu/issues/8491\u003E): It also does not"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/origin_extent.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6f2623dc7928d2fbc96f777b1b13844193b5efd4a55cedbc7dac04876ef328"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Add an introduction to the necessity of explicit reborrowing. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/write_only.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda82dbefda68d28c0a539cebe97fcd38f722168e71be97c20a98f0b2eb1eade"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Use \u0060NonNull::from_mut()\u0060 when MSRV \u2265 1.89.0 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/write_only.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf0cc08022a570daa78af334bf550e3e03f54e92a1a72879b3eeddacf8c3ebf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: When \u0060feature(slice_ptr_get)\u0060 \u003Chttps://github.com/rust-lang/rust/issues/74265\u003E"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/write_only.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2844f7c3dab521715660aff238d03ee2721e0cb1758b0d9a50f3ff9b41647b4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: cleaner panic messages \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/write_only.rs"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"9463e1d161f2f3540be07dd11dba866f01e3972d5bc0d97eae2db3b1edab6c57"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: have more consistent errors so this assertion can be stronger \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/write_only.rs"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"516e5171f3c3585e9867ef13fc3d9d4df0ae47ecd177054eb7f289a047de0afd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(\u003Chttps://github.com/gfx-rs/wgpu/issues/8491\u003E): Remove this note."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-types/src/texture/format.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef39fce92a939492985762f3d86ffcf8c7f70b1b87ac97354cba8411e04441e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-sync/src/lib.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"44160f67ea9210032449ed27257786959bc41c2cc8755004c5ddae747b1bb5a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/lib.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf9f70fd60684aca3d0e9efe8e5f7a3f2813fbb509da835bb8793fc9ae3a504"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/7120): this should have a cfg"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/lib.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed7bf23fb29237e654d18508b16a76391ecfb49c7a240f9adfb89a3163225ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: the allocator\u0027s configuration should take hardware capability into \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/lib.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a44836695f92f6a4a42b4299fd4d593fbf199bd073b970cd9932e64469ee48"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: https://github.com/gfx-rs/wgpu/issues/8625"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/lib.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb122076a22714654dee1cdd77958aba5f1a46127284f09934790e274175b26"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/rust-lang/rust/issues/18598): avoid indirection via Box once arbitrary types support unsized coercion"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/lib.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"a207044410057c5e88b29ba04053719c97cb6769f2125a4fccf6da4b4445d6e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: programmatically determine this, if possible. It\u0027s unclear whether we can \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"4730109a1dffa5fb22f378727ffa62271f088cad6bdbbb3c584b74db1020dc4d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use \u0060vk::API_VERSION_1_4\u0060 after \u0060ash\u0060 is updated. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":1928}}}],"partialFingerprints":{"codehealthFindingId/v1":"83cbe2ad1f30be32df408df05b79539a26e51577c184aa7c8e578ec00c60988c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/9742): enable on"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0cd97275b3512215ee646ba6f80acf44a9ebb1d5306857bed15a7d6e4681d3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: only enable for particular devices \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":2363}}}],"partialFingerprints":{"codehealthFindingId/v1":"e112d3be1745bb1430871652d99975971ac32013f6d9653c98f2f326519c5ded"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: make configurable \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":2500}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb953f0ec8217615e0d7e98cafc0e80eccced7fbbbf2ae54bd1559536ce0a00"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":2553}}}],"partialFingerprints":{"codehealthFindingId/v1":"9555a916128d0d44a7bd035414d26f6f889a8ab574776e6b83e16044a4f39bbf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/conv.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc238eb0ba9aaa878728bd828779190a7efbc732f46d0932af1de9a15cef56e4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/conv.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5460dddfb69cc6359d8a2b4583aacc39cc3ba978c1c6ab45e3508e126808c15d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2575}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b65761ae7dd23a70cd6d8f0383614a0ee8d21c6d4f8ee1e00423b5861a4fb4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: expose this more generally \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":2911}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a020a822620d49a5d5844fe013117751ea9a2a6d59cea11903003a3c0f80e76"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support bounds checks on binding arrays \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":2960}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d6f33f32ac8c84ba886ca87aa823808783182fb4eec812f4bd93739cd796be"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support bounds checks on binding arrays \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"327d758a569f04ada828e231c8a92ace1d4c4dffde1e31dac28e6022d6b5de45"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check for (\u0060VK_KHR_get_physical_device_properties2\u0060 or VK1.1) and (\u0060VK_KHR_format_feature_flags2\u0060 or VK1.3). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":3491}}}],"partialFingerprints":{"codehealthFindingId/v1":"b031204245084a2a0daf53ef30fe920c4ac2b63244715430624fca6f70586a36"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Code is so large that rustfmt refuses to treat this... :( \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/command.rs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"19825106759340ed92cec1af2214fb4a28d4ce081435412d67894c55c7fc4517"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We should use \u0060push_next\u0060 instead, but currently ash does not provide this method for the \u0060ImportMemoryWin32HandleInfoKHR\u0060 type. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"92eace39656365bbab2be9446384b49184c4526a243051479493448666f1ea43"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This length could be reduced to just the number of top-level acceleration \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/device.rs"},"region":{"startLine":1842}}}],"partialFingerprints":{"codehealthFindingId/v1":"4437a3d068744ec64053e1163cc0d1d5a02c54b6ef403b9dffd08ad45f5d9d8a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: use color fields of \u0060vk::DebugUtilsLabelExt\u0060? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/instance.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bed7b833de33161cd242cc3f7b0158466754c17c652e58358621ee5acbe4c69"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace with ash-window, which also lazy-loads the extension based on handle type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/instance.rs"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04c6c4c68ed19d44a25f4743a673e6507325331bca286843fbd17fbf5d16b4a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO there\u0027s no reason why this can\u0027t be unified--the function pointers should all be the same--it\u0027s not clear how to do this with \u0060ash\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/mod.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"31051805ee7332b828fff9fdb17d552f5a872c710e11091a289d211c857d32c2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/swapchain/native.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36a10b4083d78bbc093eb4a328ecb0035befd26b499679d62bba82f00bebb68"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":1731}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4ba39163312389522800620bfc753f56337bc40f61bb4bd8063afdd18c8c75"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":1741}}}],"partialFingerprints":{"codehealthFindingId/v1":"825dc202d6ed327a7f7ea89eea2c854b6715efa8e22e1f3e46a6d5be7181e961"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"0593dfb0f0caed8ef8499dbd2e44c088462b43dd4afe2510d55841438e13453b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"503815fddf0fac3b23d98bfb86e0a8064b030e5bb99b63597e0a16432419f437"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a2199bd72973793d2132f9928aa07041fcc56af01ef57df10c9df068a69a7e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/web.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad00c24281cf4dc6020fb8ec28c4ef6a438bab3e687912ea6f554ff751d41d98"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":1793}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9ea889fcca8af43636d6dffb5cca9ec351bb72cbfefadf07278326571bbe5e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee3ba492aacfda584200cdaf837324d2b3fc93e9b24233367a3b5c6a04254c1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/mod.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f880aba853de77cd679f16afb05f108b5fe142cc5a6523ca47ef10728b721e8c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Right now we\u0027re always truncating the swap chain \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/swapchain/native.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad70db0c0cd27012afea358202df549c66eadc0a60985d66039604917f89a405"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: https://github.com/gfx-rs/wgpu/issues/2869"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/swapchain/native.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"0227429d041f6c91790df3f42a71efeddef73449851249ad0d29a2e12f018002"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Current implementation no-ops \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/swapchain/native.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"247a82cc51aa37b0c4d2ce387736b91c337b45d789580231787efd1dcb0e165b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider implementing this and other texture manipulation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/noop/command.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cdec00eab268a77d77c512af0a21767d7a5a0ce4d6401fe39a0b6e0ace59ab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider implementing this and other texture manipulation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/noop/command.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8122829fe14e1fc877a979ac6be98c832e6e1ee1c8c3f7f5e862dab906e3cfdd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider implementing this and other texture manipulation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/noop/command.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa450f5eb34bffc62cfc324c33d8b8c6ad3c1b1af7989f5b7f73382fc58f0e76"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: separate the mutable comparisons from immutable ones \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd5bdfea7ef64b87938fc57d0948f449494ba570e21317b57d3d45f4bf5c957"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add another flag for \u0060first_instance\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e04d4120f0b867c28c800806404802664c2bbfe5b7780b7e8507f55167c1951"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: support empty scissors by modifying the viewport \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/command.rs"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc902343d0b37c7d4313d6c1e42d50d114d4c63c0fb4aa9b5c07df945f02c652"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: HazardTrackingModeUntracked \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebf0d76d4862e518d72631a68c1f6fe65fd757f4a93663a35793e7a34f090c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: HazardTrackingModeUntracked \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"082b31a6a70391f24e5d80858a44a6bbc40f582224c0b653a53ef969e911317e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is a workaround for what appears to be a Metal validation bug \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"3505d6bec00c8ec7fd4b0706bc6747bd62cda733f10489d73f370b5c668f391c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: handle sample mask \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":1913}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55fbed3dad305b88387bc4c8f02349a8b43ac5f0b2bf60984c81d6d60f77f5d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: see https://github.com/gfx-rs/wgpu/issues/7460"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/device.rs"},"region":{"startLine":2376}}}],"partialFingerprints":{"codehealthFindingId/v1":"d589d0d6d5a12ce1673f06c05ba93a6ff2e6682c243129a5809e1d66ecd5a7ee"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(madsmtm): Derive this when a release with \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/mod.rs"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"7291bb4139293704fc541aa921ff243e90738a0b15f02a3c75907d5b6182a4cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: iOS/tvOS/visionOS could report EDR headroom via \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/surface.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24ac94a0fc09b390281969e3d5e47de538c3873492aa6310000b322088283d7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/surface.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"906951f03bd7f5fdec97d18ab70f4bc90d5cee59450ceee7467828fb9561fe27"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make this even more lenient so that we can also accept \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f623c52bb2c8fab4116887b5ea07538e509778cab9fbdd173a871ce169044bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: handle Intel Iris XE as discreet \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b767b1fa656d4cceb94ea4a7633fa611f715609d1da6cd6d87792140d159376c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO, unused currently \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e57d4bed24c30297e2713f7092c31dda408fb38f9c5a45a0b3a43ecaf0d178"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: could re-use the allocations in all these command buffers \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b1ca1c2a77ad7f646ebbfcbad261889a7d8dde5e6800a90d084a64318c351e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: what do we do here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/command.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"73550478db7f3a3abcf9d6413a53b71656fb918680101540ff73e2a0d1af6544"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: may also be required for other calls involving \u0060buffer_sub_data_u8_slice\u0060 (e.g. copy buffer to buffer and clear buffer) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f296b31db55c97fdd6fdf0da3274fa12a222fd177a3d7f5453db50d48be453"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: do we need \u0060glow::MAP_UNSYNCHRONIZED_BIT\u0060? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f825efbeab821b6e0851a98647755e06d3fce73f2eb432dd2b6714d3ed396b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: do we need to do anything? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ceb2b7f478c7090f38d5100f2800073666ddfb8f87ebd7c77663cb6803999d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: use \u0060super::Texture::target_for_view_dimension(desc.dimension)\u0060? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"7784cad38cfbdad602348fd092ef3e02994e7af8f6b84ec9320f14477e58551d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: EGL_SLOW_CONFIG \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a93bb4035055c3dfb48a764d85f7ba94adb540de802c954979dcdfdb75a46d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: include diagnostic details that are currently logged \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"46689d846620387b4963e8b5d70f8c472fb1d7233ab4abd04f77de737848a516"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This extension is also supported on EGL 1.4 with EGL_EXT_platform_base: https://registry.khronos.org/EGL/extensions/MESA/EGL_MESA_platform_surfaceless.txt"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"04020820c9d9d2734f5acf1882792a06005e403e0d6661215ce403603bb2b1c8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should we unset the current context here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/egl.rs"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"357b623204ede6497c1280fec5531216f6a8340b1519d5aa7cf93d1952dacf4a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: array layers \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/mod.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"593ea31b14e650e692a47d0db24db2d2e28acab8bcd6115e81d9d270e3991f6f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: we would have something like \u0060Arc\u003Ctyped_arena::Arena\u003E\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/mod.rs"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa681d7198fd85ce407bbdf9133de0a6ec3f561bfe199a378243f179d086dd34"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: handle GLES without framebuffer_texture_3d \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/queue.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"483c5a11caa75b4392b809e7ae1b9a1a09c829393bffb6cdd273fc88f16d1835"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We can get these SendSync definitions in the upstream metadata if this is the case \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/wgl.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94ac222a56e08debcf3acbc8406e4eb1cfd83b7d4ca8af9e1fafd4645c05a98"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: API should be redesigned to avoid this and other descriptor copies that happen due to the dyn api. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dynamic/command.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"5528cbf76903a68e79e305cdb85517fbb92d868aa6d69f71b6a469ef017d7628"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: in order to expose this, we need to run a compute shader \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/adapter.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec593e2a2ced93f9170e03bbbb81e35bca3a44f16ee6092168b7b420f91446f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Determine if IPresentationManager is supported \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/adapter.rs"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"1482ff9ec87e57782b47745901b5e9ae188340d56ad54984d8819f655790d721"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: investigate why tests fail if we set this to 0..1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd64abf6562da8905c807cb1050fd83c8290152f5e86903a74e770a884e480a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Is an error expected here and should we print it? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"761e927d1baf265e82fad77169f2dedcb7ee91c1f88be8a9c70c742397cdc5e4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is the same as getting build sizes apart from requiring buffers, should this be de-duped? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc47d9c2b2fda50c44b6b78bcaec482e693ed88467f6040c9b40620622baffb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is not very optimal, we should be using [enhanced barriers](https://microsoft.github.io/DirectX-Specs/d3d/D3D12EnhancedBarriers.html) if possible"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/command.rs"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf2de2a6582e33348448d23156f5f308b81e1f0b67f425459aa6b87af42c1aa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: reuse the writer \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d9437c9893b49f357378dae27e3375e52ccb90fbe0151c782dd9613673a575"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: 0 for subresource should be fine here until map and unmap buffer is subresource aware? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b201766848ab10be78b7fefd9d2dff80bf734947fbba5ecf1b296cf574dd04"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: double-check this. Documentation is a bit misleading - \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40707f97462aca547215254197accb4b37ccf47691c3a2bedb4be2591144aaf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: put lower bind group indices further down the root signature. See: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"7433c050b2ccbf6a067c4faaea00cf32f23b08622e4661a5a7546744890491dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/9865): There is not currently"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e4a2575d8324455eff091aa60190ee393cd04f454df9bacc9ab8fb330e2624"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: when moving to enhanced barriers use Direct3D12::D3D12_RESOURCE_FLAG_RAYTRACING_ACCELERATION_STRUCTURE \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/device.rs"},"region":{"startLine":2724}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a790cb15f76ef553d5e4902d576a6408950f686f82c2dcf7fb6a15b860635e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Generic? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/mod.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a762b95b2cfe3a26300d8faede356bf9bf4e825d5f267379ba64aa64fee0dc1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We\u0027re not given ownership, so we shouldn\u0027t call HANDLE::free(). This puts an extra burden on the caller to keep it alive. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/mod.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1cf1895f2eb9199284b69e0da27ddfc660a5b5ad4a2bb534646e9c7e5e4741"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Drop order frees the SWC before the raw image pointers...? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/mod.rs"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b90f0a5a2430d6c598ea906250db648d91b0f95743a778b0c56562b993d253c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/9865): Consider removing this."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/mod.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ad0f6484ccdd24eddda3e84fb9ba72cc4c1282c0d706aa24ee77fb3f46e660"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Return GPU handle directly? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/mod.rs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51a3c73d9d9de66578eb035eabeba79dfdea56f771aae0b85c2ae32d98bec25"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Don\u0027t panic here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/suballocation.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b687e675c9c867dc7b4fa269af2ded7cefd05484b8e3b087e0c66aa642c76e6e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove this when compat mode is implemented, see \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/auxil/mod.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae928b50d41c21233f5a8c27c317c37806a9b1b0735e50d3e39450470b78aa7b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace with libloading API once supported \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/auxil/renderdoc.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c0540ca14c03b30d6df258079802099e20b5be237be31cba89fa0943d9e7b6"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: On WGL this should only be called after the context was \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/examples/raw-gles.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66f06a049d56fdd95d22222058572c2a20f9cfac1416ae9c7944fca654cbbc0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: there may be additional variants here that can be extracted into \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/binding_model.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e28ea6af9b46f5aa74508247d5654e899972ac07f54ea7e69b73392e71d9e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(#8286): Should expose timeout to poll_all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/instance.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60909341e168776e7d8824a60ce30eb32c012856c2a4854b9e67c4b61fe346e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Extract display from HAL instance if available? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/instance.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9218579914e036e6b82bc24cf07d33378cf48852a12fd6bf38178ceed8d16e"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: We must take ownership of the field here, without being able to pass it into \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/instance.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"a048ceb75df1dac886af4b5862309a454869e85ed748000572ab570588862cd3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Is it plausible that this would happen \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/pipeline_cache.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"385927cbe6884fbb8919f0dab758066a973116428f71ec2bba194eaa77ca692e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/9306): we are ignoring the transition"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/resource.rs"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1ba08432899239f822c9aef12af0f7d894d6b4335b1e722a7e5b31d3b84529"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: consider getting rid of it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/range.rs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69bd95adf4af21674c58eb72aee3d9c26de3498d9521c498d5df1081e7a5b6d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: randomized/fuzzy testing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/range.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32f59c45dd7c5d1223c18f165f2c0392b08547ed74d91d4c87cde9e84c603b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO(\u003Chttps://github.com/gfx-rs/wgpu/issues/5572\u003E): Resolve invalid"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/lock/rank.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b1258d0b8bf3bd742ed63658a967cc65e95558117af2900d252a159f7510d1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: move out common parts of write_xxx. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/queue.rs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e53f750d316ff79f09c614acc591d8d01788630158b09eeabdb38a16d9f4b3b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Tracing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/queue.rs"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"efde6923f37d96719b0b2c58f1edc2b8194a1435536f84d48d97aa51477d3e54"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(\u003Chttps://github.com/gfx-rs/wgpu/issues/8510\u003E): Optimize this."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/queue.rs"},"region":{"startLine":2305}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56384baf6b05a057c0aa7357665b5378d8cdfcdc419930d9ee2f3ab0c888a14"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/8491): fix"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":1942}}}],"partialFingerprints":{"codehealthFindingId/v1":"66376ae50ce22fb74c9024acba6e5ecc1f06b6a3fcc5c1830ff638e71cce9b35"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: check for wgt::DownlevelFlags::COMPARISON_SAMPLERS \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":2540}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfcc5534cc25125bf66f2c3592d077e15519789c2e288c19238d1d8289a2144"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: should this be combined with \u0060get_introspection_bind_group_layouts\u0060 in some way? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/device/resource.rs"},"region":{"startLine":2987}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce42ed3fe4b787940d5d29800567be7a3129206d1304520ff4735a1f96aa0da3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Only doing one layer at a time for volume textures right now. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/clear.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"facb7c71e055482b5faed07ba5dfae5efb858022a7bee3dcbd2303c734d2c8b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Could we attempt some range collapsing here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/memory_init.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f814906d52c6e769f0e30a588c7a4335ba4dfb5db001cbc1993ae2e79922e225"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: High-level description of command encoding. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/mod.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f0486adb5f8ad903cba1965813fb3ad34a4d47eab9b6079ea5bb51a25afd35"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Extract out the 2 error variants below so that we can always \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/mod.rs"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae67739f6c663dedfb32704d4a8f0ab6b12e7420a83290271c7077d1c58fd761"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(wumpf): by restructuring the code, we could get rid of some of this Arc clone. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render.rs"},"region":{"startLine":2305}}}],"partialFingerprints":{"codehealthFindingId/v1":"921095e7c7bdda0154ff43daee280accc29d8fbe0475be465b37c2530d536cc2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: use half-float to reduce the size? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/render_command.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b815d0c9e387bd8c68d0b1f9792f048d742bb71b266b92236ecb56834429c5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: try to avoid this the collection. It\u0027s needed because both \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/command/transfer.rs"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0045081d167e0de43c192376e5e34c77008bbe7d7d21cf13de4c1e2b37ee89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove this when an alternative Mutex implementation is available for \u0060no_std\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/build.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc47b2d72567dbef900ea95c14c373f8dd6ef03a289fa331bd4b9994265c065"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/8819): populate more fields if/when possible"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"534d5f046f74323cedce680856c6686b251a179d6fc72b8dba37de842425554b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: supported_backends should also include wgpu-core-based backends, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6d334e75323c1407f591630c64a51e666bac03f1e2597990be71ca1f3161bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: supported_backends should also include wgpu-core-based backends, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":1689}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c15b5ec8f3edc9508fd6e0c65f8acfb6a870e22842df5a0577fab345c50ea3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: support this check, return \u0060None\u0060 if the flag is not set. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a870833ee606da567876a94c5586be80cdf70bf1c4a5c17cce0092882631758"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This will leak if weak references is not supported. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":2830}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83fc6fa97616b255f081abea41adb8edf8fd191f2f03a41be2fa014de6a81ed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This will leak if weak references is not supported. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":2861}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcf3e2bade08fd3a7830fbec31330c4db804ad51f08bd2261647633f9b16ae5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: actually send this down the error scope \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/backend/webgpu.rs"},"region":{"startLine":2983}}}],"partialFingerprints":{"codehealthFindingId/v1":"279eead5f756278bfc10d5da873ef2beae6fed86d192edb0764d4c4f90cbf3ef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: missing map_state https://www.w3.org/TR/webgpu/#dom-gpubuffer-mapstate"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/buffer.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"03304bea13fdc93bb3b489c75d337ca48baed5671917738cc8bd9aa177b7dba8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Differentiate constructors here too? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/instance.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38528c0df7c0e22a64b5426af9fb7863ab03a2ea02eac148e57580210f27e60"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is potentially overly pessimistic; it may be appropriate to instead allow a \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu/src/api/surface_texture.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf2a0e14d27794c3998e5d7b3677ca2269357f57fbb1adccc6a670866eb1606"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Now that MAP_WRITE mappings are write-only, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/tests/wgpu-validation/api/buffer_mapping.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e92487243115ac0ea2a9af35fb51693600f81924ce9a1022263e1112dd6456"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Is the goal of these tests to ensure that zeroes are what is exposed to Rust, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/tests/wgpu-validation/api/buffer_mapping.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"26cdd1c88c55ef5718a244f8af65b2dbb1c4219c40035dbb2236c23f91aedb9b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: when support for mesh shaders in naga on dx12/metal lands enable those backends \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/tests/wgpu-gpu/draw_index.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"508456bac4b90459d271db0515be8d77ad8704758a646f332445caae500a0933"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/7781) revisit this"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/tests/wgpu-gpu/encoder.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd7d85d64bdf43bb4f0d69b87069603d47edfb55c56ed265c89ed571d67e112"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/9849): mask off"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/tests/wgpu-gpu/naga_capabilities.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f45a142cd01e1af3e0a4deceb7531794896bf66e97569d0af042999fd9dcd6b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/9545): \u0060wgpu\u0060 should raise an error"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/tests/wgpu-gpu/poll.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb69af5f304e88868a6352ee0dc912597bee2a72919df861c4fb31fba7858858"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: when naga support for MSL/HLSL mesh shaders lands enable Metal and DX12 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/tests/wgpu-gpu/primitive_index.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff8a564ce4795ca4e0d587c42825e0251fa157315ebd9c0bcd026a20ce2829d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //! TODO: Methods that take resources that weren\u0027t tested here: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/tests/wgpu-gpu/render_pass_ownership.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"861d7066cb783c9a7ce5df3fe324b61c5e658ceb285034b23f2036c244aa1978"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/8122): With \u0060tier1-texture-formats\u0060, the"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/tests/wgpu-gpu/zero_init.rs"},"region":{"startLine":2179}}}],"partialFingerprints":{"codehealthFindingId/v1":"535538e34b93d6d85835d874d54490d51798d4549c8147e342e996ca9355a726"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/8122): Add P010 (see above)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/tests/wgpu-gpu/zero_init.rs"},"region":{"startLine":2190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1df0e1f0239cf13f180a6c612a999510c93714d01e8a031c09400e271ca6a82"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // // TODO: Restore this with the resolution for \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/tests/wgpu-gpu/shader/array_size_overrides.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70ffde7cf5afa47261f1e7d6238f5d74d312ee244c4bcd020fcf5de5b9b001b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use div_ceil once stabilized \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/tests/wgpu-gpu/shader/zero_init_workgroup_mem.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95d8b59b5764ec59ce41694da847cb418eb6a1e8c336ad19650f08201baa2ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/src/report.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a5245d260c0af1f1e881f70af1bf6de9a986f4ba2e68fc5a04841f75b7b4de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/src/report.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"347f94b8ab4cea52c537a1ec83f3da14202f7919847f0cdd2408580ea1b93fc1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: re-use the validator \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/tests/naga/example_wgsl.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bc5b456bce07e8f5cda0345302158e2b1956250ed5bc492715ffd7abb04721"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK escape CR/LF if source code is in side. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/tests/naga/snapshots.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1a5e9f07c5784aec30456784df087f6bb57e1cfb750ad46bffadd04ea61b16"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/8153): Add tests for spans"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/tests/naga/wgsl_errors.rs"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"81055d90d1d691be51a47a0e752ca6e6164e88238f013d78426219cd605f247d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/8153): Add tests for spans"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/tests/naga/wgsl_errors.rs"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ce0c7b5ee10630a4e2f977f48ee0c0ed5d5e2aa419fc5930ae8267e6e0981f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Eliminate this re-export and migrate uses of \u0060crate::Foo\u0060 to \u0060use crate::ir; ir::Foo\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/lib.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05afdae00a07ea0bf4c0d0663bf1fecffd141cbe0ae801f008963b0e0d9891c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Yes, this isn\u0027t contextualized with source, because \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/analyzer.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"816357152693a0c1ad1d349f80146e1fd9e5ab7055e08ea51796e14b2ffc7ceb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: only allow one of these \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/expression.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71cc453c6d3883bfbe981fb87cf9e6700c4ded0431fa0c4da0ec2cdc572a40a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/9456)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/function.rs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f426379c3bd3f98f68245493c75b6dbbba4c99811387f97de567197d0c32bd6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/9456)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c780a823dd30820ec1a01f71c54c7cb8c72ba7c5c666d7cad660a2fcc8ca7f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/9456)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/context.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"d942c3b28b13d800ad3cd0256fc48676b3ce89ec684dbd96d55b7bfb12220f09"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/9456)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2444}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96067d04cd66b2fb2125d5d0f97811bea1cfa35915fef0edae43c8530abb9d9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: what errors should this be? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/handles.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d63f0b9d98642217038cdb08cbc432cdab7a05faa701c7a3752c1db6997ca3f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: internal error ? We should never get here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/handles.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8942056bd6083c112c15525e6689cba24656a08680eee9979a1f2313176432"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add span info to function arguments \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/interface.rs"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51637df85bb4b7a0b695c68a543377c9c51f2aee4163d0210803d386142bf5f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: analyze the model at the same time as we validate it, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/mod.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"219597f3d9e021724a12676e8a7f11e8d51124bfe16a8f33ddcb8dd143a66aaf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/8207): Consider removing this"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/mod.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"39942dcf6a71e1d491c00d3916c48b7192763709bdfadc21d3dc5d9c682dfe18"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/8207): Consider removing this"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/mod.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1deb480a51bd39934c5c1b18cece99bb8a3762b120b528386f3bd92da061dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: keep some EP span information? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/mod.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"e246ac952ed9077d2a28e6372e1f8bb8959dade7c5bd6084ee4ccdd972529575"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: this could be nicer. We want to allow some structures \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/valid/type.rs"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1bdebc90b92a699edef6c1a7c174b942dfc2efffc9c802b10ec6eb9d1955d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should a vector of i32 be constructible from abstract int? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d45ebfbaa89c11e6730a5434d1748939530e314880072d429b1f6fac3bfc71"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: just re-use the expression, ezpz \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acfb8a26eed628a05f4f8e0ddb378fb89bf4824bf5c172abd56395b95131625"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u0060round_ties_even\u0060 is not available on \u0060half::f16\u0060 yet. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/proc/constant_evaluator.rs"},"region":{"startLine":1655}}}],"partialFingerprints":{"codehealthFindingId/v1":"39acbfdd3adcb931efd3a24f6b50910db012cfa4685192e50127b49546369f0e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: should this be unaligned? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/ir/mod.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1458d3b42553e399b5d93888367a05ebe91fed5b16ad5c439d208993813e5a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: consider moving \u0060multisampled: bool\u0060 out \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/ir/mod.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6847917cc7c2d948abcf68ed991e5dcf3d78f1d7a88885558851605d48ef49"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: consider removing \u0060Clone\u0060. It\u0027s not valid to clone \u0060Statement::Emit\u0060 anyway. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/ir/mod.rs"},"region":{"startLine":2083}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd9074bc8be41a2441e3b7a517882eb58ffdac70ada115bd5afcfaaa1c93809"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: f16 is not supported \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/parse/number.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"44672bc06d9b58b37f915edc6ba76725090ad835cb65f81935e78f77aecac33b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace with try_map once stabilized \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":1659}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce1137d7c553d118fd516a21408c4223024182abecbf6d8f7d46a2ee5a2a381"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/8440): We shouldn\u0027t ignore the"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/wgsl/lower/mod.rs"},"region":{"startLine":2764}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fb7676eec35e68e9cbb24efa0321f3abf32da8d8ce601efd80fdd12899284d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: handle arrays and cubes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/image.rs"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b86af147785ff2de3d2ed639c92a0ed19b56598d1a3d7fe5be1870cb805e26"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: the SPIR-V frontend does not read \u0060NonSemantic.DebugPrintf\u0060 extended \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad95ca3060721c836958833fea97f6d263d09b43d618b20b9c0a0e8abd2921b8"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK if the underlying type is an image or a sampler, let\u0027s assume \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":2391}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c360b61d74768a629823906e39a835ed1f63421243ca1abb2c5cd6136d0ce5"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK same case as in \u0060parse_type_array()\u0060 \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/mod.rs"},"region":{"startLine":2472}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a59daaf234b15f341afbb24e05e09207d26946c929f7e41d73466aad4d4e352"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK \u0060OpAccessChain\u0060 and \u0060OpInBoundsAccessChain\u0060 \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"b110386fc8a17f5407e4cef8c4af8fa8445273e1ff7998c4277744af3c0c6e56"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: convert input and result to unsigned \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"9844ed1dee94c3251fe813439deeee0f08f2d68472c8a83d69755b132ee1e7ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: convert input and result to signed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"084d1cef0f4a5dbed2b095593133b4a946e1af026b3c0c1efa7dfcf6f42d7c43"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: https://github.com/gfx-rs/naga/issues/2526"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffe98c1ce31fe097cf847946b1ef8f6f777c8c92f858c359b73ce979e6b772c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: https://github.com/gfx-rs/naga/issues/2526"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bcedbd9cd929a300862a328327ebef52c5ac29dc3badc683da906421e81401"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK(eddyb) Naga doesn\u0027t seem to have this helper, \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":1976}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba63404b6ba47634bb7560e0c335baec3ea1c29dde1d58b5e88481461fe41f9"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK(eddyb) this has to go to the parent *twice*, because \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":2000}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00434613f81056ac788376f3ead8947b9360008acc5b1d972a67f5fa0fef7e0"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK(eddyb) since Naga doesn\u0027t explicitly track \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":2029}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e5bf4cb18ad057e5ffd60aa35fc34ef09e065d882efefe7ec5aa1f28db8f23"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Selection Control Mask \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2c6d3ee69ca6e84a5983a9aa2f6677592b1cdc7e371fd9230a5d4286bb2b39"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Loop Control Parameters \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":2261}}}],"partialFingerprints":{"codehealthFindingId/v1":"baadb084cdc74abe2aa13db7291df52d15f4a64ba4cd864cc4752ec79eb55038"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check if the source and target types are the same? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/spv/next_block.rs"},"region":{"startLine":2406}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f864cc86cd6e6e546515e959bb90324e7e5e55cc94758b619a0755034ce6d9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Encode precision hints in the IR \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/ast.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ad569e65d95fdf1a1a816da658a23c1c2f507eb26e3dd15cc61b6460e79c76"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: glsl supports using bias with depth samplers but naga doesn\u0027t \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/builtins.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84f47b0e711715407554f034f5c612e3a71134d91d4238b0dfe6383eedbc525"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: casts \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcc39dd031e7cfd28de6612f84f2e5ac5172c4c0a74d8a19bc1c5ef362c1536"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better error reporting \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/functions.rs"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e86d34e291e6905bfbe56915901e1342ca85f90d4e3647de4a010e68f9a171e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: handle error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/lex.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebb43f3daf81e3bac980f077c568e6202d3d65a06d2ee7e49cde512bd86e37c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Matrices array \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/offset.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b713ed63282b9a4c10e1b7a560e993dd5ea84ca1a10696129a0d26af1ff4c8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Row major matrices \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/offset.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a089926b027c63814953aec73b230b82ad79418d83d54495eba8b03c7b64b733"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Proper extension handling \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4389e6d6a3b0ce422fb7947d14434b50b8d0df9008d871c78205aa9f922f120"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle some common pragmas? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f5f1ebe6e37be396465fdb8f8fa805ca2ab64e7a5d0d920677d12ed63ee42f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check that the texture format and the kind match \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/types.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"894cd9f4f06f64388a434b161d5a87fb41f1ab2f5e3320d3793eb4d4aba640e3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: glsl support multisampled storage images, naga doesn\u0027t \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/types.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a9df97e25b7f8c0671c599fb4691ffbf8a92450aad8543aed93e1c3dd66517"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: glslang seems to use a counter for variables without \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/variables.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f13a939134ff08735bd0eb18c78d6b60cdf3e6679e37ef611fe6bda73710149"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: glsl supports images without format qualifier \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/variables.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6d6dea0e4cbaf6ab3ba70e8ccdf478a3fbd69be50c6f67df8945e9d2b165a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: declaration \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/declarations.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90c9b919a6cd2875075ae45d3dc32b4c68e97293303396647dc12ab13ae100c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Accept layout arguments \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/declarations.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"85133a2561eddae3810d57ed00565f3eb3a0d3ff7dd34ae88499579e05da5b00"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: type_qualifier \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/declarations.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"d480c29ebddbfa430eac1bc90a6934736e51cf69169c6fa0464d210804542a9c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implicit conversions \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/functions.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c8e3c949ddfa4b193a1ce27d76eeb613863ead02abd2a1458e352e8aaad116"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: These next ones seem incorrect to me \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/types.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7953953df5283571e91a722e7c772bde8a71dbccd89044c4d1bc39d82fd9dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We need a better fix for named \u0060Load\u0060 expressions \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/mod.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f8669b554f69ba9261975e0fe5c29945aa8013cee59968d8bb836ca14dbd79"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Error used only during development \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/mod.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25585b13b2156b7029b63ce621b7598f7dd194d54fad85f4e0682e80360f130"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Error used only during development \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/mod.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01c1b9e625ca30092f4da8a96610f5ef43f3d72ba745b2fcb6d2fa086ee3d87"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: copy-paste from glsl-out \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f5c9d41b5bc086516ac7d4cf8777ba065eb1d015d5422749be2fd412a69088"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: copy-paste from glsl-out \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9798e4c6c73b122efa47d803867fc27353940d235a1a6289953d524f93b0fd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: copy-paste from glsl-out \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"df692688721fa71bc2ece997aa0062d2e672e1dc6bf48b7af66303c74f21dda2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: copy-paste from glsl-out \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2424}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3eca84303d59ba17e54171d799710a257c495bf3e249bd8426a418ee9f4f98"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: copy-paste from glsl-out \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2434}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d32b3a6eafa8eab086ede4933a09e582fa14922109cc075050abccc24ee7396"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: copy-paste from glsl-out \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"565a20d5be54ffc1b63c60cef7b94209d17ae29d1a7998081f4e98daba64af24"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Obey named expressions here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"62063e3be85321c3e14783a9ec0c0b42c46c90a5b5de829cfcb2b36b89ed2940"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we could do the same workaround as we did for the HLSL backend \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/wgsl/writer.rs"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"823696b3675741827e491505329a6dc4df3f6fd1e8d64f1cc7f882f77f535d08"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: why not just rely on \u0060Fadd\u0060 for matrices? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c055926a8f81282e3481b875138751574378032ec7719934d464ad6f45a37126"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider using integer dot product if VK_KHR_shader_integer_dot_product is available \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab2d8435e9267311529c0f2a2736993d5abd835ccfe82150c092ac665980d4b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: support atomics? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":2967}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cc5e00d919e34a5fcfb88e979ac275f1a6b2de08c41bfb148493845e008b6b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK the loop statement is begin with branch instruction, \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":3793}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb844bc60a295445b4889eebf01bce543daf2db2b79835b1e540d553aef61f0"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: SPIR-V doesn\u0027t have a atomic subtraction, \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/block.rs"},"region":{"startLine":4055}}}],"partialFingerprints":{"codehealthFindingId/v1":"5629317168f963c405ff358dd114f33b0b4ffe9fdddb66ad59eec3689f60eddc"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: ///HACK: this is taken from std unstable, remove it when std\u0027s floor_char_boundary is stable \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/helpers.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebc636f74be17db53786054a491e7d2a52dcfc6de10418273ed22ea2f991414"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Branch Weights not implemented. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/instructions.rs"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"73be84a7e96581103e5ac65f730dfe9ff3446f2d9c1449fd508fd94413cb2cff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: convert most of these into vectors, addressable by handle indices \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/mod.rs"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad23cd2504bb4dd6ab88a4959fd674c1baa8f66dddd171637918ef7ed5541f70"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Move to instructions module \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f92de7a09dbbb9a85c560cdae0794ebaa5d48315fab77f8a595b9bcc0a00f04"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider emitting EarlyAndLateFragmentTestsAMD here, if available. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":1913}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2102e6da51d667ec84f5132c6f0127365efa48abe42bd11f4695013497db63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pass \u0060Some(zero_id)\u0060 once \u0060rspirv\u0060 ships a grammar that knows \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/hit_object.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8968fa93cf3ccf0982a9c7802381bd1d5508b4627349f2ab01a6e17cb3a48b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: perhaps this could be replaced with an OpPhi? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/ray/query.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb183d08f631d1e902a4043642107b111363c183d3228547e73d6415a720d091"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: figure out how to make this written as a function call \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/mod.rs"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d939966371307b22eea71fa527045f5773dfbff601b974adf57e1a11c0c9048"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check for misuse. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/ray.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"a221269931fca8a3416ab3d22df0cb82bfd02864233b1a2f3869c16e0b98d12a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: how to deal with winding? Is it by default the same as the other APIs? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/ray.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c7eb9403edfbe78fbfe10d8404d7ab124d2b035a22ec470b1bee851d118656"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: do we support Zero on \u0060Sampled\u0060 image classes? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a7e4caa5987a4473309a2a9e081ce06864023689c9c897099b6ccb68a4f3a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle undefined behavior of BinaryOperator::Modulo \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":2517}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43bdfafd7427e7fb7ed95664582b16c76a54edfb76724158272de8b7bc864fe"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: we are forcefully deduplicating the expression here \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":3759}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9c288ea9328aff0a8b3861f7177a61ddb409ef35af2dd42d87f6b71ff3028f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: we can postpone this till the relevant expressions are emitted \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/writer.rs"},"region":{"startLine":8536}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c2d488513bccf30935b9c36fe7a07a88bb5b12de4612b961292c25395260e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we could merge this with iteration in write_wrapped_expression_functions... \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b56452f27f1d5ae6937aeaa3c7e3c0c605f17e85f32a58bbbcd7d939a1537d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(#7109): asint()/asuint() only support 32-bit integers, so we"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf1899600afaa8395b76ca6191641b2ceb5a73d8f7a317570e1709272afc80c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(#7109): asint()/asuint() only support 32-bit integers, so we must"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/help.rs"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e361719783dd803989aa50ddd9c1045553b0cb638a505c9d55a79c19f77487b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: we could force fragment outputs to always go through \u0060entry_point_io.output\u0060 path \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0c693c1bfc1cf4d21b31367362b578faf076639a05fa28e9d65d2751ed4b0d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: can we narrow this down to just \u0060in\u0060 when possible? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":1996}}}],"partialFingerprints":{"codehealthFindingId/v1":"948851a48e5a974e32c1ac38b361f4406a92c16f66478083c7a0548054cf6dd3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(#7109): This relies on the asint()/asuint() functions which only work"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/writer.rs"},"region":{"startLine":4000}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbd6c33abd0f5a2f487197b5e1132863c53dc9663940f6448988df2123d79c1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: figure out how to map these to glsl things as glsl treats them as arrays \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/conv.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf59b1945c4ce93affa88781361d23d0383a58fb3a1f33bc00ea67ac323cb8d7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should this be user configurable? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c89d0a701f999fff716cc6a577e413c111b1ba6eb23085549a2e14738d5f46"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle clamp_to_edge \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2641}}}],"partialFingerprints":{"codehealthFindingId/v1":"73591f1f442c96a6bd2e120f9e6bbac47b31144bc1f4515815d2580de6754c94"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // \u0060BinaryOperation::ModuloInt\u0060 below. Remaining TODO: the degenerate \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":2980}}}],"partialFingerprints":{"codehealthFindingId/v1":"459f0edf829665b3d668e36992bae319245e38a30e30054db8c87379a0b2b036"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Is there even a function for this? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":4178}}}],"partialFingerprints":{"codehealthFindingId/v1":"363b37a43022a283e0c782f6b81e88e03566cfbc41aa8d6f34884821855c037c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: link to the beginning \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/dot/mod.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cdcad7def8557727d8a5a031f344e1432da2e938a30ce81ed056fb6b56459d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: may also fuzz the flags and capabilities \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/fuzz/fuzz_targets/ir.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be4df594fb5ab1379f96bde983a08c67742f16a3d30811ecc273703b6060a8f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Because naga\u0027s capabilities are evaluated on validate, not on write, we cannot make a shader module with unsupported \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/texture_arrays/mod.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee20537c3b34e9dcc97b0f610d85105f36bcd85bfb6ce5292b11eb34196e2025"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Switch back to full scans of possible options when we expose \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/features/src/msaa_line/mod.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8b78f7e29df4b54a1e8b03d6b4c3bf53dee102cfcac72d6178c1396d384f30"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/8649): implement when wgpu has architecture detection"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/adapter.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc29c27f996f335638dd66a000712ecf3ded4ae95352388e3230e805dd34573"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 17 files: The identical TodoComment appears in 17 files (19 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 19 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022// TODO(@crowlKats): no-op, needs wpgu to implement changing the label\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/bind_group.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e49a17a55c15e0f5646f8deb55f630c9bc4bdc340d647d32b7725033780774f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(@littledivy): This will extend \u0060OffscreenCanvas\u0060 when we add it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/byow.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ec59e05b47d8f266b4d112cfb56c5129848c9a3a5ae8e229e481d68ebddc9a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(wgpu): needs to support retrieving the label \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/compute_pipeline.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92515ab4973d8a2a4880db9fefeb45183e19593dea12af24b84744cc4734ea7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(@crowlKats): consider adding an unreachable value that uses unreachable!() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/error.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7eee03ee0aca8f07db8fb4f6170fee97fd4e6255b2c83cc6532060a9074ee42"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(@crowlKats): weakref in texture for view \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deno_webgpu/texture.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fff7ae70336e7f25d47713ae019552877c3b6448ad3075bfdb6494be3406d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: as of writing llvmpipe segfaults the bindless benchmark on ci \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benches/benches/wgpu-benchmark/computepass.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4456b56317596e8ea0a77148a4dbef8d7aa91828d95a62a6ac9358b522d953"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(https://github.com/gfx-rs/wgpu/issues/9849): Currently broken on Metal"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benches/benches/wgpu-benchmark/computepass.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"575b7b546020bbe5495d30fb0016059bd0be6406fef4b2a70b3675cba6476dcb"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060wgpu-info/src/main.rs\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-info/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8bfea7b98851d43fe3e80e4014f4d3c309a4e7211e73b6bab2783bdbb418aa0"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 5 of 24 project(s) overshoot their size bounds, lowering Project Cohesion to 5.8/10. The most over is \u0060naga\u0060 (114495 LoC, 406 module-visible types across 26 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"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":"5b70d6e68c313ead3ea5db3b9e8c95a3a75a56a35e5ec99afe941552addf1bd6"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e200417c9f27357e41ee6312bfb69618866ebca5671b7713087ac36d3d61cdb9"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df5e270e14d2f172bc076e967dab05adc12b58e7955c91f4d4453bd8c881f792"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b256bac905d2bb97ec15cc788b6a06e1f7853467d8488ae9b7dd3956413c9178"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a4220d040ef719953547bea9fc0d48d2c7ccc852e34fa3053ea10f56dfe511ec"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"426c9de08219a33b961f57f29175ac5da6b24a7b559f24db25664f0fc7ec6c95"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7f30d384c201c7596d66830c3f93531f8f71c0973fa32e20ca2ff0c70c628d5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a5c06053b23c9a333ecf8fd2e021351dbd792a44f1ca7f8d5de7578455e0e8e6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e7c988028aab61695d0752639a15e204342daf085df4a54ebb1c5d106e66e089"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c1eafe0bd444f339aeb67b6108d2b1f26014c2c61d10cd336c826d90d9c4f44f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"829cb239b8d0a33d2e269b47fccc4c43764b182291e3484fae50bf7a4cd62008"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7dbaa2d44fddb243d707a63fa43db226c7b505f034509635454c95c80591938c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c74a1d368ff8b90160f47581bb9f2812a41e0d289e76baecc0eb0f2fcd6edaba"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0fb2e4a6a22d4f9649647c41ea105fd3e734f993c03ef27d2b8d03790fd0f90e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1ff4e3a4fdcd18b4e860cf5c4c882d90954ffc69e0fb8754ef4d7e5077db7564"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a67ad7dfb83b43c09a831eaecffde30cc73683b9fd0b7fdbdd211d4e52a40b7b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf4c8eee09a97b6201364d657eed522a0084dd9c6b6d7bf40fb6f5fb5b1f4d53"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d384df0c599e3695b40286953c43e9923a2efbe1bbb6df24648637773143e1b5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f8dc949b20522e45f1fa929021dc140ee99df5152f3c7e9d8cd3c7b529fc1ef"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4bd6b6abbf39be70d43f20c0303c3f079b8ea52bbc85ba86c5bfe5af2cbc6496"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8750074d2e20406a4b90093c70a4940c4512a95b88c1d3eed37c4040efe3573d"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"5922a5beeab5ac077ffb485a783ad545036e79b56239f83da38f3fb84336b113"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","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":"c356dafc2d2f879539349393edf47ceccc3e0771bf15e4dae816abd8594fd25c"},"properties":{"dependency":{"package":"ttf-parser","version":"0.25.1","advisory":"RUSTSEC-2026-0192","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d3f6b0dc7d0843f1539cb8274e739376fd4b1be6c39d73c3f6b7e78cb5af4d8b"},"properties":{"dependency":{"package":"unic-char-property","version":"0.9.0","advisory":"RUSTSEC-2025-0081","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"610868c659b2bc4a0ea5bd7cebeddb1d8961b8ebb7c9f31dcc75e07badfe1d8f"},"properties":{"dependency":{"package":"unic-char-range","version":"0.9.0","advisory":"RUSTSEC-2025-0075","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9a9761ad8cbbcee9fd4b4bb09fc1e6e6977230d7588402bc8497b52c5027e99e"},"properties":{"dependency":{"package":"unic-common","version":"0.9.0","advisory":"RUSTSEC-2025-0080","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"355ee9fdba8596d452516a609f795a54a5bca0f7ed0289c67e6ddbc4bddd9ada"},"properties":{"dependency":{"package":"unic-ucd-ident","version":"0.9.0","advisory":"RUSTSEC-2025-0100","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b269e07aa3d9bfb90d59d794c0e6a0b7849b288910031fdd0fe253514c3af463"},"properties":{"dependency":{"package":"unic-ucd-version","version":"0.9.0","advisory":"RUSTSEC-2025-0098","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"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":"4975822701b3b96654c82dada9bad969e348a6adefa52cd3bba1b6cfd71c3bb7"},"properties":{"dependency":{"package":"bincode","version":"1.3.3","advisory":"RUSTSEC-2025-0141","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d885a6c3524cf72fd5a2ed03e9e79b3e2b2b4c2a38e5f00b3f7bb7e4044b710"},"properties":{"dependency":{"package":"bincode","version":"2.0.1","advisory":"RUSTSEC-2025-0141","reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/hlsl/storage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d43717d357d42b519cf6a9e7e3dae22e2b7eae989cfb711b84c806f6f373f1f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/declarations.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e9faa92e425b7dae995f75233d66c1502371aba790a9556dc89286c4f8a004"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/parser/expressions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca70e5e3679645d3b0288aac4dffc7e117731c0a70653c2e29da25fdc68c246"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 20 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: naga/src/front/glsl/parser/types.rs, naga/src/back/continue_forward.rs, naga/src/front/glsl/ast.rs, naga/src/front/glsl/lex.rs, wgpu-hal/src/dx12/descriptor.rs, naga/src/front/atomic_upgrade.rs, naga/src/front/spv/convert.rs, naga/src/back/spv/subgroup.rs (and 12 more) (23 orphaned of 382 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; 382 of the 469 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":"naga/src/front/glsl/parser/types.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35cc6f2c25684f1a22aaf23a1eaf51e7f0f7b581b1b088c188e8a739fc8cfb73"}},{"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":"naga/src/back/continue_forward.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3045be85b882a8a8bb1b0eae4bdc9095aa2a9667cee14b6bb23dafc73e2793d8"}},{"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":"naga/src/front/glsl/ast.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fda9049ef5afc439f6993912cf60baaf9c183a490dde228de3744389258514"}},{"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":"naga/src/front/glsl/lex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b99f73592b65b09831af82edb42ba34aa7c53af217dd0583fe90a12d1cd70f7"}},{"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":"wgpu-hal/src/dx12/descriptor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"952150e72bc00ca4a542cb68f5492b404bb89e9a0a8bae8ce66dd86f03e5b074"}},{"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":"naga/src/front/atomic_upgrade.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b6ed513e9540a68dfadd3c1dcd408c4ccb355bf9bd2daea0a6186a796cf977"}},{"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":"naga/src/front/spv/convert.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef6f7a94f0dcb2a3376b8641a5f38359864401795c25b7ebb3325a2a00a0b7f"}},{"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":"naga/src/back/spv/subgroup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c0fda189520ce2e37b2b03de55c3bf296a800992e852411ae17bda44d532f1"}},{"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":"naga/src/front/wgsl/index.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ec269d3897a4ab4ddf9f37bd6cb872dbf60da4ef86f102c3c1dc0d61289cbe"}},{"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":"wgpu/src/util/encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f89b3af54d14ab23af1e342882b8fc65e11d2a7bddb7121e7c75dfe2c6efe41"}},{"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":"naga/src/front/glsl/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca56ca78f09735d8bb725aeec4a7ae6af16c4e17ed156875cce3f7b8a64f440"}},{"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":"naga/src/front/glsl/offset.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffa7acba88fdddf8e0aeefd4dac90755f4131c0f1452e45bd3545fad048d5e4"}},{"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":"wgpu/src/util/device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdfa1df16b43e068bbcd30360368dc54709a9c1be5ebbf34408e6ce023fd512"}},{"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":"xtask/src/test_wasm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16645584252b68ca10d68f21ca13c5bf9c2230c5c3dbdb7f25474ba6fe416a9a"}},{"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":"wgpu-hal/src/auxil/renderdoc.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf5b072a8129a2d55199ac84beb48699d581afc203e4b45a065a559665be3ea"}},{"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":"naga/src/valid/compose.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"287413eb3f8e89b7a6fee384b8d8c87ba8782602d9f0b2eddb2aaa5c0547addf"}},{"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":"naga/src/back/msl/sampler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01aa3d7d386ce68b7de70bcd3b6ed9bc70c4953b1809d6ffdaff110805eca8a4"}},{"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":"naga/src/ir/block.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f794d79b8f8feb1719cf8b7d2cf7842dcd7462ba54d0861f70063e112acbc643"}},{"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":"naga/src/back/spv/f16_polyfill.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef928e1f3f74aa8ab25873a40678c73c6ccc54ae6b5a3992c75dcd389517022"}},{"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":"wgpu-hal/src/dynamic/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87f21a52474a2bede45cf5cc120739f75ccba49f56d9a2a74e71632c69ba5a9"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: adapter.rs \u2194 human.rs: \u0060wgpu-hal/src/dx12/adapter.rs\u0060 (context wgpu-hal) and \u0060wgpu-info/src/human.rs\u0060 (context wgpu-info) sit in DIFFERENT parts of the tree yet change together 68% of the time (15 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 15 shared commits counted here, the most recent 3 are \u00609920c99c\u0060 feat(core): add \u0060Limits::max_storage_{buffers,textures}_in_{vertex,fr\u2026; \u0060995ee7b3\u0060 add \u0060Limits::max_buffers_and_acceleration_structures_per_shader_stage\u0060; \u0060c841633b\u0060 Bring transient attachment in line with webgpu spec (#9568) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab958e15eccc3d21feea4b6e5a465c46a67ce8b7158ffec67f7ee10039bc1588"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: adapter.rs \u2194 human.rs: \u0060wgpu-hal/src/vulkan/adapter.rs\u0060 (context wgpu-hal) and \u0060wgpu-info/src/human.rs\u0060 (context wgpu-info) sit in DIFFERENT parts of the tree yet change together 68% of the time (15 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 15 shared commits counted here, the most recent 3 are \u00609920c99c\u0060 feat(core): add \u0060Limits::max_storage_{buffers,textures}_in_{vertex,fr\u2026; \u0060995ee7b3\u0060 add \u0060Limits::max_buffers_and_acceleration_structures_per_shader_stage\u0060; \u0060c841633b\u0060 Bring transient attachment in line with webgpu spec (#9568) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/vulkan/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d087f0f919248f0fb12bd9e0d720424978ebd7e296edbc23461a45dbbf85edfd"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: conv.rs \u2194 lib.rs: \u0060wgpu-core/src/conv.rs\u0060 (context wgpu-core) and \u0060wgpu-types/src/lib.rs\u0060 (context wgpu-types) sit in DIFFERENT parts of the tree yet change together 66% of the time (37 of the 56 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 37 shared commits counted here, the most recent 3 are \u0060e7fcb948\u0060 Make multi-planar textures renderable (#8307); \u0060f0209e3d\u0060 Add support for transient textures on Vulkan and Metal (#8247); \u00601c43ac2c\u0060 Additional validation of buffer-texture copies (#7948) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/conv.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57d18126efede77a0c694ed471cb2f0ca03ddfa5aef8fc607de629b2bbe197b"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: human.rs \u2194 webgpu.rs: \u0060wgpu-info/src/human.rs\u0060 (context wgpu-info) and \u0060wgpu/src/backend/webgpu.rs\u0060 (context wgpu) sit in DIFFERENT parts of the tree yet change together 64% of the time (14 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 14 shared commits counted here, the most recent 3 are \u00609920c99c\u0060 feat(core): add \u0060Limits::max_storage_{buffers,textures}_in_{vertex,fr\u2026; \u0060995ee7b3\u0060 add \u0060Limits::max_buffers_and_acceleration_structures_per_shader_stage\u0060; \u0060c841633b\u0060 Bring transient attachment in line with webgpu spec (#9568) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-info/src/human.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac988d1deece78a96e1d2d4383a512540dcb0ee995d0c85475c8f78b5d9dda17"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: adapter.rs \u2194 human.rs: \u0060wgpu-hal/src/gles/adapter.rs\u0060 (context wgpu-hal) and \u0060wgpu-info/src/human.rs\u0060 (context wgpu-info) sit in DIFFERENT parts of the tree yet change together 64% of the time (14 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 14 shared commits counted here, the most recent 3 are \u00609920c99c\u0060 feat(core): add \u0060Limits::max_storage_{buffers,textures}_in_{vertex,fr\u2026; \u0060995ee7b3\u0060 add \u0060Limits::max_buffers_and_acceleration_structures_per_shader_stage\u0060; \u00604bbed407\u0060 add \u0060max_bind_groups_plus_vertex_buffers\u0060 limit \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"373c605d77e205b311c64e406e015a78fed9e8988a80d0ae0a2b2a0f175f1a44"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: adapter.rs \u2194 human.rs: \u0060wgpu-hal/src/metal/adapter.rs\u0060 (context wgpu-hal) and \u0060wgpu-info/src/human.rs\u0060 (context wgpu-info) sit in DIFFERENT parts of the tree yet change together 55% of the time (12 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 12 shared commits counted here, the most recent 3 are \u00609920c99c\u0060 feat(core): add \u0060Limits::max_storage_{buffers,textures}_in_{vertex,fr\u2026; \u0060995ee7b3\u0060 add \u0060Limits::max_buffers_and_acceleration_structures_per_shader_stage\u0060; \u00604bbed407\u0060 add \u0060max_bind_groups_plus_vertex_buffers\u0060 limit \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/metal/adapter.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b3940fa11b4534f39471c05c62a2b5d03fb301fd1b72c6775426698bd262ce"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: dispatch.rs, draw.rs, mod.rs: 3 files \u2014 \u0060wgpu-core/src/indirect_validation/dispatch.rs\u0060, \u0060wgpu-core/src/indirect_validation/draw.rs\u0060, \u0060wgpu-core/src/timestamp_normalization/mod.rs\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/indirect_validation/dispatch.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf91e19c6fdb3b5261e3d94bdacce936781279e8e167aab5f115a14840149e2d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: buffer.rs \u2194 texture.rs: \u0060wgpu-core/src/track/buffer.rs\u0060 and \u0060wgpu-core/src/track/texture.rs\u0060 change together 59% of the time (30 of the 51 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 30 shared commits counted here, the most recent 3 are \u0060fc1aa76b\u0060 fix(core): Don\u0027t use \u0060{buffer,texture}_init_actions\u0060 for usage tracking; \u006062c2f5da\u0060 Move ordered usages to hals (#8924); \u006071820eef\u0060 Fix performance regression in bind group processing (#8519) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/buffer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab879d0a4e2ac8866c66c8ec4b6f0aafae8e645bdc7cebc2ab7dc875773ba63"}},{"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":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"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":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"ruleId":"D44","level":"warning","message":{"text":"End-of-life runtime: Rust 1.96: rust-toolchain.toml declares Rust 1.96 as this project\u0027s toolchain file, and Rust 1.96, superseded by 1.97 on 2026-07-09 (the Rust project patches only the current stable). An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-07-09 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust-toolchain.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d8e9b51cd4b2493b326110bfe409c9598039c510d25150fcc40f653a675ac1"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: wgpu-hal/README.md links to \u0060vulkan/struct.Api.html\u0060, but \u0060wgpu-hal/vulkan/struct.Api.html\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":"wgpu-hal/README.md"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e462f1dce31559c5ce4610ab262081fd5b8041ab411b298f455caca4f82b5a"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: wgpu-hal/README.md links to \u0060metal/struct.Api.html\u0060, but \u0060wgpu-hal/metal/struct.Api.html\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":"wgpu-hal/README.md"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eddd443c80ee87f86ba2496c3a322c4427b47b3b3b3baa843bb7297cb5d182f"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: wgpu-hal/README.md links to \u0060gles/index.html\u0060, but \u0060wgpu-hal/gles/index.html\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":"wgpu-hal/README.md"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e9e8ed8ff358083c6ffd6a8f14979e6f04d2824ff8f8485b2e20fa14531c38"}},{"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 11/13 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060lock-analyzer\u0060, \u0060naga/fuzz\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!continuing.is_empty() || break_if.is_some()\u0060 appears character-identically in 4 files \u2014 naga/src/back/glsl/writer.rs, naga/src/back/hlsl/writer.rs, naga/src/back/msl/writer.rs, naga/src/back/wgsl/writer.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/glsl/writer.rs"},"region":{"startLine":1854}}}],"partialFingerprints":{"codehealthFindingId/v1":"c438b57d7348c778f9bb9bb8c3fcb390c99b1f69b8b009eb84eb226758bce34c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!version.is_embedded \u0026\u0026 (version.major, version.minor) \u003E= (4, 3)\u0060 appears character-identically in 2 files \u2014 wgpu-hal/src/gles/device.rs, wgpu-hal/src/gles/queue.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0db49d3c5e7c3eb45a0f60a905363d8e5381a07381ceff387a0d1f99820bea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cfg!(debug_assertions) \u0026\u0026 level == log::Level::Error\u0060 appears character-identically in 2 files \u2014 wgpu-hal/src/auxil/dxgi/exception.rs, wgpu-hal/src/vulkan/instance.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/auxil/dxgi/exception.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3978359881fba1afc1964ce11bb370abae8f38712764bfef12f76a1fd86294b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ep_index.is_some() \u0026\u0026 ep_index != Some(index)\u0060 appears character-identically in 2 files \u2014 naga/src/back/spv/writer.rs, naga/src/proc/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/spv/writer.rs"},"region":{"startLine":4003}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae774f2f960349190648076afc8d934fc1e05ce67ace8300ccae01b3c2612b7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060left_columns == right_columns \u0026\u0026 left_rows == right_rows\u0060 appears character-identically in 2 files \u2014 naga/src/front/glsl/context.rs, naga/src/proc/constant_evaluator.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/front/glsl/context.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcb43643e852d8d228427e5f59535660e3469bea0746f9a1cdffc3cbdbcb059"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.any_exclusive() \u0026\u0026 self.bits().count_ones() != 1\u0060 appears character-identically in 2 files \u2014 wgpu-core/src/track/mod.rs, wgpu-core/src/track/texture.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-core/src/track/mod.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"87da6ea5f23a64c0f6bdc17fd3dc3a27439b00652b58d9037ee53ad3886105dd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060var.space != crate::AddressSpace::WorkGroup || fun_info[handle].is_empty()\u0060 appears character-identically in 2 files \u2014 naga/src/back/msl/mesh_shader.rs, naga/src/back/msl/writer.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"naga/src/back/msl/mesh_shader.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75311452c8b37083c74d4aed71906b20691d5196c2101022e5ef4f39a7594e2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060destroy_render_pipeline\u0060 turns every \u0060Err\u0060 into \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a97acde8641219257e1228f937da55fc2a58f2accd0d36a10ac42bca5cf911"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060destroy_compute_pipeline\u0060 turns every \u0060Err\u0060 into \u0060false\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/gles/device.rs"},"region":{"startLine":1729}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c082427399bda6671d13896fec209f40b82f00ef426fc67b9beadd79c63308"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060get_adapter_pci_info\u0060 turns every \u0060Err\u0060 into \u0060String::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wgpu-hal/src/dx12/adapter.rs"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ed23d24582b8f63ef2eccb1c79124b874abf015bfc89989761845d0c1f631c"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060extensions.contains(\u0022GL_OVR_multiview2\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060extensions.contains(\u0022GL_OVR_multiview2\u0022)\u0060 also satisfies \u0060extensions.contains(\u0022OVR_multiview2\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":"wgpu-hal/src/gles/adapter.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"9039f5eee195a7dcca380224d28d72b7e84aaf5569bbd766d4f8d934ceda75e3"}}],"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-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-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-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":"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":"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-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":34,"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."]}]}