{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"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":"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"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":"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":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"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":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"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":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"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":"WebPDecoder.decode (cyclomatic 30): WebPDecoder.decode has cyclomatic complexity 30 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/WebPDecoder.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f66d31c2ac86401f4407ce48f90104107f8b0ecbddc34d91d598960e25c9aa"}},{"ruleId":"D1","level":"warning","message":{"text":"Transform.swift.inversePredictor (cyclomatic 30): Transform.swift.inversePredictor has cyclomatic complexity 30 (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":"8. Complete/Sources/WebP/Decoder/VP8L/Transform.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"85adbbf3957b42f32c3140b94f7e655300005f230669f100b242fa80fb86d9ac"}},{"ruleId":"D1","level":"warning","message":{"text":"VP8LDecoder.decodePixels (cyclomatic 21): VP8LDecoder.decodePixels has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5767de3185b1f6af1e120893c0674b1d459c1b870087b0e7da916a6762d1d75"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer.swift.encodeImageData (cyclomatic 21): Writer.swift.encodeImageData has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Encoder/Writer.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"d721ad14999f9f8176988cfed67e2ffebe0ecac739be22c685454ed4056fcabf"}},{"ruleId":"D1","level":"warning","message":{"text":"VP8Decoder.computeFilterParams (cyclomatic 19): VP8Decoder.computeFilterParams has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8/Filter.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2f845c5603312ae76e6444ab7d801bd1cebc08ef73636246643bd097ceaee7"}},{"ruleId":"D1","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cyclomatic 18): Debug.swift.printHuffmanTree has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc98bb5329161afa1142428c200cdd3ef91c9c8c03ebf152690456b8e3965db"}},{"ruleId":"D1","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cyclomatic 18): Debug.swift.printHuffmanTree has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ce1ffc3cfe91da6f853535d945dfa100522defbf585fa05568a69492797d2b"}},{"ruleId":"D1","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cyclomatic 18): Debug.swift.printHuffmanTree has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae970994577aa21730202be4381a9afabbf172961c31f08574e2c011beb11ef"}},{"ruleId":"D1","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cyclomatic 18): Debug.swift.printHuffmanTree has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"4. Predictor/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"838d936e0dc81cbe2d3001358184cc14848265cbf30e2f3e28ca9d305d5e5a85"}},{"ruleId":"D1","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cyclomatic 18): Debug.swift.printHuffmanTree has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2503f7318980cfc3b8e5bc2079efb04487b225aa4fee24bffb9079ee51ce1e8"}},{"ruleId":"D1","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cyclomatic 18): Debug.swift.printHuffmanTree has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"705561461915b81fd9d11568371a8ca92fa667a9619a9d2917f7391ce56c9353"}},{"ruleId":"D1","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cyclomatic 18): Debug.swift.printHuffmanTree has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1daa4868a9fdf0e3c06f74481f0cf9a868752564c4edb18a13e5e23a8983c3"}},{"ruleId":"D1","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cyclomatic 17): VP8LDecoder.buildDecodingTree has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0cc6c8e65db95596563047218dfb590d656a2159f212bd96a5cd2e00abd0968"}},{"ruleId":"D1","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cyclomatic 17): VP8LDecoder.buildDecodingTree has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecc494b740386346b8ff233f8f5a5538667909e8db49a02ac6c8b6aab5dac34"}},{"ruleId":"D1","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cyclomatic 17): VP8LDecoder.buildDecodingTree has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e26497811d9854c89bc92dbbf6696d5c2c8bf0782d1a2cfd9caef189247632"}},{"ruleId":"D1","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cyclomatic 17): VP8LDecoder.buildDecodingTree has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd1c347e940639b59869a5d482c86d3105c931cfdb1744aceee254d43054827"}},{"ruleId":"D1","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cyclomatic 17): VP8LDecoder.buildDecodingTree has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e84e9d2b8275a9b0add0b50317de21308d193ee2ce071bda58448664d2af89"}},{"ruleId":"D1","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cyclomatic 17): VP8LDecoder.buildDecodingTree has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"858bcd0dd67c55643cbb075c5e1997707d74d156a4bab50afc6e6ea64070dc27"}},{"ruleId":"D1","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cyclomatic 17): VP8LDecoder.buildDecodingTree has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef7713d2082a58f43394f1a9744123cbf3e4187d6c53637b455e678b40b0210"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer.swift.encodeImageData (cyclomatic 16): Writer.swift.encodeImageData 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":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"8369954cd12663013661c3c19a39c9db816890cbb09408e48ae6dc3bee7e6663"}},{"ruleId":"D1","level":"warning","message":{"text":"VP8Decoder.prepareYBR (cyclomatic 16): VP8Decoder.prepareYBR 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":"8. Complete/Sources/WebP/Decoder/VP8/Residuals.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c287c75f86fd65fbf978aaf658d8a220d414b32b7ccf4f1b7139094df2914f54"}},{"ruleId":"D1","level":"warning","message":{"text":"WebPDecoder.swift.unfilterAlpha (cyclomatic 16): WebPDecoder.swift.unfilterAlpha 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":"8. Complete/Sources/WebP/Decoder/WebPDecoder.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3a2cbda6d40d32b6b36b91ea8e40ac4bed1199ba1aa6a6619c3f5c6d2b9081"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer.swift.encodeImageData (cognitive 51): Writer.swift.encodeImageData has cognitive complexity 51 (threshold 15). Drivers by points: if/else 10 (32 pts), loops 4 (13 pts), boolean chains 6 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Encoder/Writer.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c82add97c9b23cd88c45c1c68bb3891a2d74c34c2cd270c644b6e7b4b372be"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8Decoder.computeFilterParams (cognitive 50): VP8Decoder.computeFilterParams has cognitive complexity 50 (threshold 15). Drivers by points: if/else 15 (39 pts), match/switch 2 (8 pts), loops 2 (3 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8/Filter.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"d348b78e82431c91ef2d2e472bfbe86976c5ed33768ec70a0678819110df56d1"}},{"ruleId":"D2","level":"warning","message":{"text":"Transform.swift.inversePredictor (cognitive 50): Transform.swift.inversePredictor has cognitive complexity 50 (threshold 15). Drivers by points: loops 11 (36 pts), if/else 5 (10 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 32). 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":"8. Complete/Sources/WebP/Decoder/VP8L/Transform.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6876656578b23fdd43d50d99d5220ecbe27ef45afff12f3c4cb88081b72c118"}},{"ruleId":"D2","level":"warning","message":{"text":"EncodeTransform.swift.applyPredictTransform (cognitive 45): EncodeTransform.swift.applyPredictTransform has cognitive complexity 45 (threshold 15). Drivers by points: loops 10 (35 pts), if/else 2 (9 pts), boolean chains 1 (nesting depth added 32). 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":"4. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"360a0126dec136252b0bd20a75f6c23e7541f76bb70d929463054d1ea107432d"}},{"ruleId":"D2","level":"warning","message":{"text":"EncodeTransform.swift.applyPredictTransform (cognitive 45): EncodeTransform.swift.applyPredictTransform has cognitive complexity 45 (threshold 15). Drivers by points: loops 10 (35 pts), if/else 2 (9 pts), boolean chains 1 (nesting depth added 32). 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":"8. Complete/Sources/WebP/Encoder/EncodeTransform.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b30cc99b21f371265d9314dd7ce1058f918583928a0e9797942a95be49360a"}},{"ruleId":"D2","level":"warning","message":{"text":"WebPDecoder.decode (cognitive 43): WebPDecoder.decode has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (29 pts), match/switch 3 (10 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 25). Of this number, 41 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":"8. Complete/Sources/WebP/Decoder/WebPDecoder.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff98730e23fc1718d64dcc1f82c46bb23a3ef51fb457d9eab7cc5e02d05ffd3"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.decodePixels (cognitive 38): VP8LDecoder.decodePixels has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 4 (10 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8f434c0c892ad140030c4372975224aa50f9ee4e4c80916ad7d39ad542bf9b"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer.swift.encodeImageData (cognitive 36): Writer.swift.encodeImageData has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (23 pts), loops 3 (8 pts), boolean chains 5 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"aecfdeb592ded4ae25a8873f70d4c001fd086ca39e66c390e82e51fefe177524"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8Decoder.parseResiduals4 (cognitive 33): VP8Decoder.parseResiduals4 has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (20 pts), ternaries 3 (7 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8/Residuals.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae820b92bf381ee2a67617b79f41f9ae1b8b29debca2ab8a0b1d344a06a482a"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8Decoder.prepareYBR (cognitive 32): VP8Decoder.prepareYBR has cognitive complexity 32 (threshold 15). Drivers by points: loops 12 (25 pts), if/else 6 (7 pts) (nesting depth added 14). 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":"8. Complete/Sources/WebP/Decoder/VP8/Residuals.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"91112da033fd2d07df206634ea3a33ea1db6542f5e22e527d71fe3a8c54f9765"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cognitive 31): VP8LDecoder.buildDecodingTree has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 6 (8 pts), boolean chains 1, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce20c94b8438ce20963b31ebbabcf510313791c7ca0e2c4554f7a2052c93eac"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cognitive 31): VP8LDecoder.buildDecodingTree has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 6 (8 pts), boolean chains 1, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60343ba7913b693f033ffd9c0122187cfea083dabf75ec83534171628fadbe0"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cognitive 31): VP8LDecoder.buildDecodingTree has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 6 (8 pts), boolean chains 1, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38861fa70d545966617f4e39a7eae761bdb928862572023ca7c12026e86101f"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cognitive 31): VP8LDecoder.buildDecodingTree has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 6 (8 pts), boolean chains 1, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"32783bd43f11473e12c2e1b240cc29f8a67772c2737ff6e28946485657984df1"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cognitive 31): VP8LDecoder.buildDecodingTree has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 6 (8 pts), boolean chains 1, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"945170fa05e7642cfe6fc37ff2bce15f6c2e9f05e177d562bcc10abda23025a6"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cognitive 31): VP8LDecoder.buildDecodingTree has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 6 (8 pts), boolean chains 1, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"03aef06330085696546b18b65f46c09966a173eed26e6d15fafd0279c6356a3c"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.buildDecodingTree (cognitive 31): VP8LDecoder.buildDecodingTree has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 6 (8 pts), boolean chains 1, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07c50f1fabd0f94ecfcd5b166df37f05147e39b81258254ae58b6a3d723a8d2"}},{"ruleId":"D2","level":"warning","message":{"text":"WebPDecoder.swift.unfilterAlpha (cognitive 30): WebPDecoder.swift.unfilterAlpha has cognitive complexity 30 (threshold 15). Drivers by points: loops 8 (18 pts), if/else 4 (10 pts), boolean chains 1, match/switch 1 (nesting depth added 16). 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":"8. Complete/Sources/WebP/Decoder/WebPDecoder.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c5d4066d8c90795359fd022521aaa5919f559131ca2ad458868b8bd84e87a3"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.debugDumpHistogramsGRBAD (cognitive 29): Debug.swift.debugDumpHistogramsGRBAD has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 3 (8 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf4cd41765a7ce43562b8d92120d6ad24d6b7a92c934a64de970cda0587adae"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.debugDumpHistogramsGRBAD (cognitive 29): Debug.swift.debugDumpHistogramsGRBAD has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 3 (8 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b800c14c5fc599d91c8a98a80a074bcec6cd9e003435831f5b634ddba8341b2f"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.debugDumpHistogramsGRBAD (cognitive 29): Debug.swift.debugDumpHistogramsGRBAD has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 3 (8 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5232382ee56ede75c4b9c37b22a5d4ab2eec03f44d75e02d711e15e7a025e457"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.debugDumpHistogramsGRBAD (cognitive 29): Debug.swift.debugDumpHistogramsGRBAD has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 3 (8 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"4. Predictor/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa620e48643802a5a15aa064286b28b4bc14041c08a961278f688480d04d7af6"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.debugDumpHistogramsGRBAD (cognitive 29): Debug.swift.debugDumpHistogramsGRBAD has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 3 (8 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45c1fc183271b682b8ba83fbb505eb886a82cb3f80e6be1f135415bc985567c"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.debugDumpHistogramsGRBAD (cognitive 29): Debug.swift.debugDumpHistogramsGRBAD has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 3 (8 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5190fb9242f5b80d6c5d8097909a2cbc6d74b0af3590d769f8089a30c831c80a"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.debugDumpHistogramsGRBAD (cognitive 29): Debug.swift.debugDumpHistogramsGRBAD has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 3 (8 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f4b4b098227ba8e2feb81797f213eb596b632165a995f7e99e564f34e386cc"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8Decoder.reconstructMacroblock (cognitive 26): VP8Decoder.reconstructMacroblock has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 4 (10 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8/Residuals.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d68f83b78529e7ef903a68e3cc1148b7d2ea5b247628dbe8d9298a8724a5dd"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefixCode.swift.buildCLDecodingTree (cognitive 25): PrefixCode.swift.buildCLDecodingTree has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 6 (9 pts), ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3698ec327b90657adda4ab98b9ea1f7c3fda9f5a3acf847cf9d9f2a31724a7"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefixCode.swift.buildCLDecodingTree (cognitive 25): PrefixCode.swift.buildCLDecodingTree has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 6 (9 pts), ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"59306c68fe7657818ec372b0cad79523c2d7347c188a9a6b1d7e911fe128f660"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefixCode.swift.buildCLDecodingTree (cognitive 25): PrefixCode.swift.buildCLDecodingTree has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 6 (9 pts), ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b671188b3d43ebc8e0cce774833ef8c995ea82c375c2ffd9281f74f1cad81196"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefixCode.swift.buildCLDecodingTree (cognitive 25): PrefixCode.swift.buildCLDecodingTree has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 6 (9 pts), ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"4. Predictor/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf371b2b4039d2f2be109e61933a9baa6579bea548ceff728d24bef1b4305d23"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefixCode.swift.buildCLDecodingTree (cognitive 25): PrefixCode.swift.buildCLDecodingTree has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 6 (9 pts), ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"5. Cross Color/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e06bc335d14cc834e2c0fbbbddda8ebdf4266e5dd65251a19b7902052c8627"}},{"ruleId":"D2","level":"warning","message":{"text":"EncodeTransform.swift.applyPaletteTransform (cognitive 25): EncodeTransform.swift.applyPaletteTransform has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 5 (9 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"6. Color Indexing/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bb925d8c7fa4a2d6e502aeb149cf6948ce9dd3866cdd7a7db1aed8bbcba932"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefixCode.swift.buildCLDecodingTree (cognitive 25): PrefixCode.swift.buildCLDecodingTree has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 6 (9 pts), ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef75fac76d487cc4ed55ddf5ddfc126a7bb7690048179eb84d2b8e764fd268d"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefixCode.swift.buildCLDecodingTree (cognitive 25): PrefixCode.swift.buildCLDecodingTree has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 6 (9 pts), ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"7. Color Cache/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"032dbc96510d2e244fda2ca4d045f96e676462b1399461ffc67af334faeb38ac"}},{"ruleId":"D2","level":"warning","message":{"text":"EncodeTransform.swift.applyPaletteTransform (cognitive 25): EncodeTransform.swift.applyPaletteTransform has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 5 (9 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Encoder/EncodeTransform.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"940b6181c12c7c75d1abfe6f75ad42c6098d29566baf454567fd08a23dd327ae"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cognitive 22): Debug.swift.printHuffmanTree has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 6 (7 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d131e886b3062efcc33d9e0b85de8fc8003db5d0e24caaeed56b4e543e63df"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cognitive 22): Debug.swift.printHuffmanTree has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 6 (7 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"3775bcc06675e1e8a3c2f3127b5bd8f24130713f628eca1b4286c42babfc3729"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cognitive 22): Debug.swift.printHuffmanTree has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 6 (7 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4ddc66cb85d0816b12ed4bac35d7c5025e039927c3154f3f431cdcbdb018a6"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cognitive 22): Debug.swift.printHuffmanTree has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 6 (7 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"4. Predictor/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"07989765bcb65d2466e96708f135d025b9430e5ab455a08d0a278b50318cfc35"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cognitive 22): Debug.swift.printHuffmanTree has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 6 (7 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea79e73db53681698e3de3db84c836a424e7efba5c8ae818bf36481d7dc6c1c9"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cognitive 22): Debug.swift.printHuffmanTree has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 6 (7 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf7c1cae8b67928d1959abdfc1c927b01bff7f5e510e3863360cd282df2ab21"}},{"ruleId":"D2","level":"warning","message":{"text":"Debug.swift.printHuffmanTree (cognitive 22): Debug.swift.printHuffmanTree has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 6 (7 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (walk, label). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9a293b4599e355654fc5c9b1dfcd34008c58c25b346384183ab12504658be9"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.decodePrefixCode (cognitive 21): VP8LDecoder.decodePrefixCode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (5 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8705a47b547fabc3398e06ba169b49292872aaa1aad9acd0ff49c2683aef56f"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.decodePrefixCode (cognitive 21): VP8LDecoder.decodePrefixCode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (5 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"48bafa3a68f1eeb1e4ba1875ff902e673d4c376a26893133f028c9e3c9dd7138"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.decodePrefixCode (cognitive 21): VP8LDecoder.decodePrefixCode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (5 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a3713232ee56e9561846829036ced624b55d128c3449d156ce1928cce5f067"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.decodePrefixCode (cognitive 21): VP8LDecoder.decodePrefixCode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (5 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff51ee3856a96fdbeafb2312998b6aaf57fe715c1ce71c2c57bddca4623bb74"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.decodePrefixCode (cognitive 21): VP8LDecoder.decodePrefixCode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (5 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc509f3e802dbcef2bc18a436d8342c008d24717cc233232e1e35ef58c11bb5"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.decodePrefixCode (cognitive 21): VP8LDecoder.decodePrefixCode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (5 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b186319a1c21c8f9e6cf53cf7b982ce8d7ca928dfd71eb07a783918ca3921e8"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.decodePrefixCode (cognitive 21): VP8LDecoder.decodePrefixCode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (5 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca10d41a62ea12400b4a98b853e45430b9c5133fd986f5022b31da16f220285"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8Decoder.parsePredModeY4 (cognitive 21): VP8Decoder.parsePredModeY4 has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 2 (8 pts), loops 2 (3 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":"8. Complete/Sources/WebP/Decoder/VP8/PredictorProbabilities.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"716a43a6a7eab4bb922a816d6539ee8c97ba217a5eada9849b07abb62a61cdbc"}},{"ruleId":"D2","level":"warning","message":{"text":"HuffmanCode.swift.writeHuffmanCodes (cognitive 18): HuffmanCode.swift.writeHuffmanCodes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae5ca9ae0696517371b3daaaf8036bff6db045ff298b089c504b25e42963d17"}},{"ruleId":"D2","level":"warning","message":{"text":"HuffmanCode.swift.writeHuffmanCodes (cognitive 18): HuffmanCode.swift.writeHuffmanCodes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb24c7232d361e1f8d3cb103de92b1600c2f4d5b2a940bd20ad4ce572c8fb67"}},{"ruleId":"D2","level":"warning","message":{"text":"HuffmanCode.swift.writeHuffmanCodes (cognitive 18): HuffmanCode.swift.writeHuffmanCodes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"895eba53ea91dc336c3a978785515a49fda3686ade60c1841db6e60421c1dd04"}},{"ruleId":"D2","level":"warning","message":{"text":"HuffmanCode.swift.writeHuffmanCodes (cognitive 18): HuffmanCode.swift.writeHuffmanCodes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1e91048b600bc2aafed4b91cbc9a8fca03e96f0c8b8108b73a438ad8185639"}},{"ruleId":"D2","level":"warning","message":{"text":"HuffmanCode.swift.writeHuffmanCodes (cognitive 18): HuffmanCode.swift.writeHuffmanCodes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ad192eb64824dce21f737107746909a9cd571f4957b429da8528ba18f48612"}},{"ruleId":"D2","level":"warning","message":{"text":"HuffmanCode.swift.writeHuffmanCodes (cognitive 18): HuffmanCode.swift.writeHuffmanCodes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a97d23ba5f7059ceb6b9c57325bca25ab6cbe95a1c2fe13c53730f19b6e8b4"}},{"ruleId":"D2","level":"warning","message":{"text":"HuffmanCode.swift.writeHuffmanCodes (cognitive 18): HuffmanCode.swift.writeHuffmanCodes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c657df04a99bdacb028919e170cf02e9768066e89d0eb9c1a626fb87d5aa05"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8Decoder.simpleFilter (cognitive 18): VP8Decoder.simpleFilter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (VP8Decoder.normalFilter) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8/Filter.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea52c12ebabf2ec66741fc2f91e7fb014ec44ad0f907f4f9447e120668c0991"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8Decoder.normalFilter (cognitive 18): VP8Decoder.normalFilter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (VP8Decoder.simpleFilter) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8/Filter.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf8c044861ffc74f43f3889b4611a771280b3a8550f975eb5255fe1df4e8420"}},{"ruleId":"D2","level":"warning","message":{"text":"HuffmanCode.swift.writeHuffmanCodes (cognitive 18): HuffmanCode.swift.writeHuffmanCodes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Encoder/HuffmanCode.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2a2c5f6079ab14e50e0b8d6a078ec4613d027e1a477accb22acf8ace211d33"}},{"ruleId":"D2","level":"warning","message":{"text":"HTree.insert (cognitive 17): HTree.insert has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 2 (3 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8L/Huffman.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e41f2aff859b1e2eeb56e0a1cef92d99ccfceceaac177471749f5392ca9d855"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.decodeCodeLengths (cognitive 17): VP8LDecoder.decodeCodeLengths has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4aaad1ec97f4cb26009f47b9812348da3c996b07489aa6bf5663d4393618ea"}},{"ruleId":"D2","level":"warning","message":{"text":"VP8LDecoder.decodeHuffmanGroups (cognitive 17): VP8LDecoder.decodeHuffmanGroups has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"b089426c62fa544346abd5544616f8282c5bb663767d00d4b263ef58282ff61b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebPDecoder.decode: MethodTooLong \u2014 decode runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/WebPDecoder.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f73b9ab28f0e78645bf20fafa6700de63fb1ba5a68dc52230c2ff1d34c12c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 40 shared lines): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:175-227 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:180-232 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:306-358 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:186-238 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:190-242 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:198-250 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:226-278 | 8. Complete/Sources/WebP/Encoder/Writer.swift:536-588 \u2014 These 8 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fe451ffb6829572c083b5682d6700f51aacc910badf80afd85f07c0ea8d97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:7-67 | 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:252-328 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:7-67 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:252-328 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:7-67 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:252-328 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:14-81 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:252-328 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:14-81 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:258-334 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:14-81 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:258-334 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:14-81 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:258-334 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2084ab38fce78f5cadbdf7d987022cf0b80bd435cc4703f52576c764ac663a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 2. Subtract Green/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 3. LZ77/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 4. Predictor/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 5. Cross Color/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 6. Color Indexing/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 7. Color Cache/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 8. Complete/Sources/WebP/Decoder/ByteReader.swift:22-31 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/ByteReader.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"531d037cbc38a39a38395362049dc1ee6e93c3e42c4ed80513fa312be2f82414"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift:93-123 | 2. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift:93-123 | 3. LZ77/Sources/TinyWebP/Decoder/RIFFReader.swift:93-123 | 4. Predictor/Sources/TinyWebP/Decoder/RIFFReader.swift:93-123 | 5. Cross Color/Sources/TinyWebP/Decoder/RIFFReader.swift:93-123 | 6. Color Indexing/Sources/TinyWebP/Decoder/RIFFReader.swift:93-123 | 7. Color Cache/Sources/TinyWebP/Decoder/RIFFReader.swift:93-123 | 8. Complete/Sources/WebP/Decoder/RIFFReader.swift:87-117 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9741b9c1607182345dab9997bf1a96819a1906ad1a68b9e2454cef1d261f951"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 2. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 3. LZ77/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 4. Predictor/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 5. Cross Color/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 6. Color Indexing/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 7. Color Cache/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 8. Complete/Sources/WebP/Decoder/RIFFReader.swift:126-132 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cfa94c79c22577e2741480c0d0dba36e80c529a020ca3373608dc1f92038cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:59-76 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:59-76 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:59-76 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:59-76 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:61-78 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:61-78 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:61-78 | 8. Complete/Sources/WebP/Decoder/VP8L/VP8LDecoder.swift:106-123 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5017e4d5bdb9bdee9f1e085d01cf08256b948175fa9f05ba25be5a0a1fa858"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:78-136 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:78-136 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:78-136 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:78-136 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:80-142 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:80-142 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:80-142 | 8. Complete/Sources/WebP/Decoder/VP8L/VP8LDecoder.swift:344-479 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f63ccd7b4f31abbc5a1fc91e090f668a99c1143d379e69219fa0840fd06166"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:350-367 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:350-367 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:350-367 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:350-367 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:356-373 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:356-373 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:356-373 | 8. Complete/Sources/WebP/Decoder/VP8L/VP8LDecoder.swift:494-511 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39bffb0fc0048eae821f880cb9c082a31354666fadb7380d89bce0501eb6f4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 2. Subtract Green/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 3. LZ77/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 4. Predictor/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 5. Cross Color/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 6. Color Indexing/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 7. Color Cache/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 8. Complete/Sources/WebP/Encoder/BitWriter.swift:6-13 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b5c8a126515fb5d71eca365fb1d324b5ea889a61660578776299f74b3f6b76"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift:21-33 | 2. Subtract Green/Sources/TinyWebP/Encoder/BitWriter.swift:21-33 | 3. LZ77/Sources/TinyWebP/Encoder/BitWriter.swift:21-33 | 4. Predictor/Sources/TinyWebP/Encoder/BitWriter.swift:21-33 | 5. Cross Color/Sources/TinyWebP/Encoder/BitWriter.swift:21-33 | 6. Color Indexing/Sources/TinyWebP/Encoder/BitWriter.swift:21-33 | 7. Color Cache/Sources/TinyWebP/Encoder/BitWriter.swift:21-33 | 8. Complete/Sources/WebP/Encoder/BitWriter.swift:21-30 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddc8e4e2a0255321fd8fc604876ea4fb64eedc51f82920152405a37ad5ebad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:57-67 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:57-67 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:57-67 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:58-68 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:58-68 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:58-68 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:58-68 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:58-68 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"faac13d2677b624fdf52725d177a9bdd92c936bde149176c48a4c391527f2817"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:69-87 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:69-87 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:69-87 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:70-88 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:70-88 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:70-88 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:70-88 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:70-88 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"caea3b928b38fd3a0486ab474dd7e9e8eb2cf1d01578eae195bf4a102ecae844"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:90-118 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:90-118 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:90-118 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:91-119 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:91-119 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:91-119 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:91-119 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:91-119 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc705bd615e5e3c2436b719ee31d403841fd8ebda06450a6cda46fa56098907"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:120-158 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:120-158 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:120-158 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:121-159 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:121-159 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:121-159 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:121-159 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:121-156 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00ecf06db76f749027b22373a754270e17fa39e12bf2dc5a71206ffd368095e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:160-170 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:160-170 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:160-170 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:161-171 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:161-171 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:161-171 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:161-171 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:158-168 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f52bfffd9b01ac472f4e3e66f9f9827b21d862303d3d124e4ea4346d4ad7a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:172-207 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:172-207 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:172-207 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:173-208 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:173-208 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:173-208 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:173-208 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:170-201 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"8daccdd8134471d810ddff23700417a3c1a757e5397455ec4ca3a9ead807a467"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:209-240 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:209-240 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:209-240 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:210-241 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:210-245 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:210-241 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:210-241 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:203-237 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3b98c02b6a119fb8a78aa5820e1f45f7431480a509f341a9fc005a4b734800"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:5-21 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:5-21 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:5-21 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:5-21 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:5-21 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:5-21 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:5-21 | 8. Complete/Sources/WebP/Encoder/Writer.swift:35-55 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cb88314c389fbd696d36b86b459601048ba1c271350c3115599784b3f6d27c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:41-69 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:41-69 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:41-69 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:41-69 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:41-69 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:41-69 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:41-69 | 8. Complete/Sources/WebP/Encoder/Writer.swift:182-219 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d91a9687501fea1d25086df2092c49a0af9b86bb704fd94f032ce8a188263e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 8. Complete/Sources/WebP/Encoder/Writer.swift:221-229 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e69709f7ae0a083bbf048fbd32d0e489d0a586e008ed1c6034660df0c072a8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:150-173 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:155-178 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:274-304 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:161-184 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:165-188 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:171-196 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:190-224 | 8. Complete/Sources/WebP/Encoder/Writer.swift:495-534 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d82bcfb0baaabcf21a05da0baadae023e03fbbd128921dc834d29819be87a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift:22-46 | 2. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift:22-46 | 3. LZ77/Sources/TinyWebP/Decoder/RIFFReader.swift:22-46 | 4. Predictor/Sources/TinyWebP/Decoder/RIFFReader.swift:22-46 | 5. Cross Color/Sources/TinyWebP/Decoder/RIFFReader.swift:22-46 | 6. Color Indexing/Sources/TinyWebP/Decoder/RIFFReader.swift:22-46 | 7. Color Cache/Sources/TinyWebP/Decoder/RIFFReader.swift:22-46 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"13568df00c6ba6e238d077567456c9e2c31c009c71279eb6e7309356c484e837"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 | 2. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 | 3. LZ77/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 | 4. Predictor/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 | 5. Cross Color/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 | 6. Color Indexing/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 | 7. Color Cache/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"13de10249da2974364df6e151a3f1986185c5f78a351356044f400a94d7e3037"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:32-57 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:32-57 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:32-57 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:32-57 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:34-59 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:34-59 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:34-59 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"9069ba720b40aa43d803a139b7d2fe9c1b7d60c4b5db1f8cc91daa2a19603155"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:138-167 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:138-167 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:138-167 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:138-167 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:144-173 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:144-173 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:144-173 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"3690e8077f34eebf5a61a8fdbca9860264a173c7a7c0174d933284b1dc3f300c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:169-250 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:169-250 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:169-250 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:169-250 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:175-256 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:175-256 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:175-256 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42072c0fa51eac47d6e826b6cd9b24c85872f9ab6baf58de4284ab32cf3ed96"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:330-348 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:330-348 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:330-348 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:330-348 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:336-354 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:336-354 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:336-354 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"9009123d3b1766569ef7c14f69398285a38e6338ce52846e49c510fba6253d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 | 2. Subtract Green/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 | 3. LZ77/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 | 4. Predictor/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 | 5. Cross Color/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 | 6. Color Indexing/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 | 7. Color Cache/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/WebPDecoder.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb864b1cfaee687fd5e2f368f5d1abfacf8c5bdce5cadf80187191870f79129"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:4-61 | 2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift:4-61 | 3. LZ77/Sources/TinyWebP/Encoder/Debug.swift:4-61 | 4. Predictor/Sources/TinyWebP/Encoder/Debug.swift:4-61 | 5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift:4-61 | 6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift:4-61 | 7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift:4-61 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0c900d2997425535c142b212aff7728cbea56b6cd161d77f7698b356254bb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:63-74 | 2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift:63-74 | 3. LZ77/Sources/TinyWebP/Encoder/Debug.swift:63-74 | 4. Predictor/Sources/TinyWebP/Encoder/Debug.swift:63-74 | 5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift:63-74 | 6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift:63-74 | 7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift:63-74 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6c4778a930c721916940c976174fa4280ea6a8cc398c4fe3ed3b31e6d0d558"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:76-83 | 2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift:76-83 | 3. LZ77/Sources/TinyWebP/Encoder/Debug.swift:76-83 | 4. Predictor/Sources/TinyWebP/Encoder/Debug.swift:76-83 | 5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift:76-83 | 6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift:76-83 | 7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift:76-83 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"75141522dc43d93e40b58c8608be3d6c01ab4b2e061bc7aace699d806f3e34de"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:85-125 | 2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift:85-125 | 3. LZ77/Sources/TinyWebP/Encoder/Debug.swift:85-125 | 4. Predictor/Sources/TinyWebP/Encoder/Debug.swift:85-125 | 5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift:85-125 | 6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift:85-125 | 7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift:85-125 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8e42e9d573fe57d61a674489dae931f9098c6f2a5142c8f98e72ac5f4ed25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:127-141 | 2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift:127-141 | 3. LZ77/Sources/TinyWebP/Encoder/Debug.swift:127-141 | 4. Predictor/Sources/TinyWebP/Encoder/Debug.swift:127-141 | 5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift:127-141 | 6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift:127-141 | 7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift:127-141 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"29efa9738fad6ceaad084e2142d65b695dd096141fbbcf102d8b49b3444b7551"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:91-129 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:96-134 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:91-140 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:101-140 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:101-144 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:106-143 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:95-142 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"acdcbd9e7641a5a928a5d53eb518fdf91f7b811cf433bc0b4c3f560a5916e810"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:131-148 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:136-153 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:142-159 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:146-163 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:145-162 \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":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"927b6f7a2d2b0bb1db5f683f49dfe527259dcc2598e2ca28f8f3115b406deade"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:91-140 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:106-143 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:95-142 | 8. Complete/Sources/WebP/Encoder/Writer.swift:285-340 \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":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdca9e2fccaa0ffc59ea4cc13b77d5f2915860e56b7b11acfc81cd3d9403d0d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:267-272 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:164-169 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:183-188 | 8. Complete/Sources/WebP/Encoder/Writer.swift:488-493 \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":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ce1a3fb9f93cdfa9649b5e7f993210e7ea13c9d3cc133da14a515b213e5c05"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): 4. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift:1-104 | 5. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift:1-59 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:1-104 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:180-239 \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":"4. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b2f383722fda924a2566907991a835de3776dba77123b7e76f0b8d4f8a1ccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (99 corresponding lines): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:142-240 | 8. Complete/Sources/WebP/Encoder/Writer.swift:342-461 \u2014 These two members are one piece of code written twice and then edited apart: 99 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":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf882658ddc15289e7a9d9d353296327a38ad7c94ce47f0f488c55f467f2940"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 38\u002B corresponding lines): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:161-204 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:206-248 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:255-292 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:304-345 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:347-389 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ba5553f45d373661bea1954689dc3fc7aa799b232c1bc982f039c05aeab7ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:120-139 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:141-159 \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":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e47b1e7f3c33168ec7e054059e173451a7952c7b848fcab96961f565179d0cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:428-442 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:504-518 \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":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ec9064b12b997fa51119e8bc2b541015ec9722f8dd2bf231fca083bdb74f39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:107-118 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:444-453 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:520-529 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"289852dc17b24adc1ef7b88ccfd320a9e7a994fb3f6eea3a831840df6d7e063e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): 8. Complete/Sources/WebP/Decoder/VP8/IDCT.swift:59-64 | 8. Complete/Sources/WebP/Decoder/VP8/IDCT.swift:66-71 \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":"8. Complete/Sources/WebP/Decoder/VP8/IDCT.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6435a7ad5511c2d3db5d236dc4676cfda3f4ebbc47423d61c2ab36e778eabf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:82-98 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:470-481 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:548-559 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"50eede796e32e6b0fa8cdaee557571c24a6d23c28192e9350258c9be4bd842dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:81-94 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:81-93 \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":"2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"896128b2e49d892515497ed51704dabd352895326903f809408db9ec1d061e48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): 8. Complete/Sources/WebP/Decoder/VP8L/Transform.swift:40-51 | 8. Complete/Sources/WebP/Decoder/VP8L/Transform.swift:53-64 \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":"8. Complete/Sources/WebP/Decoder/VP8L/Transform.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"98298f7fdc52321658ef479aff0c8cd8121bfa4e31d04e9257d3618d03e29156"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): 2. Subtract Green/Sources/TinyWebP/Encoder/EncodeTransform.swift:1-6 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:241-246 \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":"2. Subtract Green/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57002a09a814b8d87134b716fe7c09e0b5dd006fcb41235af147f4ca298ce7c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:455-461 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:463-468 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:531-537 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:539-546 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6f01d5fa027a87262b999e639a44494a875992970a503bbc97df53df73df8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): 8. Complete/Sources/WebP/Decoder/VP8/Filter.swift:23-28 | 8. Complete/Sources/WebP/Decoder/VP8/IDCT.swift:3-12 \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":"8. Complete/Sources/WebP/Decoder/VP8/Filter.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a24c2893bc40f53fb9d6ef7947cabb73beff75a1b11f725f06da50be8c6399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (82 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:169-250 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:169-250 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:169-250 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:169-250 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:175-256 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:175-256 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:175-256 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d2e6ef73013e80cb2cb3a8301df2ff4e84b1a304a6697cff2751c7cd76529a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (77 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:252-328 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:252-328 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:252-328 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:252-328 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:258-334 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:258-334 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:258-334 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6eb59354c5c3a2a0a571714980a504cb7d7334ee6329c512e7ed7b9bca16a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61\u201368 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:7-67 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:7-67 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:7-67 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:14-81 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:14-81 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:14-81 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:14-81 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift\u0060 as WHOLE FILES: 97% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"9680ae90dbc806a2166692daf7ec81df4c6dd84a33e650e748fe99f0c797b99a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59\u201363 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:78-136 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:78-136 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:78-136 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:78-136 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:80-142 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:80-142 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:80-142 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1269ee28c9264314c30643c87582cecd8d7dd2a9a0c7741570244c551f1d97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 | 2. Subtract Green/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 | 3. LZ77/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 | 4. Predictor/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 | 5. Cross Color/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 | 6. Color Indexing/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 | 7. Color Cache/Sources/TinyWebP/Decoder/WebPDecoder.swift:11-66 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/WebPDecoder.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/WebPDecoder.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/WebPDecoder.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6ddbd102b3928c10818f6b0ea2e824fc0bab0a5625645ad8ac3c99f608d984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (102\u2013103 lines \u00D7 2): 4. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift:2-104 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:3-104 \u2014 before extracting anything, compare \u00604. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/EncodeTransform.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00608. Complete/Sources/WebP/Encoder/EncodeTransform.swift:3\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":"4. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"83056438fa7ec6dc804c6342dbc457076b29ec1d6ff8b67ac6782dcccd240dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54\u201359 lines \u00D7 2): 6. Color Indexing/Sources/TinyWebP/Encoder/EncodeTransform.swift:6-64 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:254-307 \u2014 before extracting anything, compare \u00606. Color Indexing/Sources/TinyWebP/Encoder/EncodeTransform.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/EncodeTransform.swift\u0060 as WHOLE FILES: 83% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00608. Complete/Sources/WebP/Encoder/EncodeTransform.swift:254\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":"6. Color Indexing/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd1b2cc1808530fea449ca703209c3ef940b5ff17259fbd10185972535cad0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 | 2. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 | 3. LZ77/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 | 4. Predictor/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 | 5. Cross Color/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 | 6. Color Indexing/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 | 7. Color Cache/Sources/TinyWebP/Decoder/RIFFReader.swift:48-91 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ca9381545ca6dba158e050f4a402a95c85beea6f9cb8375ca6931eea73d041"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:150-204 | 8. Complete/Sources/WebP/Encoder/Writer.swift:348-402 \u2014 before extracting anything, compare \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift:150\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u00608. Complete/Sources/WebP/Encoder/Writer.swift:346\u0060 calls \u0060Array\u0060, \u0060NRGBA\u0060 and \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift:148\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":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4281e9c2d5a7d09d87d464095dd318520e3a2f39f099649ef5b629d6bd8ba873"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201336 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:172-207 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:172-207 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:172-207 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:173-208 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:173-208 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:173-208 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:173-208 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:170-201 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"588c2bec0941afee89e115dd7b104a13d3df18bd5c2501a99693f60d70e5c941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:4-61 | 2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift:4-61 | 3. LZ77/Sources/TinyWebP/Encoder/Debug.swift:4-61 | 4. Predictor/Sources/TinyWebP/Encoder/Debug.swift:4-61 | 5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift:4-61 | 6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift:4-61 | 7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift:4-61 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"37071292a7746c694da5d187734ba65470f572f839ee9d7d6b307b047e4a6235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:138-167 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:138-167 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:138-167 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:138-167 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:144-173 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:144-173 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:144-173 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b04d33be8cf3232a9eabe52bbd12b2fd5d8651547b16636003414ed843c2643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:90-118 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:90-118 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:90-118 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:91-119 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:91-119 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:91-119 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:91-119 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:91-119 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ade1f4e9213fff73c8a8d6132f8db917c218cc79ee7bb4ddd717881a81dd0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:126-153 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:126-153 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:126-153 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:127-154 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:127-154 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:127-154 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:127-154 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:126-153 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced36afd8488683bf0618c0558278ec16488b4c9d3edf2ed08dec7c536ed7ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift:98-123 | 2. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift:98-123 | 3. LZ77/Sources/TinyWebP/Decoder/RIFFReader.swift:98-123 | 4. Predictor/Sources/TinyWebP/Decoder/RIFFReader.swift:98-123 | 5. Cross Color/Sources/TinyWebP/Decoder/RIFFReader.swift:98-123 | 6. Color Indexing/Sources/TinyWebP/Decoder/RIFFReader.swift:98-123 | 7. Color Cache/Sources/TinyWebP/Decoder/RIFFReader.swift:98-123 | 8. Complete/Sources/WebP/Decoder/RIFFReader.swift:92-117 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift:98\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":"1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd4ce198b8f61f53f6ec049bd05b523f8f7e53dcc7f215a7aa354422795fc36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:32-57 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:32-57 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:32-57 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:32-57 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:34-59 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:34-59 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:34-59 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d944e6cbe8b1dc8af562763347c6b6645b8a0f6167526164bccd460122f16731"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): 5. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift:34-59 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:214-239 \u2014 before extracting anything, compare \u00605. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/EncodeTransform.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00605. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift:34\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"5. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"59de176fb81eebdbc1a108b790a171071b8a2bc436f0dda6465f5ac75ff65e54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift:23-46 | 2. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift:23-46 | 3. LZ77/Sources/TinyWebP/Decoder/RIFFReader.swift:23-46 | 4. Predictor/Sources/TinyWebP/Decoder/RIFFReader.swift:23-46 | 5. Cross Color/Sources/TinyWebP/Decoder/RIFFReader.swift:23-46 | 6. Color Indexing/Sources/TinyWebP/Decoder/RIFFReader.swift:23-46 | 7. Color Cache/Sources/TinyWebP/Decoder/RIFFReader.swift:23-46 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"16136e29cb1ee304c2ffb8ddba1482741834b5723edd4e52d0215091778338c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:85-125 | 2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift:85-125 | 3. LZ77/Sources/TinyWebP/Encoder/Debug.swift:85-125 | 4. Predictor/Sources/TinyWebP/Encoder/Debug.swift:85-125 | 5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift:85-125 | 6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift:85-125 | 7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift:85-125 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"9164839a845a0b0a8210d1cec0864f211a20f36f622982b630643276cfe89c2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:186-207 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:191-212 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:317-338 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:197-218 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:201-222 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:209-230 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:237-258 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:186\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ca5c831fe7c7c02ce72861b20a8b5f34c91c756a828817ad916ce232a0944c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:95-115 | 8. Complete/Sources/WebP/Encoder/Writer.swift:285-305 \u2014 before extracting anything, compare \u00607. Color Cache/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00607. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:95\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, \u00607. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:116\u0060 calls \u0060debugDumpHistogramsGRBAD\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift:307\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":"7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2825143b1782af01fa0b8841268876168ce9c8e29f18b243ae1c0b1d32690cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:158-178 | 8. Complete/Sources/WebP/Encoder/Writer.swift:438-458 \u2014 before extracting anything, compare \u00607. Color Cache/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00607. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:158\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":"7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c4d5bf0e3a51ae278a8bf3d8793b519e762453bb3d2476bad8b85c6aecc477"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:69-87 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:69-87 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:69-87 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:70-88 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:70-88 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:70-88 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:70-88 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:70-88 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8869de9b2321a36687f525ffec9d685b0ee5a16fd7082f1c01576f679af91ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:175-193 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:180-198 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:306-324 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:186-204 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:190-208 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:198-216 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:226-244 | 8. Complete/Sources/WebP/Encoder/Writer.swift:537-554 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:175\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":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd327e5bd2d27f5b54973b3bf83782431edbd201b19ebf724c86661c309b33a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:330-348 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:330-348 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:330-348 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:330-348 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:336-354 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:336-354 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:336-354 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e8f580bba824a53852a31847c8b3b91b239676b683eed9a049e8d0eb327f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:209-227 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:209-227 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:209-227 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:210-228 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:210-228 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:210-228 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:210-228 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift: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":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"36df60e58b31e0fdea03325625c58f96f95be48010af3f1e9af94574f005651c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201319 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:91-109 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:96-114 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:91-109 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:101-119 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:101-119 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:106-124 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:118-121 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:91\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":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3b8d49c1d9b0745151ceda90f806c63c424a96f2813ae0784d78472d32faf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:155-173 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:160-178 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:166-184 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:170-188 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:155\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b228d52bc8014bcebcc702c0e2aaf15515b3ebacf5d18713239edbef525e32b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): 8. Complete/Sources/WebP/Decoder/WebPDecoder.swift:63-81 | 8. Complete/Sources/WebP/Decoder/WebPDecoder.swift:98-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u00608. Complete/Sources/WebP/Decoder/WebPDecoder.swift:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/WebPDecoder.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e668118feed4c434fedcd077029af47b8103b6d3d52069102c7987f6bca3ba16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:59-76 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:59-76 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:59-76 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:59-76 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:61-78 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:61-78 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:61-78 | 8. Complete/Sources/WebP/Decoder/VP8L/VP8LDecoder.swift:106-123 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"91506cad428f112179e3d3e75d3fc1700af59a4fe69fb12ae0ee3ec630e2e5dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:350-367 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:350-367 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:350-367 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:350-367 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:356-373 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:356-373 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:356-373 | 8. Complete/Sources/WebP/Decoder/VP8L/VP8LDecoder.swift:494-511 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f76c9b4b967e8acb89e57c19404976932dba166031e421d52ed5902d7f2ef29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:42-59 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:42-59 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:42-59 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:42-59 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:42-59 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:42-59 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:42-59 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c53c83fd4f1cf78e91b6e71f6fbf2c5446aa0c60ede0eb21f5d6782b8783bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:131-148 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:136-153 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:142-159 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:146-163 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:145-162 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0baf9899747e63d264b0b2ae587fc781bc271823303f1eafca45e005550f1d4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:190-207 | 8. Complete/Sources/WebP/Encoder/Writer.swift:495-512 \u2014 before extracting anything, compare \u00607. Color Cache/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00607. Color Cache/Sources/TinyWebP/Encoder/Writer.swift: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"853093da557fc6fedbbba36fe3e9d72d247993af3ebdcd9aebe0185adfc58dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:311-328 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:355-372 \u2014 both copies are in the same file, so extract the block 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":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a892c1fb073f3b1d9f12ee720cdf4a2d941e8a34efcf64c3080ba415f3a18a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201323 lines \u00D7 4): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:112-129 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:116-134 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:122-140 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:122-144 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:112\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":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a905cd7340432693e657e8fbc46405cc38946d75dbcbe1ca0330687565787e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:279-294 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:176-192 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:202-217 | 8. Complete/Sources/WebP/Encoder/Writer.swift:507-522 \u2014 before extracting anything, compare \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00606. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift:279\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3bdaab0546cb18bec286043bc31f164a1372859e783acb833a6019a8aa32b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:242-257 | 8. Complete/Sources/WebP/Encoder/Writer.swift:463-478 \u2014 before extracting anything, compare \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fc193e7d466adf5799a16cfe6806d577c64cb2f6c1ba4f119b4bec079d9110"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): 5. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift:17-30 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:196-211 \u2014 before extracting anything, compare \u00605. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/EncodeTransform.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00605. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift:17\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":"5. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec983b4ec4732f6c329fb36c1bbb6846be4b4ab0e1579449e57a3b9d7dedee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:123-138 | 8. Complete/Sources/WebP/Encoder/Writer.swift:321-335 \u2014 before extracting anything, compare \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift:123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"913483e3fad43ea10cdd14f7cca681a54db8dd2ad5e15140fb56232a8fe830a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:215-229 | 8. Complete/Sources/WebP/Encoder/Writer.swift:424-438 \u2014 before extracting anything, compare \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift:215\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":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a6cebc3aae61fdf9c149ea9e08f23d6d257bac0df13d251f75a52f32d805a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (73 lines \u00D7 2): 4. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift:106-178 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:106-178 \u2014 before extracting anything, compare \u00604. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/EncodeTransform.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"4. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6845ef526f27fe845e3e87a2dd2794a2ea1122b3c6eea5e0d049274082b25eb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 14): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:51-63 | 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:305-317 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:51-63 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:305-317 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:51-63 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:305-317 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:65-77 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:305-317 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:65-77 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:311-323 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:65-77 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:311-323 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:65-77 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:311-323 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift\u0060 as WHOLE FILES: 97% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift:51\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":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/PrefixCode.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1414d78537eb51639dc4279c078ae39987714a5e803bab99ae256671daddbcd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:111-126 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:122-137 | 8. Complete/Sources/WebP/Encoder/Writer.swift:309-324 \u2014 before extracting anything, compare \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00607. Color Cache/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift:111\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":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"703b3a1508e097781cc0ab282e350a2265b80df102533ed7eb50ce4402e9339d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:10-21 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:10-21 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:10-21 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:10-21 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:10-21 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:10-21 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:10-21 | 8. Complete/Sources/WebP/Encoder/Writer.swift:44-55 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:10\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u00608. Complete/Sources/WebP/Encoder/Writer.swift:41\u0060 calls \u0060writeChunkVP8X\u0060 and \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:8\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":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ead236836eb16436459f05466cd1c9870b9683384b5656f793a1ddec863e325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift:22-33 | 2. Subtract Green/Sources/TinyWebP/Encoder/BitWriter.swift:22-33 | 3. LZ77/Sources/TinyWebP/Encoder/BitWriter.swift:22-33 | 4. Predictor/Sources/TinyWebP/Encoder/BitWriter.swift:22-33 | 5. Cross Color/Sources/TinyWebP/Encoder/BitWriter.swift:22-33 | 6. Color Indexing/Sources/TinyWebP/Encoder/BitWriter.swift:22-33 | 7. Color Cache/Sources/TinyWebP/Encoder/BitWriter.swift:22-33 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/BitWriter.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3282cf446595394c2149872e85df5c31dbba0c20418ade8e5f28a7a17549bc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): 5. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift:2-13 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:182-192 \u2014 before extracting anything, compare \u00605. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/EncodeTransform.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00605. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift:2\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":"5. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"904e5368997f58fd561269e3a18636abb588faf83c6bdf629af1e2d02db9cafb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:116-126 | 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:116-126 | 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:116-126 | 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:116-126 | 5. Cross Color/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:122-132 | 6. Color Indexing/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:122-132 | 7. Color Cache/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift:122-132 | 8. Complete/Sources/WebP/Decoder/VP8L/VP8LDecoder.swift:413-423 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 357 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92ddb338fc66d467d21ba55a26ae8e8326176df4d9d0913bfee25c2d2fa5255"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift:21-31 | 2. Subtract Green/Sources/TinyWebP/Encoder/BitWriter.swift:21-31 | 3. LZ77/Sources/TinyWebP/Encoder/BitWriter.swift:21-31 | 4. Predictor/Sources/TinyWebP/Encoder/BitWriter.swift:21-31 | 5. Cross Color/Sources/TinyWebP/Encoder/BitWriter.swift:21-31 | 6. Color Indexing/Sources/TinyWebP/Encoder/BitWriter.swift:21-31 | 7. Color Cache/Sources/TinyWebP/Encoder/BitWriter.swift:21-31 | 8. Complete/Sources/WebP/Encoder/BitWriter.swift:21-29 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/BitWriter.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift:21\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, \u00601. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift:32\u0060 calls \u0060bitString\u0060 and \u00608. Complete/Sources/WebP/Encoder/BitWriter.swift:30\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4125a5f2d4342ddf26b6250b287a5c220e5317aa6125d30a50ef8c288e7a2bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:57-67 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:57-67 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:57-67 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:58-68 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:58-68 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:58-68 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:58-68 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:58-68 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5b80eb93d29f7c152d7cea03596eba284c163c7d4672d38100451936e90603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:160-170 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:160-170 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:160-170 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:161-171 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:161-171 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:161-171 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:161-171 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:158-168 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:155\u0060 calls \u0060dumpCanonicalTable\u0060 and \u00608. Complete/Sources/WebP/Encoder/HuffmanCode.swift:153\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":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56c4bce1af830a1eeb383eb767845cf9a5ec4909a5a087dc52cdbf5fb841d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:41-51 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:41-51 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:41-51 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:41-51 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:41-51 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:41-51 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:41-51 | 8. Complete/Sources/WebP/Encoder/Writer.swift:182-192 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:41\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":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"c637855f9761ce77c656fda8d6768d8cafdfb73a15671fb1341d3a5b5f42e0a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): 4. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift:3-13 | 5. Cross Color/Sources/TinyWebP/Encoder/EncodeTransform.swift:3-13 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:3-13 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:182-192 \u2014 before extracting anything, compare \u00604. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/EncodeTransform.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00604. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift:3\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":"4. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d83635ed6531a175dd1036600383359048009f57d04abed8b2fa16ae636ede0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:230-240 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:171-181 | 8. Complete/Sources/WebP/Encoder/Writer.swift:451-461 \u2014 before extracting anything, compare \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00607. Color Cache/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift:230\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d3010cbdb0d8c2cf9c21820892d62436b041a7eb5c97d71c621128ee6988c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:484-494 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:562-572 \u2014 both copies are in the same file, so extract the block 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":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca00272755a26bdfee785b80751fc32dfbb4a12c1c6cf7effc2713d6a5706e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:219-228 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:219-228 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:219-228 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:220-229 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:220-229 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:220-229 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:220-229 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:217-226 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:219\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":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"7967cc1fd20861a78c1725bce064e8537e4b7dd54a73eec100f1b5944207c47d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:153-162 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:158-167 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:277-286 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:164-173 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:168-177 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:174-183 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:200-209 | 8. Complete/Sources/WebP/Encoder/Writer.swift:505-514 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:153\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":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e0722c079a4045ceabe963fabf8e9804b6a967e5956dff82dcbf248703ae19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:231-240 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:231-240 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:231-240 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:232-241 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:236-245 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:232-241 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:232-241 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:231\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":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92543fbf4702ded9b542214992fb491b35076eb8ed51d2e1234b953b9ae14ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:433-442 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:472-481 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:509-518 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:550-559 \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 \u00608. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:433\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":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f89542272f64dd7084ddaf179deca0c43cfeccf35f7a464802c92bb800a91c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 2. Subtract Green/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 3. LZ77/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 4. Predictor/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 5. Cross Color/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 6. Color Indexing/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 7. Color Cache/Sources/TinyWebP/Decoder/ByteReader.swift:22-31 | 8. Complete/Sources/WebP/Decoder/ByteReader.swift:22-31 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/ByteReader.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/ByteReader.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/ByteReader.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"df549fc314d7f0fad602b62667ede05b96350907eb2b64830998a48232b19a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:71-79 | 8. Complete/Sources/WebP/Encoder/Writer.swift:221-229 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f94042168e5d7b29bb743ab8ca93249411f31548f9746304c6775fe65047c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:206-227 | 2. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift:211-232 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:337-358 | 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:217-238 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:221-242 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:229-250 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:257-278 | 8. Complete/Sources/WebP/Encoder/Writer.swift:567-588 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:206\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"82dbd9253e51b331324dfd9e133404cadabecbde52abafd85963e9e24938c6ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20139 lines \u00D7 14): 1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:40-41 | 1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:42-50 | 2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift:40-41 | 2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift:42-50 | 3. LZ77/Sources/TinyWebP/Encoder/Debug.swift:40-41 | 3. LZ77/Sources/TinyWebP/Encoder/Debug.swift:42-50 | 4. Predictor/Sources/TinyWebP/Encoder/Debug.swift:40-41 | 4. Predictor/Sources/TinyWebP/Encoder/Debug.swift:42-50 | 5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift:40-41 | 5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift:42-50 | 6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift:40-41 | 6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift:42-50 | 7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift:40-41 | 7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift:42-50 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:42\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd49792c27238dd5b8fe7b2ed7eb18cd68e3baf2f564d9a8fe66d482e9aab2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): 1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift:81-89 | 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:81-89 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d3d15e316907b2cecf1cd10abcaec1e871459192a4b2bffb4db1c0a60d4b7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:127-135 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:122-130 \u2014 before extracting anything, compare \u00606. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00607. Color Cache/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00606. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:127\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":"6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bdef3c6e8049d3a24041e49a8b1c3687aef08e54727f3d181ade9b1299d9ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): 8. Complete/Sources/WebP/Decoder/VP8/Residuals.swift:293-301 | 8. Complete/Sources/WebP/Decoder/VP8/Residuals.swift:313-321 \u2014 both copies are in the same file, so extract the block 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 \u00608. Complete/Sources/WebP/Decoder/VP8/Residuals.swift:293\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u00608. Complete/Sources/WebP/Decoder/VP8/Residuals.swift:309\u0060 calls \u0060Int\u0060 and \u00608. Complete/Sources/WebP/Decoder/VP8/Residuals.swift:292\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":"8. Complete/Sources/WebP/Decoder/VP8/Residuals.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4e3103bf9a0d328627ffc08eaa8b0eb8beff5b5a20672d9f2f5394597c78c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 2. Subtract Green/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 3. LZ77/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 4. Predictor/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 5. Cross Color/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 6. Color Indexing/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 7. Color Cache/Sources/TinyWebP/Encoder/BitWriter.swift:6-13 | 8. Complete/Sources/WebP/Encoder/BitWriter.swift:6-13 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/BitWriter.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c9b35633cc875fcd8f131411ca59e0703559390f2ba8bbf0d4b56127c270e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:127-141 | 2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift:127-141 | 3. LZ77/Sources/TinyWebP/Encoder/Debug.swift:127-141 | 4. Predictor/Sources/TinyWebP/Encoder/Debug.swift:127-141 | 5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift:127-141 | 6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift:127-141 | 7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift:127-141 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a1fe3a80c86ba089d499dd7cbc278dfcf540c785e5030b386c81d74be871f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:81-88 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:81-88 \u2014 before extracting anything, compare \u00604. Predictor/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00605. Cross Color/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00604. Predictor/Sources/TinyWebP/Encoder/Writer.swift:81\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"4. Predictor/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff3314ae019a0b81c1089e70156204b574863cf1135953af9ae56f63ac3f557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:92-99 | 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:92-99 \u2014 before extracting anything, compare \u00604. Predictor/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00605. Cross Color/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 218 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00604. Predictor/Sources/TinyWebP/Encoder/Writer.swift:92\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":"4. Predictor/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"530c608317a44667d316ca19fdf600d8dabd447b17f4c4ce646e661ff22af998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 2. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 3. LZ77/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 4. Predictor/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 5. Cross Color/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 6. Color Indexing/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 7. Color Cache/Sources/TinyWebP/Decoder/RIFFReader.swift:132-138 | 8. Complete/Sources/WebP/Decoder/RIFFReader.swift:126-132 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"2451a36af0da69a3e253fb64670d97d6c9f95c5d3e09c893898735437f6163c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:76-83 | 2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift:76-83 | 3. LZ77/Sources/TinyWebP/Encoder/Debug.swift:76-83 | 4. Predictor/Sources/TinyWebP/Encoder/Debug.swift:76-83 | 5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift:76-83 | 6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift:76-83 | 7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift:76-83 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b295bb970c8c81ae35bd8f3a2652e3f08eb3a3fe4f2f328dbcf6ddc165d5fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:83-89 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:429-435 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:505-511 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65050ed364ea9f50649f7606310ed21747524a8d8fa0691c41a79b845baff4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:90-96 | 8. Complete/Sources/WebP/Encoder/Writer.swift:242-248 \u2014 before extracting anything, compare \u00606. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f016c3bb999ce8ede9d75dd4faa1c772e14499fe8c2fb7d189d47bdbf82a41b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift:63-74 | 2. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift:63-74 | 3. LZ77/Sources/TinyWebP/Encoder/Debug.swift:63-74 | 4. Predictor/Sources/TinyWebP/Encoder/Debug.swift:63-74 | 5. Cross Color/Sources/TinyWebP/Encoder/Debug.swift:63-74 | 6. Color Indexing/Sources/TinyWebP/Encoder/Debug.swift:63-74 | 7. Color Cache/Sources/TinyWebP/Encoder/Debug.swift:63-74 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/Debug.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/Debug.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8c12ed5facc04be81cc8e6db2a8b194298b74d896674ccfedd7a42f5ccfa44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): 4. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift:37-42 | 4. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift:74-79 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:37-42 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:74-79 \u2014 before extracting anything, compare \u00604. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/EncodeTransform.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00604. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift:37\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":"4. Predictor/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c9f1402cd1b76bf03fabc20bc37702da594c2c047da897d7e4be21a0ea6cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:113-118 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:448-453 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:524-529 \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 \u00608. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:113\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":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9710b9b8419c4b5f213ba020a3733f84deeddf8b7181862522d2c97fc7bb0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:205-210 | 8. Complete/Sources/WebP/Encoder/Writer.swift:413-418 \u2014 before extracting anything, compare \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift:205\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":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3679c29fe7539e5588d7c2dee90d3d4a17e49bc6965bec60404bf2199e5b7410"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): 4. Predictor/Sources/TinyWebP/Encoder/Writer.swift:87-92 | 8. Complete/Sources/WebP/Encoder/Writer.swift:271-276 \u2014 before extracting anything, compare \u00604. Predictor/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"4. Predictor/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cfedbe4ba76813d9b48e3092c9b176a2b3e7c8011dc20478837ad11d8bd3e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): 5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift:87-92 | 8. Complete/Sources/WebP/Encoder/Writer.swift:261-266 \u2014 before extracting anything, compare \u00605. Cross Color/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"5. Cross Color/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce466035da98a18739dc8bdb82c13eb8d9824a4cef0c01f76482f96c5cbb0898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:456-461 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:532-537 \u2014 both copies are in the same file, so extract the block 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":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f406f7e700365457cc11afa1bb71b382852dd4aefd1d1fe581611c7b362cf66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): 2. Subtract Green/Sources/TinyWebP/Encoder/EncodeTransform.swift:1-6 | 8. Complete/Sources/WebP/Encoder/EncodeTransform.swift:242-246 \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":"2. Subtract Green/Sources/TinyWebP/Encoder/EncodeTransform.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c310421a1177eda40a9584aaa2ee041e42c87157604dc65759e84d9e71ddc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:464-468 | 8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift:540-546 \u2014 both copies are in the same file, so extract the block 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":"8. Complete/Sources/WebP/Decoder/VP8/PredictorModes.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6245c4d9044fba268bb203988ee80db537f6f8b5a7468bcf8cfd35e8dd93642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Decoder/RIFF.swift:5-16 | 2. Subtract Green/Sources/TinyWebP/Decoder/RIFF.swift:5-16 | 3. LZ77/Sources/TinyWebP/Decoder/RIFF.swift:5-16 | 4. Predictor/Sources/TinyWebP/Decoder/RIFF.swift:5-16 | 5. Cross Color/Sources/TinyWebP/Decoder/RIFF.swift:5-16 | 6. Color Indexing/Sources/TinyWebP/Decoder/RIFF.swift:5-16 | 7. Color Cache/Sources/TinyWebP/Decoder/RIFF.swift:5-16 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/RIFF.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/RIFF.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/RIFF.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"019ce4e920d2268db160a6a2af57c93f53c81b5f87fee2d0439216254762b49b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Decoder/ByteReader.swift:11-20 | 2. Subtract Green/Sources/TinyWebP/Decoder/ByteReader.swift:11-20 | 3. LZ77/Sources/TinyWebP/Decoder/ByteReader.swift:11-20 | 4. Predictor/Sources/TinyWebP/Decoder/ByteReader.swift:11-20 | 5. Cross Color/Sources/TinyWebP/Decoder/ByteReader.swift:11-20 | 6. Color Indexing/Sources/TinyWebP/Decoder/ByteReader.swift:11-20 | 7. Color Cache/Sources/TinyWebP/Decoder/ByteReader.swift:11-20 | 8. Complete/Sources/WebP/Decoder/ByteReader.swift:11-20 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/ByteReader.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/ByteReader.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/ByteReader.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8276b6d040a9e6ae8c2874198f7fc0c63c3d43b77c528cbd2f92a2e49fc535d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Decoder/ByteReader.swift:33-39 | 2. Subtract Green/Sources/TinyWebP/Decoder/ByteReader.swift:33-39 | 3. LZ77/Sources/TinyWebP/Decoder/ByteReader.swift:33-39 | 4. Predictor/Sources/TinyWebP/Decoder/ByteReader.swift:33-39 | 5. Cross Color/Sources/TinyWebP/Decoder/ByteReader.swift:33-39 | 6. Color Indexing/Sources/TinyWebP/Decoder/ByteReader.swift:33-39 | 7. Color Cache/Sources/TinyWebP/Decoder/ByteReader.swift:33-39 | 8. Complete/Sources/WebP/Decoder/ByteReader.swift:33-39 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/ByteReader.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/ByteReader.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/ByteReader.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06b2750821d39c031b29161698532732bba3b8369da9f236dcb4c721ee59911"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift:125-129 | 2. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift:125-129 | 3. LZ77/Sources/TinyWebP/Decoder/RIFFReader.swift:125-129 | 4. Predictor/Sources/TinyWebP/Decoder/RIFFReader.swift:125-129 | 5. Cross Color/Sources/TinyWebP/Decoder/RIFFReader.swift:125-129 | 6. Color Indexing/Sources/TinyWebP/Decoder/RIFFReader.swift:125-129 | 7. Color Cache/Sources/TinyWebP/Decoder/RIFFReader.swift:125-129 | 8. Complete/Sources/WebP/Decoder/RIFFReader.swift:119-123 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Decoder/RIFFReader.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Decoder/RIFFReader.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"548271396e8f72964454b36afd60ab1b74b80da11b236f84c7d1f161be67ba10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift:40-46 | 2. Subtract Green/Sources/TinyWebP/Encoder/BitWriter.swift:40-46 | 3. LZ77/Sources/TinyWebP/Encoder/BitWriter.swift:40-46 | 4. Predictor/Sources/TinyWebP/Encoder/BitWriter.swift:40-46 | 5. Cross Color/Sources/TinyWebP/Encoder/BitWriter.swift:40-46 | 6. Color Indexing/Sources/TinyWebP/Encoder/BitWriter.swift:40-46 | 7. Color Cache/Sources/TinyWebP/Encoder/BitWriter.swift:40-46 | 8. Complete/Sources/WebP/Encoder/BitWriter.swift:37-43 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/BitWriter.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/BitWriter.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e8a9be83820b0a0a8e3cfc5075131891ec45dbb73aff24ee21db7e9aca1c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:6-10 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:6-10 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:6-10 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:6-10 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:6-10 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:6-10 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:6-10 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:6-10 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef8db9dce36827ddccd826318b748c978ab5ad2262d74281c6ac96b607d339b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:20-31 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:20-31 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:20-31 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:20-32 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:20-32 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:20-32 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:20-32 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:20-32 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1707eef265fe054b666beea9fc23fb4a9901a35411fc9616c57efd0d9b46f46d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift:45-55 | 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift:45-55 | 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift:45-55 | 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift:46-56 | 5. Cross Color/Sources/TinyWebP/Encoder/HuffmanCode.swift:46-56 | 6. Color Indexing/Sources/TinyWebP/Encoder/HuffmanCode.swift:46-56 | 7. Color Cache/Sources/TinyWebP/Encoder/HuffmanCode.swift:46-56 | 8. Complete/Sources/WebP/Encoder/HuffmanCode.swift:46-56 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 202 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fcb39b7e9db3d9c0a0404a7d76bf1e3b81f1d48b78534793c92c616dff47bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): 1. Prefix Coding/Sources/TinyWebP/Encoder/NRGBA.swift:7-12 | 2. Subtract Green/Sources/TinyWebP/Encoder/NRGBA.swift:7-12 | 3. LZ77/Sources/TinyWebP/Encoder/NRGBA.swift:7-12 | 4. Predictor/Sources/TinyWebP/Encoder/NRGBA.swift:7-12 | 5. Cross Color/Sources/TinyWebP/Encoder/NRGBA.swift:7-12 | 6. Color Indexing/Sources/TinyWebP/Encoder/NRGBA.swift:7-12 | 7. Color Cache/Sources/TinyWebP/Encoder/NRGBA.swift:7-12 \u2014 before extracting anything, compare \u00601. Prefix Coding/Sources/TinyWebP/Encoder/NRGBA.swift\u0060 and \u00602. Subtract Green/Sources/TinyWebP/Encoder/NRGBA.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Sources/TinyWebP/Encoder/NRGBA.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3153d0e7e163d54eb069b58d4b9f1e0ce7b23c6f0da4f39cebcdfc843edd4fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:259-265 | 8. Complete/Sources/WebP/Encoder/Writer.swift:480-486 \u2014 before extracting anything, compare \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00608. Complete/Sources/WebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc882c2b0daa8d39aff13998f682cc6e71f3a8e157129b2baada03a187cf0d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): 3. LZ77/Sources/TinyWebP/Encoder/Writer.swift:267-272 | 6. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift:164-169 | 7. Color Cache/Sources/TinyWebP/Encoder/Writer.swift:183-188 | 8. Complete/Sources/WebP/Encoder/Writer.swift:488-493 \u2014 before extracting anything, compare \u00603. LZ77/Sources/TinyWebP/Encoder/Writer.swift\u0060 and \u00606. Color Indexing/Sources/TinyWebP/Encoder/Writer.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 165 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Sources/TinyWebP/Encoder/Writer.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c870ff234036af227f2adfc0c95899dca16bc412c59c572c978c461a238a8d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: example: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RIFF Header Reader/Tests/Tests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7855b70f55da9e3ae6118a2eeb180732af747401862e6f799749001751c3e5"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u00608. Complete\u0060 is a published Swift package (a \u0060.library\u0060 product) and neither \u00608. Complete/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"8. Complete/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5756dc6780d1276780dc46c4f0fa035ae11592f31c3334a7cc916324f5ecbd"}},{"ruleId":"M1","level":"note","message":{"text":"Thin README: The root README is 2 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, in the README and in the repository documents it links, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise \u2014 or with no heading at all \u2014 is not seen and this row may understate what the document covers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88b11295dc6ac6146c259ace6043143959f96dc98628f8c8578b6c5f95b8149"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P10","level":"note","message":{"text":"No explicit versioning: No explicit version was found for the SwiftPM library declared by \u0060Package.swift\u0060. This check read nothing in Package.swift, which has no version field, and a CHANGELOG/CHANGES/HISTORY/NEWS/RELEASES file with a semver heading, or release tooling (changesets, release-please, semantic-release, goreleaser, cargo-release, bump2version, standard-version, git-cliff) in the library\u0027s directory or at the repository root, or a semver release tag (or a Drupal \u00608.x-1.2\u0060 release tag) in the repository. A version computed where none of those can see is invisible here. A published library needs explicit semantic versioning so consumers can reason about breaking changes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"1. Prefix Coding/Package.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffad4a0a3dbaebfa8c601eedcd3726e16eec08407db892c8d3c693ab20d03281"}},{"ruleId":"P10","level":"note","message":{"text":"No explicit versioning: No explicit version was found for the SwiftPM library declared by \u0060Package.swift\u0060. This check read nothing in Package.swift, which has no version field, and a CHANGELOG/CHANGES/HISTORY/NEWS/RELEASES file with a semver heading, or release tooling (changesets, release-please, semantic-release, goreleaser, cargo-release, bump2version, standard-version, git-cliff) in the library\u0027s directory or at the repository root, or a semver release tag (or a Drupal \u00608.x-1.2\u0060 release tag) in the repository. A version computed where none of those can see is invisible here. A published library needs explicit semantic versioning so consumers can reason about breaking changes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"2. Subtract Green/Package.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7deb7b15a908976b8099fcc111c97f072c299fc628362020780557b17a84397"}},{"ruleId":"P10","level":"note","message":{"text":"No explicit versioning: No explicit version was found for the SwiftPM library declared by \u0060Package.swift\u0060. This check read nothing in Package.swift, which has no version field, and a CHANGELOG/CHANGES/HISTORY/NEWS/RELEASES file with a semver heading, or release tooling (changesets, release-please, semantic-release, goreleaser, cargo-release, bump2version, standard-version, git-cliff) in the library\u0027s directory or at the repository root, or a semver release tag (or a Drupal \u00608.x-1.2\u0060 release tag) in the repository. A version computed where none of those can see is invisible here. A published library needs explicit semantic versioning so consumers can reason about breaking changes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"3. LZ77/Package.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96dbdfefe55b656818bf1f64ee87e0f9d2f319e21a7290494490aa6d0f71ac88"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060l \u003C a.count \u0026\u0026 a[l].weight \u003C a[m].weight\u0060 appears character-identically in 8 files \u2014 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift, 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift, 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift, 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift. 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":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e542b26ea52df2b38d5c7e817e3357c62ceb12c6c10c42e24a4ed228fcce464f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nodes[idx].left != nil || nodes[idx].right != nil\u0060 appears character-identically in 7 files \u2014 1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift, 2. Subtract Green/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift, 3. LZ77/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift, 4. Predictor/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift. 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":"1. Prefix Coding/Sources/TinyWebP/Decoder/VP8L/VP8LDecoder.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"861494b4d6eb209aeca09a0018c3d029c8cfb89870c64b846b97e0ec90ebe49d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060r \u003C a.count \u0026\u0026 a[r].weight \u003C a[m].weight\u0060 appears character-identically in 8 files \u2014 1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift, 2. Subtract Green/Sources/TinyWebP/Encoder/HuffmanCode.swift, 3. LZ77/Sources/TinyWebP/Encoder/HuffmanCode.swift, 4. Predictor/Sources/TinyWebP/Encoder/HuffmanCode.swift. 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":"1. Prefix Coding/Sources/TinyWebP/Encoder/HuffmanCode.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6faf98beddd16f124b5a6b6e236478461a6528f99ea17f9d8f4ec4cd670c00d2"}}],"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-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-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":"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/"}]}],"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":0,"secretScannerRunsExcluded":0}}}]}