{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"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":"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":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"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":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"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":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"BmpDecoder::read_rle_data (cyclomatic 41): BmpDecoder::read_rle_data has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f676a8c76bf5f75e2ec62cea921dd19eeb536168458782b8cbf0eef90f5ab5f8"}},{"ruleId":"D1","level":"warning","message":{"text":"ArbitraryHeader::tuple_type (cyclomatic 29): ArbitraryHeader::tuple_type 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":"src/codecs/pnm/decoder.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"043ec93b0a2c4302957d013de753943061438e75f1a9426ae9b7f30277df3efe"}},{"ruleId":"D1","level":"warning","message":{"text":"AvifDecoder::read_image (cyclomatic 28): AvifDecoder::read_image has cyclomatic complexity 28 (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":"src/codecs/avif/decoder.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcede41784ab53873760a807dcae3287a9e64924a39752f08160ce3b80c2a935"}},{"ruleId":"D1","level":"warning","message":{"text":"AvifDecoder::process_16bit_picture (cyclomatic 28): AvifDecoder::process_16bit_picture 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":"src/codecs/avif/decoder.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"397cf262bbe9c30c25e9e3807751aa2fb29b04dd679f789db9701ac85e075311"}},{"ruleId":"D1","level":"warning","message":{"text":"BmpDecoder::read_headers (cyclomatic 25): BmpDecoder::read_headers 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":"src/codecs/bmp/decoder.rs"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcfc79621e7ecab8eca8181e4b50b32e51494d665b85ea2ec80a0907bd1f36d"}},{"ruleId":"D1","level":"warning","message":{"text":"HeaderReader::read_arbitrary_header (cyclomatic 24): HeaderReader::read_arbitrary_header has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs 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":"src/codecs/pnm/decoder.rs"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"685648469969c35340f163409cd6e63a85c8f57869c675d0cf2a0607f474de48"}},{"ruleId":"D1","level":"warning","message":{"text":"IcoDecoder::read_image (cyclomatic 22): IcoDecoder::read_image has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/ico/decoder.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfe2b2a8261b4191605c3d357eee06c493913c12f389ae44ab98ee6fa765a7e"}},{"ruleId":"D1","level":"warning","message":{"text":"TiffDecoder::read_image (cyclomatic 21): TiffDecoder::read_image has cyclomatic complexity 21 (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: TiffDecoder::reset_info_from_current_image (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/tiff.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc370ff0531bcef052520baabe1c97cba357fa234c6ef05e56e93d03754aaf9"}},{"ruleId":"D1","level":"warning","message":{"text":"BmpDecoder::image_type_from_compression (cyclomatic 20): BmpDecoder::image_type_from_compression 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":"src/codecs/bmp/decoder.rs"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a33f75839bb0a887a9a001ba8076ae40eaf18bb5ca7c95a0cc249f0574c923e"}},{"ruleId":"D1","level":"warning","message":{"text":"TgaDecoder::new (cyclomatic 20): TgaDecoder::new has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/tga/decoder.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"642c0fbbc28a386b40f6fd17da5697d2c86edbe48cb42ab7d26fb865ff8f2b39"}},{"ruleId":"D1","level":"warning","message":{"text":"image::imageops::filter_1d::filter_symmetric_column (cyclomatic 19): image::imageops::filter_1d::filter_symmetric_column has cyclomatic complexity 19 (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":"src/imageops/filter_1d.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1984573b740869d24054b892e23f8670670442ba3befc3b8a0a58bf2d109ffa"}},{"ruleId":"D1","level":"warning","message":{"text":"GifDecoder::read_image (cyclomatic 18): GifDecoder::read_image has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/gif.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f949642d37ab7e80ecb5c084f68e97d113d23fb65b47a56d0f8b0fea239462"}},{"ruleId":"D1","level":"warning","message":{"text":"HdrMetadata::update_header_info (cyclomatic 16): HdrMetadata::update_header_info has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/hdr/decoder.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"68538b479eca541964e690faf3c6ac65bedce4639d5caf47bbd973f9a12a0f35"}},{"ruleId":"D1","level":"warning","message":{"text":"image::imageops::fast_blur::box_blur_horizontal_pass (cyclomatic 16): image::imageops::fast_blur::box_blur_horizontal_pass has cyclomatic complexity 16 (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":"src/imageops/fast_blur.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a4efb85f8b5c1fb662aba851a23f74f5e11e81e823940a6dd020164d738a61"}},{"ruleId":"D2","level":"warning","message":{"text":"BmpDecoder::read_rle_data (cognitive 132): BmpDecoder::read_rle_data has cognitive complexity 132 (threshold 15). Drivers by points: if/else 23 (80 pts), loops 7 (31 pts), match/switch 5 (17 pts), boolean chains 4 (nesting depth added 93). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/codecs/bmp/decoder.rs holds 3 of the 22 functions over the threshold \u2014 including the worst \u2014 and 132 of the 369 points over it (36%), 2.2\u00D7 the next-largest file (src/codecs/avif/decoder.rs at 60). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"075aa4496576d6d47977af2e185ce0242c50134b64efe4e3bbd07d384fa31691"}},{"ruleId":"D2","level":"warning","message":{"text":"IcoDecoder::read_image (cognitive 59): IcoDecoder::read_image has cognitive complexity 59 (threshold 15). Drivers by points: if/else 14 (39 pts), loops 3 (15 pts), boolean chains 4, match/switch 1 (nesting depth added 37). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/ico/decoder.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"849d6f9c34b2c411c4423dd25cc4db768b7618801a6818d1f04d49b54aa5ba9b"}},{"ruleId":"D2","level":"warning","message":{"text":"AvifDecoder::process_16bit_picture (cognitive 52): AvifDecoder::process_16bit_picture has cognitive complexity 52 (threshold 15). Drivers by points: if/else 20 (38 pts), match/switch 4 (7 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/decoder.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c948c4513fb4db64596f3420ba2fb8bb51c4fa70dca456f64ce28c0e0d23804"}},{"ruleId":"D2","level":"warning","message":{"text":"image::imageops::filter_1d::filter_symmetric_column (cognitive 42): image::imageops::filter_1d::filter_symmetric_column has cognitive complexity 42 (threshold 15). Drivers by points: loops 17 (41 pts), if/else 1 (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":"src/imageops/filter_1d.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a6401237fcb972604f86f2b11c2dd80e624c6471481c640c39ed4effb3802a"}},{"ruleId":"D2","level":"warning","message":{"text":"AvifDecoder::read_image (cognitive 38): AvifDecoder::read_image has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 3 (10 pts), match/switch 5 (8 pts), boolean chains 4 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/decoder.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eee2cb836fb20af29160f0dc0dd2e5c3ad2f49ee16f1b3d99d53a0aaf682c4c"}},{"ruleId":"D2","level":"warning","message":{"text":"image::imageops::fast_blur::box_blur_horizontal_pass (cognitive 38): image::imageops::fast_blur::box_blur_horizontal_pass has cognitive complexity 38 (threshold 15). Drivers by points: loops 13 (35 pts), if/else 1 (2 pts), boolean chains 1 (nesting depth added 23). 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":"src/imageops/fast_blur.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"704e95d36488752aa24930fba8bc2f656e273234ff2bcd13b76c614a75d41b62"}},{"ruleId":"D2","level":"warning","message":{"text":"GifDecoder::read_image (cognitive 34): GifDecoder::read_image has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 4 (8 pts), boolean chains 3, match/switch 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":"src/codecs/gif.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"66769ee17dab2e9af45f2759b21c6523f1506405ee956817cc5188e26f5421d2"}},{"ruleId":"D2","level":"warning","message":{"text":"image::imageops::sample::horizontal_sample (cognitive 29): image::imageops::sample::horizontal_sample has cognitive complexity 29 (threshold 15). Drivers by points: loops 9 (27 pts), if/else 2 (nesting depth added 18). 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":"src/imageops/sample.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8bc5d58db18fda87cba31bac2117b90cb75c68b6f30c7ef2e70b8a41f47ca6"}},{"ruleId":"D2","level":"warning","message":{"text":"image::codecs::hdr::decoder::decode_old_rle (cognitive 27): image::codecs::hdr::decoder::decode_old_rle has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 2 (6 pts) (nesting depth added 13). Of this number, 25 points are the body\u0027s own statements and 2 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":"src/codecs/hdr/decoder.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a809d314e9203800c0255590466246be8a85cb7fed38ae0581ef84848979bbf"}},{"ruleId":"D2","level":"warning","message":{"text":"BmpDecoder::read_headers (cognitive 24): BmpDecoder::read_headers has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 4 (7 pts), boolean chains 4 (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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/codecs/bmp/decoder.rs holds 3 of the 22 functions over the threshold \u2014 including the worst \u2014 and 132 of the 369 points over it (36%), 2.2\u00D7 the next-largest file (src/codecs/avif/decoder.rs at 60). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"185ac7580af4278b52737b4cc9d0777f40a4e6c32b08de1a03aaea03748ecd0b"}},{"ruleId":"D2","level":"warning","message":{"text":"HdrMetadata::update_header_info (cognitive 23): HdrMetadata::update_header_info has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 5 (8 pts), boolean chains 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/hdr/decoder.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c187ba7f8e28bca0c23c3c6719ee1cc0bb51021b7b46a3ac080daca31bb95e9"}},{"ruleId":"D2","level":"warning","message":{"text":"TgaDecoder::new (cognitive 22): TgaDecoder::new has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 1 (4 pts), boolean chains 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":"src/codecs/tga/decoder.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb347a3b14a1acf150ef0044d2cb41b44a127d038ad85decd64cf455007d524"}},{"ruleId":"D2","level":"warning","message":{"text":"image::codecs::bmp::decoder::set_2bit_pixel_run (cognitive 21): image::codecs::bmp::decoder::set_2bit_pixel_run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/codecs/bmp/decoder.rs holds 3 of the 22 functions over the threshold \u2014 including the worst \u2014 and 132 of the 369 points over it (36%), 2.2\u00D7 the next-largest file (src/codecs/avif/decoder.rs at 60). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"34bddaea852756d6fb010560096a0a76d4bad3000887f5e673b2250908d34675"}},{"ruleId":"D2","level":"warning","message":{"text":"TgaDecoder::fixup_orientation (cognitive 20): TgaDecoder::fixup_orientation has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (14 pts), boolean chains 4, if/else 2 (nesting depth added 9). 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":"src/codecs/tga/decoder.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5defbe3b8bdfee2221f4044e75e77a9942977d2a3586b1982758f2a08c3bf95"}},{"ruleId":"D2","level":"warning","message":{"text":"TgaEncoder::run_length_encode (cognitive 20): TgaEncoder::run_length_encode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (4 pts), boolean chains 2, 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":"src/codecs/tga/encoder.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41ade7b03b4899c369a6b3792cc24948f8b8d32a99b3d5cee8ef63a80b674e0"}},{"ruleId":"D2","level":"warning","message":{"text":"image::codecs::avif::yuv::gbr_to_rgbx_impl (cognitive 19): image::codecs::avif::yuv::gbr_to_rgbx_impl has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (8 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":"src/codecs/avif/yuv.rs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3935199a12635cb95d1b36d7ceb9159f46f992f90754dfe40e5105419c88d07"}},{"ruleId":"D2","level":"warning","message":{"text":"SampleLayout::is_normal (cognitive 18): SampleLayout::is_normal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/flat.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"742a8797c0ba7b5c59577cbfcf64c56a0cdd9c468167bbf39abeb0c963a11206"}},{"ruleId":"D2","level":"warning","message":{"text":"image::codecs::hdr::decoder::decode_component (cognitive 17): image::codecs::hdr::decoder::decode_component has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (7 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":"src/codecs/hdr/decoder.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b238d761781d37685f3120e8ed7586a8e6a86c15def8dc6b16c1c41c184c00"}},{"ruleId":"D2","level":"warning","message":{"text":"HeaderReader::read_arbitrary_header (cognitive 16): HeaderReader::read_arbitrary_header has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 3 (4 pts), loops 1 (nesting depth added 4). Of this number, 14 points are the body\u0027s own statements and 2 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":"src/codecs/pnm/decoder.rs"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2a82fae97f1e1b25b1747ff8b14b0f109d62198cf3cb760d60c5467c35750f"}},{"ruleId":"D2","level":"warning","message":{"text":"SampleWriter::write_pbm_bits (cognitive 16): SampleWriter::write_pbm_bits has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/pnm/encoder.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"baed3ead6f1fe16875d9cc65de902a419f5f08d108ada819f3cbe878b12fd8fd"}},{"ruleId":"D2","level":"warning","message":{"text":"image::codecs::avif::yuv::yuv400_to_rgbx_impl (cognitive 16): image::codecs::avif::yuv::yuv400_to_rgbx_impl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (8 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":"src/codecs/avif/yuv.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc6c7aed1be8c3ef5d19fcda2b575cd24442f35f6c3a2c4f9a5ae7b4eb96be3"}},{"ruleId":"D2","level":"warning","message":{"text":"image::imageops::sample::vertical_sample (cognitive 16): image::imageops::sample::vertical_sample has cognitive complexity 16 (threshold 15). Drivers by points: loops 6 (14 pts), if/else 2 (nesting depth added 8). 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":"src/imageops/sample.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"d966ec0e70d76d6578ac5186d6f606aa109887b5db78cc07449898a4943d19dc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DynamicImage: TooManyMethods \u2014 115 methods. The bar is 30 methods; this is 85 over it, 3.83\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/rust.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/dynimage.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e69b4f5bf895c77113c37bc8f46bcfefc326797c93ec5f92f71dafed86d2f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bmp/decoder.rs: FileTooLong \u2014 1474 significant 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 974 over it, 2.95\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"513164b4c78893211c849e145dbff9854b8fd55eeec7a2a309730ba506f248e5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BmpDecoder: ClassTooLong \u2014 841 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 35 methods, 3 blocks, lines 1087-2474. The bar is 400 significant lines; this is 441 over it, 2.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"58020991b29a5ee4506cc7227b3897e155f99de68773dd6501af22039ee72588"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImageBuffer: TooManyMethods \u2014 63 methods, declared across 2 files: images/buffer.rs (60), images/buffer_par.rs (3). The bar is 30 methods; this is 33 over it, 2.10\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. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/rust.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/buffer.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d680b66c6895744626af40c5cc7f47b5503fd1e35e92851c34eaceb3cab8e4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DynamicImage: ClassTooLong \u2014 770 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 115 methods, 18 blocks, lines 73-1788. The bar is 400 significant lines; this is 370 over it, 1.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/dynimage.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c70d8cbb2aacbdfd849fa11fc98216fdb5119e8d2b45f2cc7c6777a1a9d7608"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: images/buffer.rs: FileTooLong \u2014 961 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 62% of them inside a single declaration: ImageBuffer (21 blocks, 492-1851). The bar is 500 significant lines; this is 461 over it, 1.92\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/buffer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"accc6dc628cc1baf15153543faee0458488304e79f0394fa5580faa8bee2c1b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: imageops/sample.rs: FileTooLong \u2014 918 significant 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 418 over it, 1.84\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/sample.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"240df0284958969c5564b1a65ebf1226abf2c01ba75c00fa66ee9012f8e209fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: images/dynimage.rs: FileTooLong \u2014 918 significant 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: DynamicImage (18 blocks, 73-1788). The bar is 500 significant lines; this is 418 over it, 1.84\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/dynimage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ff0ccd6c788b24d45ad92592d3cd0ec895853eb3831c54176a5da0e289cb12"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Moxcms.build_transforms: MethodTooLong \u2014 build_transforms 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":"src/metadata/moxcms.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd29ab11a424b67ee3152a51c9c730f56bf9b68fa0afadec428e5f15d7b43b50"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BmpDecoder.read_rle_data: MethodTooLong \u2014 read_rle_data 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":"src/codecs/bmp/decoder.rs"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb5d61d99e7f820a1348af4ac405fbc1ffa98cf94a8e613d4bfd646e7ece5d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: avif/yuv.rs: FileTooLong \u2014 765 significant 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 265 over it, 1.53\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/yuv.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff913eea6ee75b6f10dd37dfdf4e24ba27a0c8c156353f7689845b622b597e9d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ImageBuffer: ClassTooLong \u2014 598 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 63 methods, 21 blocks, lines 492-1851. The bar is 400 significant lines; this is 198 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":"src/images/buffer.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7d48ffc014898936c7ad8f5f67561b0be79d5898ad6eab8f21b5913e136acd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: image::imageops::sample::gaussian_blur_dyn_image: FunctionTooLong \u2014 image::imageops::sample::gaussian_blur_dyn_image 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":"src/imageops/sample.rs"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73d3c1131393883b911956e97c2d687a72c74bfed665c6c7b2069dc5b32f770"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CicpTransform.transform_dynamic: MethodTooLong \u2014 transform_dynamic runs 144 significant 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 44 over it, 1.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":"src/metadata/cicp.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aed2db503c5f5a0fb5c7d35bc73dd69c2e97a68df74dfb9f81b7966c22a9862"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: images/flat.rs: FileTooLong \u2014 713 significant 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 213 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/flat.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ead8997581b754cbb37a0a6f2c08a814453470486bd0617f16c5b1d7a79243"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metadata/cicp.rs: FileTooLong \u2014 709 significant 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 209 over it, 1.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/metadata/cicp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee06b6e7d1bed1e395aac442698d2190d10293a3d75cde1256fe3cf5fb976dc3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pnm/decoder.rs: FileTooLong \u2014 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). The bar is 500 significant lines; this is 157 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/pnm/decoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8952a4b0f6a78b201db4c36e0b5a070289799101dbfacb197c440096121e724"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AvifDecoder.process_16bit_picture: MethodTooLong \u2014 process_16bit_picture 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":"src/codecs/avif/decoder.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f31454f1d43bdd0ef293c8f21df2d78b34fd23d06ca2dcc3a2002915ff1447"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: codecs/png.rs: FileTooLong \u2014 632 significant 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 132 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/png.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13b2013addbf9adbc0c67131dfddff5ff16d7b50c1595bb076c5923db4928f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: imageops/filter_1d.rs: FileTooLong \u2014 595 significant 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 95 over it, 1.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":"src/imageops/filter_1d.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6072f2b62f2392da9c32257c2c24d33c9966e5a5172aa9d9983599e4639efd38"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BmpDecoder: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. This type is on a published API surface \u2014 a cargo-semver-checks gate in CI (.github/workflows/rust.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"45166333b278b97d0a1de16160d4dfa9000a0f6585253a11cb497b25637bf5fd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GifDecoder.read_image: MethodTooLong \u2014 read_image 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":"src/codecs/gif.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"470b821f564a92b27fcf30e063753908ca6c57fed9677f42bd9132e3330c9302"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/color.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":"src/color.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf436e8293835f56755419793c75c513701b0021b3f6359150e7273579bdff5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BmpEncoder.encode_with_palette: MethodTooLong \u2014 encode_with_palette runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/encoder.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cf3b479672115ae030c73b79d0aede90d74af0dd33f8d4e84f4dd1a3208823"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: avif/decoder.rs: FileTooLong \u2014 521 significant 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 21 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/decoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83385e656b57866beb9a198616d4bb9f7d19d05a626fcfd3eb6a75889d7190b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (35 shared lines): src/codecs/avif/yuv.rs:650-770 | src/codecs/avif/yuv.rs:871-963 \u2014 These two members are variants of one another: 35 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":"src/codecs/avif/yuv.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"400a435bf5b6d383d64a30ac5b52d06bccd33b9fde18b10d2c2a89d56639fa02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/codecs/bmp/encoder.rs:212-231 | src/codecs/bmp/encoder.rs:240-260 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/encoder.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e7c18907db4be24dae47b5d243d78427098f82b77a441cab5520fa2a020e5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/color.rs:728-735 | src/color.rs:742-749 | src/color.rs:756-763 | src/color.rs:786-792 | src/color.rs:799-805 \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":"src/color.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"4407fcf15a7f87fdbdf5f911c718e4c00c56f33d0c04da51c6d9759f9263d104"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/imageops/affine.rs:45-60 | src/imageops/affine.rs:70-85 | src/imageops/affine.rs:95-110 | src/imageops/affine.rs:138-153 | src/imageops/affine.rs:163-178 \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":"src/imageops/affine.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"023b716a8f56c5d3f73a6ce412cf889d62e83fa79557f7993b2d2d7c03dbe45e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/codecs/avif/ycgco.rs:105-179 | src/codecs/avif/ycgco.rs:200-284 | src/codecs/avif/yuv.rs:555-624 | src/codecs/avif/yuv.rs:1041-1118 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97629db00f23c7fa8881afcab3958767b4b4f5ae0aa599d72f4ec409fed8d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): src/imageops/colorops.rs:239-289 | src/imageops/colorops.rs:297-346 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"6392e47483f50386464a31bfd577bfbca00c5931f14a8dfdb08422ca9a72f066"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/codecs/bmp/decoder.rs:1919-1980 | src/codecs/bmp/decoder.rs:1983-2039 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":1919}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a09d4a671e7ac5d7bf83ebaca166cd67fd45a23f4d556d41b6c938a641f23a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/imageops/sample.rs:756-789 | src/imageops/sample.rs:803-836 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/sample.rs"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9715ef1e2ca8925659d6085eb47022b3c0ec242e39439176e2b3e4c2556c05e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/imageops/resize.rs:105-133 | src/imageops/resize.rs:136-152 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/resize.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97894ce525806025ce466258bb435b0fb249e6007cd4e4664e5d7e7af307510"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/io/format.rs:256-273 | src/io/format.rs:281-298 \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":"src/io/format.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f43e1cb5fdca9e9021a43c8940f89e9a5b8830f050e97716ba2bcf318ac2e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/imageops/colorops.rs:95-116 | src/imageops/colorops.rs:126-149 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"723e2939b2795d739346f028dfe0c5fd8e5372b7b1688c5f335500b1d1d8b08b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): src/codecs/avif/ycgco.rs:29-48 | src/codecs/avif/ycgco.rs:69-90 | src/codecs/avif/yuv.rs:522-540 \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":"src/codecs/avif/ycgco.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fe2b07f7b53416d306e7e11df00ca728ef86e113165dbb6e65e9f8ceb171b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/codecs/tiff.rs:342-360 | src/codecs/tiff.rs:362-380 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/tiff.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0342fe8db12be2e1544e59712902c36d6f535bcae472ab7ee79d47bfde4036c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/images/buffer.rs:1022-1037 | src/images/buffer.rs:1045-1060 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/buffer.rs"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3415f07d2fd9ab15d3401149efde68e4850b91d3d8ba7349686d3c43ffeed6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/hooks.rs:165-183 | src/io/free_functions.rs:146-164 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4c0e07fba268e01be08178d566f622141270a793ed82c8fcb77df1c5d394cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/images/flat.rs:705-730 | src/images/flat.rs:743-767 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/flat.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"a884b25b6f8c4a2bd5d30880a6114173f40e284506b8ab9a732bce30412901e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/imageops/mod.rs:261-273 | src/imageops/mod.rs:294-306 \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":"src/imageops/mod.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"03173cfa64023cade8bcf83d37cab0c6a9cfb16689acb6f6b2574326db749982"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/codecs/bmp/decoder.rs:846-868 | src/codecs/bmp/decoder.rs:876-900 \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":"src/codecs/bmp/decoder.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c53fc12773e35c0a73fd0a1efde8d83d014b2c475a0ea1d3b2216fad6581c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/imageops/colorops.rs:161-181 | src/imageops/colorops.rs:191-213 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea62cbd32e5c1440cc061793a64a987644337e17ae9a0e00b6277e03b25b9a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/metadata/cicp.rs:960-978 | src/metadata/cicp.rs:986-998 \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":"src/metadata/cicp.rs"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a52365525b79dbddb4325890e4099bc2b92f80c14324490d40b3cfbe989c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/imageops/mod.rs:189-206 | src/imageops/mod.rs:313-327 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/mod.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80c32e7123d01199347033fb6f9e8574c8ef9d4e261924566be84582f507646"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/codecs/tiff.rs:616-628 | src/codecs/tiff.rs:630-642 \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":"src/codecs/tiff.rs"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8bb8c805a6a88e3714c952c9e4670404dd7ef9b083be329f66e8477b0b68dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/codecs/png.rs:984-999 | src/codecs/png.rs:1001-1014 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/png.rs"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4046936226fe7c2700cb861b615e2267b430bd78abc93e266da4c6a3a4b18e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/imageops/fast_blur.rs:235-248 | src/imageops/fast_blur.rs:287-301 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/fast_blur.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcf8451efa2c5138da3957f6d3aae531f35766f53c3ddf9bd4b52b15af29205"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/metadata/cicp.rs:629-639 | src/metadata/cicp.rs:686-699 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/metadata/cicp.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc91901bde9b2caecc5e68437caf3265f4ceaec28234bdbb21ef5ab77b2492d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/imageops/colorops.rs:33-46 | src/imageops/colorops.rs:54-67 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d039f3aace8b7a368a62bcd2c3dcaf0bb1e2f79dca4b14b38c756b8c2330ea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/imageops/affine.rs:212-224 | src/imageops/affine.rs:227-239 \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":"src/imageops/affine.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d125849060144e396ec5c7f417fa98a0b67de4dc5b318697750a2731362d3cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/images/sub_image.rs:221-233 | src/images/sub_image.rs:257-269 \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":"src/images/sub_image.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1dd878e47bd070c2183f62af476c886b720380db8a9d7fa51fb32026db07c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/images/dynimage.rs:791-799 | src/images/dynimage.rs:803-811 | src/images/dynimage.rs:815-823 \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":"src/images/dynimage.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"4193b0ee7b0d226ea592272f1135cdde9375e50734a86dc13536a33631b4fde0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/images/flat.rs:630-646 | src/images/flat.rs:667-688 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/flat.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb91ab6d424a0fdd56e827ae5213cffa31b76b74fa41a4a0f8fba9cf24c3407"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/codecs/avif/yuv.rs:91-105 | src/codecs/avif/yuv.rs:112-123 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/yuv.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"37665cc7f9637a57f16ec723fea41bd1b57c835852c4aa769f661fe847e9304e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/images/buffer.rs:189-197 | src/images/buffer.rs:327-335 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/buffer.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2db34783144466aa0fb69d5d5b32bce8ac3527a7c9a69c70cb71af882630ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): fuzz-afl/fuzzers/fuzz_pnm.rs:8-19 | fuzz-afl/reproducers/reproduce_pnm.rs:9-18 \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":"fuzz-afl/fuzzers/fuzz_pnm.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecb9e9b72de1f48ae647c6e64028ad1cb04ff0c31ab1243e90bcada61fc1f5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/codecs/pnm/decoder.rs:889-896 | src/codecs/pnm/decoder.rs:900-907 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/pnm/decoder.rs"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"b940cb98c98929c9f6c75c895f5ef904099a91c89d78c1432e875c36a5a21718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): src/codecs/pnm/header.rs:193-200 | src/codecs/pnm/header.rs:204-211 | src/codecs/pnm/header.rs:215-222 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/pnm/header.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4a95902288b426e4223ea6122903f8e3375cfad4153a09ecabef3f4f0a79a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/images/flat.rs:1604-1611 | src/images/flat.rs:1623-1630 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/flat.rs"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac737d059b61876e58b44e2c2618abfa36d17416e487a3a277d6a1ade3381dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/images/sub_image.rs:140-145 | src/images/sub_image.rs:161-166 \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":"src/images/sub_image.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"75561cecea20a6744f2c63ea6f25aa3e0954eeaf7a74ece46749dbf1236a114f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/codecs/bmp/decoder.rs:2468-2473 | src/codecs/farbfeld.rs:97-103 \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":"src/codecs/bmp/decoder.rs"},"region":{"startLine":2468}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc451de7eb864b214a7faf34a2440f4813f1e1c84385183d75020227278d5c7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/codecs/ico/encoder.rs:161-172 | src/codecs/openexr.rs:331-341 | src/codecs/pnm/encoder.rs:345-355 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/ico/encoder.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"49327fb14be020ba6b2b06e88fac1a7a85e54f6a77dd2b56518a4cc7fda0fb19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/codecs/avif/ycgco.rs:300-320 | src/codecs/avif/yuv.rs:438-447 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cead0481c4a2cfb60a1213ae98748f61ab8172dacd9273660894b362ac77a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/codecs/avif/ycgco.rs:300-329 | src/codecs/avif/yuv.rs:786-795 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"af75bb4de543683d6e38f6b1636345e3db872dbc66a26cbb3088ec66db052355"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/codecs/avif/ycgco.rs:300-338 | src/codecs/avif/yuv.rs:463-472 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"0560b46b838d4c344d491e219f62275dd52bf9fdb1d4d493793518b590b9f168"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/codecs/avif/ycgco.rs:300-356 | src/codecs/avif/yuv.rs:491-500 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"985adc219a9b3dc48ade7d4ef72bfaefc77a70d8502ed89c8821f49b12590f48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/codecs/avif/ycgco.rs:300-347 | src/codecs/avif/yuv.rs:811-820 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96376c4133b97dd4a037df77e63ffb7a515f560192eb0911c232c9bdc7ba5f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/codecs/avif/ycgco.rs:300-365 | src/codecs/avif/yuv.rs:836-845 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"6044504f7fea75604a329e348bc1c79f9f0c689aab007e3cc7d6abe161a071d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/images/dynimage.rs:1668-1672 | src/io/free_functions.rs:55-59 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/dynimage.rs"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"96764b0edde532b0bcba9d358188db8bb338a6fa9c22babd5cffc6274ac84f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): src/codecs/bmp/decoder.rs:1930-1959 | src/codecs/bmp/decoder.rs:1989-2018 | src/codecs/bmp/decoder.rs:2059-2088 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/bmp/decoder.rs:1930\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":1930}}}],"partialFingerprints":{"codehealthFindingId/v1":"389619c63a93bfd270eb95de85240b4e8f06ff53b894540b735e87a2d8354c2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): src/codecs/avif/decoder.rs:535-562 | src/codecs/avif/decoder.rs:732-757 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/decoder.rs:535\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":"src/codecs/avif/decoder.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33f774dec51140475050f61ae0f1f063b0e4ea39722d4e475757ed7f7185e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/imageops/sample.rs:766-789 | src/imageops/sample.rs:813-836 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/imageops/sample.rs:766\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/sample.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a26c333ceed706bca0d4a49009981702919580aa28afdd068199fcc509bf22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/codecs/avif/ycgco.rs:149-170 | src/codecs/avif/yuv.rs:594-615 \u2014 before extracting anything, compare \u0060src/codecs/avif/ycgco.rs\u0060 and \u0060src/codecs/avif/yuv.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/ycgco.rs:149\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22dbd3a5a6c4386e384a0e8db86555c17e07c26a06f6a09ffd7fdc1b25c043c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/codecs/avif/decoder.rs:252-272 | src/codecs/avif/decoder.rs:311-331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/decoder.rs:252\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/decoder.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8ef89117ce548001aa85cab8c2ef9a59220fd3cac90cffce63e44f1b08bbe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/images/flat.rs:1644-1663 | src/images/flat.rs:1688-1707 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/flat.rs"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c75941a6eec57a0ad6a72ba5eb048cc1f44fb6b166979fa26760b1bd5ebd5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 4): src/codecs/avif/ycgco.rs:206-223 | src/codecs/avif/yuv.rs:656-672 | src/codecs/avif/yuv.rs:1047-1064 | src/codecs/avif/yuv.rs:1195-1211 \u2014 before extracting anything, compare \u0060src/codecs/avif/ycgco.rs\u0060 and \u0060src/codecs/avif/yuv.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/ycgco.rs:206\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebaef0435c5da77208ea8907afe2502417addf26b251eb80418082255f770d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/imageops/colorops.rs:249-266 | src/imageops/colorops.rs:305-322 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aec3d6728e2eed53e03d4f02960b8e5fb97ff41b1d60e5372e13facf91f9504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/codecs/bmp/decoder.rs:847-863 | src/codecs/bmp/decoder.rs:877-893 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/bmp/decoder.rs:847\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"381af01a3050eb15b3966870934d72c6113415fb2abc2d932c697ea617a4e44a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 5): src/codecs/avif/ycgco.rs:208-223 | src/codecs/avif/yuv.rs:658-672 | src/codecs/avif/yuv.rs:881-894 | src/codecs/avif/yuv.rs:1049-1064 | src/codecs/avif/yuv.rs:1197-1211 \u2014 before extracting anything, compare \u0060src/codecs/avif/ycgco.rs\u0060 and \u0060src/codecs/avif/yuv.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/ycgco.rs:208\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"707ab6c1686684cf39b14d8ad2689ec402e30462f502d3ee741193baffe9f45c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/codecs/bmp/decoder.rs:1964-1980 | src/codecs/bmp/decoder.rs:2023-2039 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/bmp/decoder.rs:1964\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":1964}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe73f34c2aecc702aab87992ec845be333836185b27e1313f6715028db39a4dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/codecs/bmp/decoder.rs:1364-1378 | src/codecs/bmp/decoder.rs:1392-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0256704e03f3db8874e6ece83a1f337d0afd48aa150a635df237929405b7043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): src/codecs/avif/ycgco.rs:204-218 | src/codecs/avif/yuv.rs:337-351 | src/codecs/avif/yuv.rs:654-667 | src/codecs/avif/yuv.rs:1045-1059 | src/codecs/avif/yuv.rs:1193-1206 \u2014 before extracting anything, compare \u0060src/codecs/avif/ycgco.rs\u0060 and \u0060src/codecs/avif/yuv.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/ycgco.rs:204\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e382cbf5be8b07731e70d3f19343d4d4f012a0b258e0e24f8efb585d48941b93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/imageops/sample.rs:1316-1329 | src/imageops/sample.rs:1553-1565 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/sample.rs"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cbb44b3244660a40b03fdc6c13996b67f5375f7ab10a61a6a50b297a2d6b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/codecs/avif/ycgco.rs:36-48 | src/codecs/avif/yuv.rs:528-540 \u2014 before extracting anything, compare \u0060src/codecs/avif/ycgco.rs\u0060 and \u0060src/codecs/avif/yuv.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/ycgco.rs:36\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07ad5ce7ca02ae304075ce5e85e9a34e084568e1dc2125bd125e5d8663e7833"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/codecs/avif/yuv.rs:679-690 | src/codecs/avif/yuv.rs:901-913 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/yuv.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fa5f01fd4c2c1a2be1a06f9acffc5d69c778d9f12a6375575823623a455cf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/imageops/affine.rs:48-60 | src/imageops/affine.rs:141-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/imageops/affine.rs:48\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/affine.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c9847052f09f3854af13566e1f6466ec7c4acacda1cf1cb491355d35decf6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/codecs/avif/yuv.rs:385-396 | src/codecs/avif/yuv.rs:1074-1085 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/yuv.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f64c43c8f34db5e1cd2cc33fa7a70f651492eb2d209d9b5592408ee3ca55c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/codecs/avif/yuv.rs:731-742 | src/codecs/avif/yuv.rs:756-767 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/yuv.rs:731\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/yuv.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99928812ce658c44fd65c869f8b4a7740ebbd96af133b006b7bde6b96dde98c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/codecs/png.rs:985-996 | src/codecs/png.rs:1046-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/png.rs:985\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/png.rs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ab2d9371f963add136225cf0e29fc56f40d017fb71c5463f81c24004036e19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/imageops/fast_blur.rs:349-363 | src/imageops/fast_blur.rs:397-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 \u0060src/imageops/fast_blur.rs:349\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/fast_blur.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b1df66ac15f3702246a4f697d0f0a026b6abce9ef3066e05256995807f9482"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): fuzz-afl/fuzzers/fuzz_webp.rs:11-21 | fuzz-afl/reproducers/reproduce_webp.rs:12-22 \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. 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":"fuzz-afl/fuzzers/fuzz_webp.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"953f3728cffd795b4f836edb2c4c09854d6eff8d73231047a2e00cc94269117f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/codecs/avif/ycgco.rs:168-178 | src/codecs/avif/ycgco.rs:256-266 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/ycgco.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":"src/codecs/avif/ycgco.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee44aa9b62c9e51add473e03bf4841a472bf114f9e49491c9421c1f5f568c75f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/codecs/bmp/encoder.rs:213-223 | src/codecs/bmp/encoder.rs:241-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/bmp/encoder.rs:213\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/encoder.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a534b729c437d9ba18ecb64b4ccb15adb2c50d279ab1bbac4913eaf408e7d614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/codecs/tiff.rs:350-360 | src/codecs/tiff.rs:370-380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/tiff.rs:350\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/tiff.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32e816a3dc553992d7198946ddd206ef71d0f8ca0a8a20a2ec13bf62c2253ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): src/imageops/colorops.rs:169-178 | src/imageops/colorops.rs:201-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/imageops/colorops.rs:169\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"682d1d22af299763cd0e450da3c8af71a180a71c60c6cea71c662db51575b161"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/images/flat.rs:668-678 | src/images/flat.rs:710-720 \u2014 both copies are in the same file, so extract the block 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/images/flat.rs:706\u0060 calls \u0060is_normal\u0060, \u0060Err\u0060, \u0060NormalFormRequired\u0060 and \u0060src/images/flat.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":"src/images/flat.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbb47e7921281079babc242e58fa7b259c2b868e71276b8445e1688ce5c803b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/imageops/affine.rs:46-55 | src/imageops/affine.rs:71-80 | src/imageops/affine.rs:96-105 | src/imageops/affine.rs:139-148 | src/imageops/affine.rs:164-173 \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 \u0060src/imageops/affine.rs:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/affine.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ff2226df52b198d40bf802e70e137064be8bbb7ebea4a37a01da4ea795dfb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/imageops/colorops.rs:105-113 | src/imageops/colorops.rs:138-147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/imageops/colorops.rs:105\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb46125c92de98f118a8056cff7407504b1f2808b23028930ed21182474ccc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/imageops/mod.rs:190-199 | src/imageops/mod.rs:314-323 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/imageops/mod.rs:190\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/imageops/mod.rs:200\u0060 calls \u0060get_pixel\u0060, \u0060blend\u0060 and \u0060src/imageops/mod.rs:324\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/mod.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5109a55fde078f2bfea30b873331d9b1f48870e2403e659100a6ec63f088f020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/imageops/sample.rs:396-405 | src/imageops/sample.rs:419-428 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/sample.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfb13fe4802a3bc1d0d3087cd18b81821aeda98357e315ee342c5707cfa347a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/images/buffer.rs:1023-1032 | src/images/buffer.rs:1046-1055 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/buffer.rs"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"518083dde6739d59ae4d3d3dedd985725544bdef565e41f7056042fc1f5fc451"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/images/buffer.rs:1396-1408 | src/images/generic_image.rs:316-328 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/buffer.rs"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc52c58a4790533fe2496ad46277b40f5b3c50c944c420e48e62c9b6c77e9243"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/images/flat.rs:706-715 | src/images/flat.rs:744-753 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/flat.rs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"db33779920e31da6b0fdac4bb6e94dc5a688d3e828fbbafa5f8b2e8183189876"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/codecs/avif/ycgco.rs:225-233 | src/codecs/avif/yuv.rs:1066-1074 \u2014 before extracting anything, compare \u0060src/codecs/avif/ycgco.rs\u0060 and \u0060src/codecs/avif/yuv.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1eaedb4f1baaaeb0ffe9259d53cf9064cb30ef9294d917bd2227cca79bf9dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/codecs/avif/ycgco.rs:236-244 | src/codecs/avif/yuv.rs:1087-1095 \u2014 before extracting anything, compare \u0060src/codecs/avif/ycgco.rs\u0060 and \u0060src/codecs/avif/yuv.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc74837347f5b1793e52c31757d50d978e81fb159da3f007ce121bcefc61c7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20139 lines \u00D7 2): src/codecs/avif/yuv.rs:615-619 | src/codecs/avif/yuv.rs:1103-1111 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/yuv.rs:615\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/yuv.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"370253d8eec97d0d5ed80355831b55f26d1530de9fd288187cbe071ea531ea72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/codecs/avif/yuv.rs:940-948 | src/codecs/avif/yuv.rs:1090-1098 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/yuv.rs:940\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/yuv.rs"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"680b8d28ac860830e6c2785d72371a7530655110896b523731c290be1e829c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/codecs/gif.rs:306-314 | src/codecs/gif.rs:339-347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/gif.rs:306\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/gif.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68e7dd1c51c6fff3b7a99e9e60efd61d5e6514629088cf4a339f4f6a59a0547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/images/generic_image.rs:277-285 | src/images/generic_image.rs:298-306 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/images/generic_image.rs:277\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/generic_image.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46f6fe4038194889f8726ceb8280fc52b5c87e7826cf11e3d7fe00ceea3e57a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/codecs/avif/decoder.rs:525-533 | src/codecs/avif/decoder.rs:717-724 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/decoder.rs:525\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/decoder.rs"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4f3910121561e8d3027e26d4b67cea3ee2fc57181718c752520cac477fff97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/codecs/avif/yuv.rs:755-762 | src/codecs/avif/yuv.rs:948-955 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/yuv.rs:755\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/yuv.rs"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6af5ee31638fadf1732d536f1f4240ca40cb5209564892426c35c493921091"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/images/buffer.rs:190-197 | src/images/buffer.rs:328-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/buffer.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1c69a1b6eca0420e3306a6d8946def91dda2d013393c073cdb78f1afddefd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/imageops/sample.rs:757-763 | src/imageops/sample.rs:804-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 \u0060src/imageops/sample.rs:757\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/sample.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ecc4ee594cda333e63391c84b1d552a28d7637a17285ee587f3bead839522c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 4): src/metadata/moxcms.rs:181-186 | src/metadata/moxcms.rs:194-199 | src/metadata/moxcms.rs:206-210 | src/metadata/moxcms.rs:324-329 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/metadata/moxcms.rs:181\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 after the matched lines, \u0060src/metadata/moxcms.rs:210\u0060 calls \u0060chunks\u0060, \u0060zip\u0060, \u0060chunks_mut\u0060 and \u0060src/metadata/moxcms.rs:186\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/metadata/moxcms.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ee93bbabe01897d1571d33b98258f304b4ee5d42de89cbdfc0b7eead2c1e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/codecs/avif/yuv.rs:365-370 | src/codecs/avif/yuv.rs:401-406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/yuv.rs:365\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/yuv.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada5d80c9f7f908814420f4edf6f2a678e4ad3573f83c451e893a5bbc1f4545e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/codecs/pnm/header.rs:194-200 | src/codecs/pnm/header.rs:205-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/pnm/header.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"328b9175dbb7c34a2f4b9e4a1df71bb498555f0a168a0704359b381771f3f6b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/color.rs:896-901 | src/color.rs:902-907 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/color.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad7d5252c875cf93e0998f395fd7da051505286c31148f07927c89887dc9755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/imageops/colorops.rs:269-283 | src/imageops/colorops.rs:327-341 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2b65352a2182dbe704b1192fd7295c3d17d3e26fad2aeca73b1f7ba606b8ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/imageops/filter_1d.rs:209-214 | src/imageops/filter_1d.rs:252-257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/imageops/filter_1d.rs:209\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/filter_1d.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"40aeeb6f21789174b9e6b6406560bb8dc8b98cb2ef1368bfedd35ecb7beb26d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/imageops/sample.rs:614-619 | src/imageops/sample.rs:621-626 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/imageops/sample.rs:614\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/sample.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4980540fb30dd79be74bf16206ef4ce1387da459d7fc4f13984a7bbfa7e7d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/images/flat.rs:1473-1481 | src/images/flat.rs:1544-1549 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/images/flat.rs:1473\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/flat.rs"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b834790b98ea142c99eee14944a27ec359eb1602f949acbad601ad36dc8b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): src/metadata/moxcms.rs:243-248 | src/metadata/moxcms.rs:273-278 | src/metadata/moxcms.rs:336-338 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/metadata/moxcms.rs:243\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/metadata/moxcms.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2013661be3d0555ff88bcf2c74195c95a48172e8a83f0625c36f04f544b92a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/metadata/moxcms.rs:296-301 | src/metadata/moxcms.rs:360-365 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/metadata/moxcms.rs:296\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/metadata/moxcms.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"66581ab541f93412a6cefbb0b52f8aa4a5cd45dfa467ab618d2a78c3fbe0f81f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/codecs/avif/ycgco.rs:168-172 | src/codecs/avif/ycgco.rs:256-260 | src/codecs/avif/ycgco.rs:269-273 | src/codecs/avif/yuv.rs:613-617 \u2014 before extracting anything, compare \u0060src/codecs/avif/ycgco.rs\u0060 and \u0060src/codecs/avif/yuv.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/ycgco.rs:168\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05f12157c49c58701561f612ef827adf02364281d6c0f681661ba9430ab853c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/metadata/moxcms.rs:185-189 | src/metadata/moxcms.rs:198-202 | src/metadata/moxcms.rs:314-318 | src/metadata/moxcms.rs:328-332 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/metadata/moxcms.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"690d1c16515a86375bbd68a0bb7f9efe9c60c85c1c5f3f27d3e3b67a78417c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 6): src/metadata/moxcms.rs:211-215 | src/metadata/moxcms.rs:224-228 | src/metadata/moxcms.rs:259-262 | src/metadata/moxcms.rs:289-292 | src/metadata/moxcms.rs:342-346 | src/metadata/moxcms.rs:356-360 \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 \u0060src/metadata/moxcms.rs:259\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, \u0060src/metadata/moxcms.rs:210\u0060 calls \u0060chunks\u0060, \u0060zip\u0060, \u0060chunks_mut\u0060 and \u0060src/metadata/moxcms.rs:259\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/metadata/moxcms.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e86bfe749a3d8d3be4e471b57513250ac74041fe1f80796972778901a74b088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/codecs/avif/ycgco.rs:127-134 | src/codecs/avif/yuv.rs:572-579 \u2014 before extracting anything, compare \u0060src/codecs/avif/ycgco.rs\u0060 and \u0060src/codecs/avif/yuv.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/ycgco.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/ycgco.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"67946564b27f784de63e470331cafe1493b972cd720a86cbc34e3ca5b5646def"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/codecs/avif/yuv.rs:1241-1245 | src/codecs/avif/yuv.rs:1260-1264 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/avif/yuv.rs:1241\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/yuv.rs"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b31b69642d4c0b41d0b9202d19ae69c24a998e49e52c950a94ad96d89c218a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/codecs/bmp/decoder.rs:120-124 | src/codecs/bmp/decoder.rs:180-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/bmp/decoder.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c17b42ee4a50e264171a58b5cb1caa5d1639d47f70e6b4fc62580cd33c744a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 5): src/color.rs:729-732 | src/color.rs:743-746 | src/color.rs:757-760 | src/color.rs:788-792 | src/color.rs:801-805 \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 \u0060src/color.rs:788\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060other\u0060 to \u0060\u0026Rgba\u003CS\u003E\u0060 in one and \u0060\u0026Rgb\u003CS\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, \u0060src/color.rs:732\u0060 calls \u0060from_primitive\u0060 and \u0060src/color.rs:792\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/color.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c040d27ea3b507d2592768edb041587bfda358e1b87ce227083743415a87e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/imageops/colorops.rs:34-38 | src/imageops/colorops.rs:55-59 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/imageops/colorops.rs:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa385ea9daa8fb0b70be709f5c47db6a1fd1416c20596d2f4eb3448e8b164198"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/codecs/gif.rs:145-154 | src/codecs/jpeg/decoder.rs:173-179 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/gif.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41d23bb104d3c7badcba75af9166cb37cbe516dd9e359826a8ce11fa5af1a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/codecs/pnm/encoder.rs:417-428 | src/codecs/pnm/encoder.rs:430-441 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/codecs/pnm/encoder.rs:417\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/pnm/encoder.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e3f8b5c81ff8f3acaa70f69837ae20058e636a0b436db675edce6a5a30db41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/imageops/fast_blur.rs:312-319 | src/imageops/fast_blur.rs:428-435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/fast_blur.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3a735bf00a20cfaabadc941486f542b62a2f2978771bcc773e93097a394d4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/imageops/filter_1d.rs:281-287 | src/imageops/filter_1d.rs:305-311 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/imageops/filter_1d.rs:281\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/filter_1d.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"036827cecde58d4eaffcf0a5c79733b2801f16d52587f3f308bc3d705375d207"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/imageops/filter_1d.rs:357-361 | src/imageops/filter_1d.rs:381-385 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/imageops/filter_1d.rs:357\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/filter_1d.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d8c1073c9a08515ff1b7d2e913b73ea629db4bc3b57107794ee3437e580a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/imageops/sample.rs:1530-1534 | src/imageops/sample.rs:1539-1543 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/imageops/sample.rs:1530\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/sample.rs"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedd950f8240f5214e440d1824f3f23238ea99f0e1557492b509d500b07a5c72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/metadata/cicp.rs:835-841 | src/metadata/cicp.rs:847-853 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/metadata/cicp.rs:835\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/metadata/cicp.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc00ccc3fbf505adc0e67a100826529dd125b64079766ad75ff039ef7c3131d0"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: image: image: abstractness 0.22, instability 0.00, distance 0.78 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a1803d3f288059eb4b6566dc554b0d91b1c60c5d4b9ba64f663624966a5562f0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Rgb (LCOM4 5): Rgb\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/color.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e5fef3c9d2a097e2f35c789df9c42d020fd0457815cb10ead8cf2bf76ecc37"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Luma (LCOM4 5): Luma\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/color.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"53da0caf6c4d8f81b63bdcf83b464123255f81de30982da3de044d01d28cacb9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Rgba (LCOM4 5): Rgba\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/color.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b2cec1dc0b4d8f1b3039800de363603c2a226376ed134fb0f03a50ce35e845"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LumaA (LCOM4 5): LumaA\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/color.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ab2778e8dc6e3e60b32c7e24e103da06cf33c2227796a1c909ab5565721cbb"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/codecs/avif/encoder.rs: 0.0% line coverage (0/155)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/avif/encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a0f54b1660e288cfc7aa11b9f1a6b8208b9f3cf670ffc005edbe101a4731be"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/codecs/hdr/encoder.rs: 40.2% line coverage (68/169)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/hdr/encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef9e282857d98126064ff2dacb47c29253a43ab5bf5c6c45a041153c68f9e40"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/codecs/qoi.rs: 39.6% line coverage (21/53)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/qoi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d861a99e577344fb89ad18d971111e38bf61ebb8d1c7e7013ca74601174588"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/error.rs: 27.6% line coverage (54/196)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85dea73955afd46544b478c735472cb4705d6b3761d96222a413d7f5305e851c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/imageops/resize.rs: 42.4% line coverage (67/158)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/resize.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb467d3ba4e67cd2630ecde2d9333640ecdc7bf246cd9c6c378478e6d524b14d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/images/buffer_par.rs: 43.4% line coverage (53/122)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/buffer_par.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41620939e54d883af692df695bf67c3212009276452375fe98e8d0f0241f1523"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/io/encoder.rs: 31.4% line coverage (16/51)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/io/encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e753ca0870db525744144f86d433acde6e85a3e58db1cbf5b53c7cf63ea4dd7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/lib.rs: 0.0% line coverage (0/35)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce9f8274cc4d800626ff6e948d4bb46616bf1ffe78b5881f7d9d912723fed6f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/metadata/moxcms.rs: 41.9% line coverage (147/351)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/metadata/moxcms.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6080ef2b5a2b11968ebd3f62b35373deeaf01d8d198aa188bea55e3301a8f599"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 1 significant file(s) lose their only recent owner: src/codecs/ico/encoder.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"068150bb63fa2c785857e2d1b59ab2f56b9f63db9e7bf748f571e91fa3993e7e"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (2 single-owned of 62 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; 62 of the 88 production source files in this repository met that bar). They are anonymized user #2 (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: src/codecs/qoi.rs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Once there\u0027s a generic API for animated images, switch to that instead. \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/reference_images.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66f9d5ff0d6ef1b46ad8c45c9195fe61fef709598f250d7d834f9087dc8ac1b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO f16 types? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/color.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff7136dc59d6aaa34ed4baea297b1cfc40bf442ad11366cf470c9115ef6ac62"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this trait should be removed and replaced with real color space models \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/color.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"452983fd1b2113586baf15295974e80ed525fdf869b07b1e1a888e0b23f348b8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: instead have \u0060try_total_bytes() -\u003E Result\u003Cu64, _\u003E\u0060? But should it return an \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/io.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5a4384cabd12e0d2324574a64b7ddaeb3186dd39add0de764f62038e9c5102"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO delete this module after a few releases \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c65230ae1ef1fc5d74f0f43189827dcb13146832fa434988069ad4f4ca1458f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO rename to \u0060PixelComponent\u0060? Split up into separate traits? Seal? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/traits.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf61b0f5a1c9be635072c3929246eaead887fd363c042ad8f629606b477f45d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: really these should be lazy, eh? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/metadata/moxcms.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb3757debedb8b849df767528e727f324c9d890214fc4a3b77d16a7d0833560"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should this rather go in \u0060DynamicImage::from_decoder\u0060 somehow? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/io/image_reader_type.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b55bbf6ff391bb045798d1b87fd62932c4733d9b8b911054bcf2ebe0b8523a2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should this rather go in \u0060DynamicImage::from_decoder\u0060 somehow? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/io/image_reader_type.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9848f6dfb81e9e5fdcb126cfa9f794710c6fe8d2fdf41ff990ebb69cb2fa64"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: with \u0060viewbox\u0060 (temporarily removed) we can inform the decoder that no data is \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/io/image_reader_type.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd37fdd3f9ff4c29f4fb1812d58af65497f072992bc32e26902ac872b261159f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: the pixel type might contain P::COLOR_TYPE if it satisfies PixelWithColorType \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/buffer.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6701804a3d3ca668f54e4d96009c175f42e2b7ee7b5c14cf7f3674de3c1b32"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: the pixel type might contain P::COLOR_TYPE if it satisfies PixelWithColorType \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/buffer.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a49d5b40de63adf42a80423e19fbf21074a635410c8ace4cbfb203cd0f5326"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: the pixel type might contain P::COLOR_TYPE if it satisfies PixelWithColorType \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/buffer.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e11ef59db1ec7ebb773cc8c7a073d9ea10739eca11b8ab9b0872c01641eaf83"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: I think that rustc does not \u0022see\u0022 this impl any more: the impl 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":"src/images/buffer.rs"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"747c340e40474c6dda3d73d6a120c7b5122879a9c8dbf2a0001a770b843992ad"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: Clarify that the transform is cheap to clone, i.e. internally an Arc of precomputed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/buffer.rs"},"region":{"startLine":1664}}}],"partialFingerprints":{"codehealthFindingId/v1":"921bba4646779b02da0721cb6d9530a5d763bcfa9b9a0e13a08045d588409c76"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO use f32 as default for best precision and unbounded color? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/dynimage.rs"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"62593902eecfef85283468f676be59cbe8364518bef9c74cde608e76a3cbd8b0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: this should reuse existing buffers from the dynamic image. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/dynimage.rs"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0458f11aa804611bc035ab459f0444a27cf9443062dca6dfc7db0415494ef6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // most widely used in the wild. FIXME: add an API to decoder to indicate the color space as 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":"src/images/dynimage.rs"},"region":{"startLine":1887}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8c374f5f11e9684b357079830c394725b240fd381b308556ba6bf7e9c0a035"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: but the result value is .. not ideal. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/dynimage.rs"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"67dc4711043d5807eb9cf46cca6b9619ca5b1cf2cbc3290abfca1c383ca06a4c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: before exposing this, consider if we want to have strong invariants related to \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/flat.rs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e30e4bf4da8e50aeb5db4f008e228153b09459f57f9bef98cf6ed0bb5b64f2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: before exposing this, consider if we want to have strong invariants related to \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/flat.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"6befd5d01a4f960a7362db2f9881b0578117109dbd4cf3265f86acce24d1d839"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this value is never set. It should be set in all places where the Pixel type implements PixelWithColorType \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/images/flat.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4cd318f0e9196645c6c8e11a42b387878ee20432764c2d92a4db13c0c09f83"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO find a way to use pixels? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc837f5790c578153a29f48d386dd51b8b087f4182e084e1d45cc420cf0d9bc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO find a way to use pixels? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"569e45a068a3082020c226beadc994ef19bd0767e21996524b9462f242379d3a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO find a way to use pixels? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbca54dd3c03437bda3b2193efa3647e185ce5a7a941870e279cafe94c9187ba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO find a way to use pixels? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/colorops.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"66489987d109ea14417929ea545b3478f4b803fbf32da0c0dd9f508d63dce295"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO what does this do for f32? clamp at 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":"src/imageops/colorops.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a78899fa830d0fdc7a7e2473842303732c59a3fd36d7771327c6be833eea59f"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // hacky reuse since cannot construct a generic Pixel \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":"src/imageops/sample.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"815039e7c36ade5f95c7f64bf5342f10de507b150bfc6c27969e4d33ea93e74c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: There is no need to recalculate the kernel for each pixel. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/sample.rs"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da5f953808a6ce4ce765e0bdfa486fcd640a1be98fb9d97e4c32d5902f561ee"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME what does this do for f32? clamp 0-1 integers?? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/sample.rs"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"f827816f6d9d3f2ac3327624f1a6425685d8f6fbe6e56f6e6dedf29eb52153c3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: would be nice to have a sub-object for these two attributes or an enum for the state \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/gif.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"034163ff130e2d5cca1a86a2d0e606e2058805308a33911dac9098172dd1a910"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: may appear anywhere. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/gif.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43a33e4e2c5251230b0ad3758d7ebb5a8fe5cbc74e7c0068f2b014470d9ddb3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: there is some in a Photoshop 8BIM extension which we do not collect. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/gif.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"7728ffa5d542cff4878f8f03a89e55c8881227f570d7b3491666629c49210800"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: internal dispatch on disposal method may be slow, investigate if this is \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/gif.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bec171577d743b2b923fdec7204dade373a90d987c0135fcb7f787d5045c7a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this is not very idiomatic yet. Should return an EncodingError. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/gif.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"9862edfdd39a2c478e0ac11f4287cca4c5e68d461af605692a69cfc57876d532"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO filter chunks based on 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":"src/codecs/openexr.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2df76cca9a326ce305bc360be868a41720a2b15259e9e315a80b51e621716b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO white point chromaticities \u002B srgb/linear conversion? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/openexr.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"f249e5f7b087d4a9dabbaa314169fa73798aed037c5cdcb41537a43b5e0270d3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO select exact layer by self.header_index? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/openexr.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb600eb9f560f9682e661cd76eff1a518aeafdb38c847b532e4ad0c7265c3c76"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this copy is strictly not necessary, but the exr api is a little too simple for reading into a borrowed target slice \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/openexr.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf6c8f5fa753c0a81c3e501ba1e4a6604eac47e10b3d437b49d8ad43b5cbf4e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO compression method zip?? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/openexr.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"160f6c80e874e9c871620de69a84698b54504416b4dda76cd167ea44a83a2c24"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO compression method zip?? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/openexr.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"b929d33148467ca61ffc45d778bb4792d6591746cfc55832b9f3e2c7c5fb8b0b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO other color types and channel types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/openexr.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"af62c69bafbae73b9f7c68f0b7b5fa526106dc5f6503ae29af25c17e347190a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO is this struct and trait actually used anywhere? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/openexr.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5fa97029866fa2241ad3502de32ea8a838ee1ac48426c58d35f7235a84d362"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we do not collect these in advance. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/png.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"798fddcc1d4d129810b3e747f4a39c9f4fa300e993e9f6a019cc17225a2b9920"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we do not collect these in advance. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/png.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"389513a29389fea84add64c7851b8bf7813ace62d2cb0c98d8cb2e6b4aa9f9eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add \u0060png::Reader::change_limits()\u0060 and call it 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":"src/codecs/png.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"563fd701bd5c9e2f20d793079bf0ff9c37777386f1a47f25b1d0b49ca2e322b7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: investigate speed, speed-ups, and bounds-checks. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/png.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"151f8d55d020f1242ecbbc5f0e333c199503a8b0033aa3480e96f4b8564b04e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: assumes equal channel bit depth. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/png.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea35ff15daf2ec0597f8aa982e0408fbbad9fb11659d5263916a4fc45d35885"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: triple buffer in the other case and fixup the planar layout independent of \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/tiff.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3ee5f43a1490531fa80ea2aaff55a04c8647c5706ae74c6516a7f5cc36e7ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: validate the rest of the fields in the header. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/tga/decoder.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c5d05a20da27e47ffe491cd92f30aab4c67f696699844550453a119d5762b6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: support RunColorMap, and change match to image_type.is_encoded() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/tga/encoder.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"50cb94ac237040ba594c9dc35e402e990c10266d2caae35acc6e8998d75692ca"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: PNM can contain multiple images. If it does they follow immediately after each \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/pnm/decoder.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"39def630b5f5fbd28545480dc0e935c1b1ec0e37ac96f85a73a32c7e3250d077"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use inclusive range when stable \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/hdr/encoder.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"883fb44d8576e840036a74ace79da9b5d676ee9d95ee89a27353ea0d1394cb77"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: conversion re-using the target 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":"src/codecs/avif/encoder.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ce16e93aae65153fad1717f0b63a3a2945659c26ce8985faa140ff7151fa6e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this method should probably already exist in the main image crate \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fuzz/fuzzers/fuzzer_script_exr.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"491cedd1691f0d1935372d023681eb3f1c61e282d3c31209a182882de87d3600"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this method should probably already exist in the main image crate \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fuzz/fuzzers/fuzzer_script_exr.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91488cfb136a553852025daeba01ae2ad8eaea9f9482eacfa2f313065379c75"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // fixme not optimized away? \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":"fuzz/fuzzers/fuzzer_script_exr.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce784a1eef286bec391b8cfb384b2652a5d1a0aadcf74048b568c5b1fb94fdc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pnm \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/decode.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac87301ff33c4e7fd46f36f1c5ba7b1fe08d2c5da3cfa4567eec575e760be515"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: png \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/decode.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03480ac728261f1ee0a33f2b2fa1c7d1487903591fd83ed3871662816ce527a"}},{"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 \u0060fuzz-afl/Cargo.toml\u0060 makes this repository a deployable product (line 17)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fuzz-afl/Cargo.toml"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a5f1bbcdce27772f0bb6472cdadc14c826ac6a8192bc64473ae94d6c7de620"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (36335 LoC, 171 module-visible types across 16 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":"9547ffe1fe450c6c27db818620d208444635fcb2b5e8020d78e0fe53a6e209e3"},"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":"4445dfbc2eef6be992d39b3dcc05c4bae1e7837cce35c1fd48aef885756ad3e3"},"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":"c11a619f775bd3c99ab6413d39c1d204bd1ea97e352f9d2f8400f4e6a7d86802"},"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":"89bb37b903bc30f61450a2205ec954e925681e960fc56e28dec9f39c9a5a6c25"},"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":"92928b4ac93a9e33e967c71ea54cd8f6fc92693942ccc8a2c2c133efd41150d3"},"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":"eba553a52ba3f665e96e3bd4b31afe489b8bad6bca2e435f99c8717fa307c1e1"},"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":"0e569bfd39be9891d0b19f7c09b48ce20c6c8f4bb82298c7ad73b27feaf4e3d9"},"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":"d131c32785c6d67895c6817bf9921917ceefb33faf83aef2f41038eb6e979d92"},"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":"f89a30da6f4133f72015f4f103afefff2de2eace3ec0e44fd06d1a0cade0e0d2"},"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":"8d72b29f0c80eeb7229a87e94bd298c02b6a1942a54073cb36df2fea1f4ac2c5"},"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":"dd8c2b9a880923d4dec86420d863f6e81bf7657c845ceb51cea60fbb9d4a444f"},"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":"8e00e450452881ebfaecef0bdb6d6b4c2ca698802973930f77cbf8e905b2d285"},"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":"3577b5d460a45f2f85a34c317d2bbdc39946750e4d239c3a196c4aa170cf5403"},"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":"25de043e8153fdbeca6947fa331397b76c592555894f24460ff7725969ec405c"},"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":"d3d344ea3fd2bc61e8e2ba02b324b66eca189bf78dc7e9ddc22a7c1e27679b83"},"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":"80c19e0e2114d3939b325d084adfe644f297cce1094257bb6740756115cfada6"},"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":"7ae7608ac207cd90a09f50682c2aea7f091be940dee326ecde204f9917b698b9"},"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":"288078a56a5eee6b28a7670d8a7155ba9d478f4e9b5f169eddec93d280674b9c"},"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":"d4981f68fe540436477e77168973db3f13f5b14a8c729c2d03f0e7de924535c0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e8ee1e8daefe053a47a746e18a42131c85c0e592eaf8aabe28d904fddcb74a65"},"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":"e69bc68804c8ad1d3cfc676e1db8a136a6a7ad8e684e3b1c795673c63a1f39f4"},"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":"3ec613baa6aa53265ed0c413f6ba071dbaa685a4a87e2b784d71b9b0793b97d5"},"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":"5e819e6da81df484722a4bbeee3cf18234cf23f1ff1ba8ca94994925432e851b"},"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":"ecdc2d1ed4411a345f8d0676a3e1a3106ce16b6b9218e57b2c5d232d1007a6dd"},"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":"741cd62944a37ae8e265461ad0cdcb0270cff320cd5a44cbce80c48a0f5126b1"},"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":"82c01b65a98c61a0f7a24fef26d62656ca345ca8cd96de5c36f791f9d4e9f18a"},"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":"382c0cb310acc81db009fe792c4915be6594a9b4ca894884b75cbd20316c8c88"},"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":"4e366510d6d4c0ee60f02f4cb1a5aa6408a3a26dacc96182979c6e8916767a11"},"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":"506a3b053a330d947bd3c82c0b13eec7dea9ff6d06cf538093010c046f767502"},"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":"38a3c55b496f296eec1757d09deae532c669d252ecd454c208c85d67f2d8aab7"},"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":"2316052545d49f0ede5fed4650f23a17de8d6e0c50f7d910731166b926dacd56"},"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":"28307217e1d62b2831eec691b5cae5011ce01a7c2e0fb87fa8ba80c91ace5fc1"},"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":"476c93ee92c151a78fcf660a6559ef7ee64ebab28c8cb62fb85ec8f31fdf6ea8"},"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":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 2 of 62 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (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; 62 of the 88 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: src/codecs/hdr/encoder.rs, src/imageops/affine.rs. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codecs/hdr/encoder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0c00a91c7dcccedc2a8b5e2e74d0873b784b5c16349ba26485ada7e209dee4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/imageops/affine.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb0251b75dc224897c5bbc06d2bd096201eb8db419aa4e042c420736a45bf75"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b238a35cdf579502beecf1551ee8679cbcd407b1440c63ffd3c0c2f84f583d3e"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.width() - dx.max(sx) \u003C width || self.height() - dy.max(sy) \u003C height\u0060 appears character-identically in 2 files \u2014 src/images/buffer.rs, src/images/generic_image.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":"src/images/buffer.rs"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b2c5af578ad394dd4bdbf146b1c9642e047f1bb1f5f034a38afff49d770711"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sy \u003C self.height() \u0026\u0026 dy \u003C self.height()\u0060 appears character-identically in 2 files \u2014 src/images/buffer.rs, src/images/generic_image.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":"src/images/buffer.rs"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ad46b7febb988ce9bd8c9a4a92ae9dd28fe690bef3367e1ddd505464685e85"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-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-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-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"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-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"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."]}]}