{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"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":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"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":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"KingfisherManager.retrieveImage (cyclomatic 19): KingfisherManager.retrieveImage has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 2 function items inside it that branch (handler, failCurrentSource). 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: Sources/General/KingfisherManager.swift holds 3 of the 5 methods over the threshold \u2014 including the worst \u2014 and 9 of the 13 points over it (69%), 3\u00D7 the next-largest file (Sources/SwiftUI/KFImageRenderer.swift at 3). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KingfisherManager.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3524a0c928dd1531f0080f267ceda4ee37151ed3ad8b342eb6e7f8eb92cd9d"}},{"ruleId":"D1","level":"warning","message":{"text":"KingfisherManager.deliverOriginalCacheHit (cyclomatic 19): KingfisherManager.deliverOriginalCacheHit 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: Sources/General/KingfisherManager.swift holds 3 of the 5 methods over the threshold \u2014 including the worst \u2014 and 9 of the 13 points over it (69%), 3\u00D7 the next-largest file (Sources/SwiftUI/KFImageRenderer.swift at 3). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KingfisherManager.swift"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc4409e13d1f768303430409737450a7d29a8af41455fe122a9a37ba4098a8a"}},{"ruleId":"D1","level":"warning","message":{"text":"KFImageRenderer.body (cyclomatic 18): KFImageRenderer.body has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftUI/KFImageRenderer.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1dcaedf4236b57e0ad901122e8c9427a4fbfe2386fd19e9fac4b2be56aa5c0b"}},{"ruleId":"D1","level":"warning","message":{"text":"KingfisherManager.cacheImage (cyclomatic 16): KingfisherManager.cacheImage has cyclomatic complexity 16 (threshold 15). Of this number, 15 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: Sources/General/KingfisherManager.swift holds 3 of the 5 methods over the threshold \u2014 including the worst \u2014 and 9 of the 13 points over it (69%), 3\u00D7 the next-largest file (Sources/SwiftUI/KFImageRenderer.swift at 3). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KingfisherManager.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0af3b0f5f03a909e235240b902df77d2b27769e441051aa5fa5b89989fe6c8e"}},{"ruleId":"D1","level":"warning","message":{"text":"CGImageFrameSource.thumbnailMaxPixelSize (cyclomatic 16): CGImageFrameSource.thumbnailMaxPixelSize has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Image/GIFAnimatedImage.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0a5b2e21f6fd3f5fc1f0fe0029fa788d11379fe63568f3250b6982bccb6297"}},{"ruleId":"D2","level":"warning","message":{"text":"KingfisherManager.cacheImage (cognitive 33): KingfisherManager.cacheImage has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (21 pts), ternaries 1 (5 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 19). Of this number, 28 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This file is where this pass\u0027s cognitive complexity CONCENTRATES: Sources/General/KingfisherManager.swift holds 3 of the 7 methods over the threshold \u2014 including the worst \u2014 and 33 of the 60 points over it (55%), 2.4\u00D7 the next-largest file (Sources/SwiftUI/KFImageRenderer.swift at 14). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KingfisherManager.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"f893edf825f75c7d5a2a651fade04a7ec97ab8ddab130fbf0a50ec76118bd801"}},{"ruleId":"D2","level":"warning","message":{"text":"KFImageRenderer.body (cognitive 29): KFImageRenderer.body has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (21 pts), ternaries 3 (6 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftUI/KFImageRenderer.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05043f29bb7d8193d5f18d228d858a88af41095bd4f3d258786e6d15b906bfc"}},{"ruleId":"D2","level":"warning","message":{"text":"KingfisherManager.retrieveImage (cognitive 24): KingfisherManager.retrieveImage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (19 pts), match/switch 3 (5 pts) (nesting depth added 6). Most of this is not in the body itself: 5 of the 24 points are its own statements and the rest belongs to 2 function items inside it that branch (failCurrentSource, handler). 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: Sources/General/KingfisherManager.swift holds 3 of the 7 methods over the threshold \u2014 including the worst \u2014 and 33 of the 60 points over it (55%), 2.4\u00D7 the next-largest file (Sources/SwiftUI/KFImageRenderer.swift at 14). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KingfisherManager.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"4446ade3627c70b0f82c2ddfe346854bf5f5c99bc2f43e125182f70c08d0af07"}},{"ruleId":"D2","level":"warning","message":{"text":"KingfisherWrapper.animatedImage (cognitive 23): KingfisherWrapper.animatedImage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Image/Image.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7195976217a6d8a5e9923582607e742d3bf5617788b6615bd8c4cc35335997"}},{"ruleId":"D2","level":"warning","message":{"text":"KingfisherManager.deliverOriginalCacheHit (cognitive 21): KingfisherManager.deliverOriginalCacheHit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: Sources/General/KingfisherManager.swift holds 3 of the 7 methods over the threshold \u2014 including the worst \u2014 and 33 of the 60 points over it (55%), 2.4\u00D7 the next-largest file (Sources/SwiftUI/KFImageRenderer.swift at 14). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KingfisherManager.swift"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"7725dbb7c7931dd54f9babe5641c6106c9f9627aea58d4b8702f2d560a94c1ad"}},{"ruleId":"D2","level":"warning","message":{"text":"KingfisherWrapper.setImage (cognitive 18): KingfisherWrapper.setImage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Extensions/PHLivePhotoView\u002BKingfisher.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5bc3941769813e3469f9e6eb2e1fe4e99f4249a288e1087f82fd3debc3d0a7"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageCache.retrieveImageInDiskCache (cognitive 17): ImageCache.retrieveImageInDiskCache has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 2, boolean chains 1, ternaries 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":"Sources/Cache/ImageCache.swift"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"273c0cf468ed9c82a7bae18296e378c795fe27f699b2a9e9da7274c95e4c8b25"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KingfisherWrapper: TooManyMethods \u2014 81 methods, declared across 13 files: Image/ImageDrawing.swift (20), Extensions/UIButton\u002BKingfisher.swift (15), Image/Image.swift (11), Extensions/ImageView\u002BKingfisher.swift (9), \u002B9 more file(s). The bar is 30 methods; this is 51 over it, 2.70\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/Kingfisher.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b7c0e8bd6e09824d64b4966220d93915a2a7569dc19b4c6ed6e263cc3285d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: General/KingfisherManager.swift: FileTooLong \u2014 1079 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: KingfisherManager (138-1355). The bar is 500 significant lines; this is 579 over it, 2.16\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KingfisherManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3f2fdd82fe58a6d9fc00e6e2571995e460579d8c481c3a64eb23f48919a338"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KingfisherManager: ClassTooLong \u2014 744 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 344 over it, 1.86\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KingfisherManager.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8578d991def6685e6eafa7712d35a163f298d3e3783d38b42837cb6cd48f3e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImageCache: TooManyMethods \u2014 48 methods, declared across 2 files: Cache/ImageCache.swift (46), General/KingfisherManager\u002BLivePhoto.swift (2). The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/ImageCache.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0157ac02b4cf538999c0cd1c6a5b56385fa2f4e26bf1b3d698af22a5e2a2eb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ImageCache: ClassTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded), 48 methods. The bar is 400 significant lines; this is 213 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/ImageCache.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd99ef01ac4064a67a413138c3258c1d563551744de5ee5e71f60b5e3b58ec5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/AnimatedImageView.swift: FileTooLong \u2014 684 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 184 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Views/AnimatedImageView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b243f171506d7640ebab9d5892941f6f319050d2a87c5070b699862dacec7b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Cache/ImageCache.swift: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: ImageCache (154-1500). The bar is 500 significant lines; this is 170 over it, 1.34\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/ImageCache.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54cb8b3dfbd7ace2f8284985a93e6d9a63e804b80375368a6e714fe8ed04e9fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): Sources/Extensions/CPListItem\u002BKingfisher.swift:53-69 | Sources/Extensions/ImageView\u002BKingfisher.swift:76-87 | Sources/Extensions/NSButton\u002BKingfisher.swift:155-172 | Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:82-101 | Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:145-164 | Sources/Extensions/UIButton\u002BKingfisher.swift:57-75 | Sources/Extensions/UIButton\u002BKingfisher.swift:196-214 | Sources/Extensions/UIButton\u002BKingfisher.swift:355-371 \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":"Sources/Extensions/CPListItem\u002BKingfisher.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"564e603ffb67fef551b8d978618f839bd94f230d2ca17244bfa47436948cb8c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/Extensions/HasImageComponent\u002BKingfisher.swift:195-210 | Sources/Extensions/HasImageComponent\u002BKingfisher.swift:276-291 | Sources/Extensions/HasImageComponent\u002BKingfisher.swift:339-354 | Sources/Extensions/ImageView\u002BKingfisher.swift:123-138 | Sources/Extensions/ImageView\u002BKingfisher.swift:203-218 | Sources/Extensions/ImageView\u002BKingfisher.swift:265-280 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Extensions/HasImageComponent\u002BKingfisher.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"958594a728ad563e3bdada84306ad18ef24ea0cca08caec43af8c324496d6d22"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Documentation.docc/Resources/code-files/01-ViewController-10.swift:1-14 | Sources/Documentation.docc/Resources/code-files/01-ViewController-11.swift:1-25 | Sources/Documentation.docc/Resources/code-files/01-ViewController-12.swift:1-31 | Sources/Documentation.docc/Resources/code-files/01-ViewController-13.swift:1-33 | Sources/Documentation.docc/Resources/code-files/01-ViewController-5.swift:14-27 \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":"Sources/Documentation.docc/Resources/code-files/01-ViewController-10.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc64bced782d06274bdc91fb66b4bf3ab733995692d232759d0e00e23a0011cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Extensions/CPListItem\u002BKingfisher.swift:104-143 | Sources/Extensions/NSButton\u002BKingfisher.swift:206-246 | Sources/Extensions/UIButton\u002BKingfisher.swift:116-162 | Sources/Extensions/UIButton\u002BKingfisher.swift:255-295 \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":"Sources/Extensions/CPListItem\u002BKingfisher.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"af81061446a0fb7641171d9ed8a1180c8565ccd7c6ae42859715e6ad6b92004a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): Sources/Extensions/ImageView\u002BKingfisher.swift:282-395 | Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:166-252 \u2014 These two members are one piece of code written twice and then edited apart: 87 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":"Sources/Extensions/ImageView\u002BKingfisher.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad11fa6f1e3fc21dc6a1936eb5a67c9fee93be260abc9ff9d77aa8c332cccf5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): Sources/General/KingfisherManager.swift:827-896 | Sources/General/KingfisherManager.swift:906-977 \u2014 These two members are one piece of code written twice and then edited apart: 70 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":"Sources/General/KingfisherManager.swift"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"09cdbdd6cb3e5df2b8f66b8a707e934506106269608ba77a44a0bbe680373fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Sources/Cache/ImageCache.swift:746-796 | Sources/Cache/ImageCache.swift:825-867 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"Sources/Cache/ImageCache.swift"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"12235ce24a394eb6b7826c3b5fc62b1433b331e207efa6795ed51c58ad22910e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Image/ImageDrawing.swift:52-71 | Sources/Image/ImageDrawing.swift:87-105 \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":"Sources/Image/ImageDrawing.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6f4e762ef32ca306ff3477bb1902d12d7de8a8c2de9ef46074e004a1269d56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Extensions/UIButton\u002BKingfisher.swift:98-114 | Sources/Extensions/UIButton\u002BKingfisher.swift:237-253 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Extensions/UIButton\u002BKingfisher.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"67537cba7385ea068e18647170c72c18054c83e34c5c98aadf7053a1dfbe7bd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Extensions/HasImageComponent\u002BKingfisher.swift:308-324 | Sources/Extensions/ImageView\u002BKingfisher.swift:235-250 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Extensions/HasImageComponent\u002BKingfisher.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc887a5b6b404c2e7e86448ef95a2caa7d0cff1c727b4de5b23b1b41d2859de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Documentation.docc/Resources/code-files/02-ContentView-5.swift:10-26 | Sources/Documentation.docc/Resources/code-files/02-ContentView-6.swift:10-32 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Documentation.docc/Resources/code-files/02-ContentView-5.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc9e49aa2a15028f357a20fccf225ffd5db2d86d7f46e093de800c9cbbda305"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Networking/ImagePrefetcher.swift:382-401 | Sources/Networking/ImagePrefetcher.swift:425-451 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Networking/ImagePrefetcher.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"c555646a50c04398747eb5b0c0c2b619d711e54c62e853014243d66b025cade6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Networking/ImageDownloader\u002BLivePhoto.swift:54-73 | Sources/Networking/ImageDownloader.swift:716-735 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Networking/ImageDownloader\u002BLivePhoto.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"8732c8c8c85d8aad2c2a6bd94075ad3754414ea6d61ef474c2937ee5ba20a3e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Cache/ImageCache.swift:255-272 | Sources/Cache/ImageCache.swift:274-291 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/ImageCache.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad9901f7b24144b9afe783053df76dc58e01564b9224665371b693509321f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/General/KingfisherManager.swift:283-301 | Sources/Networking/ImageDownloader.swift:666-681 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KingfisherManager.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"46697ef49c038368574b4c311bc10cb1c24e861fcf4805b4429893bf3ba8b0c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Image/ImageProcessor.swift:217-226 | Sources/Image/ImageProcessor.swift:260-272 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Image/ImageProcessor.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbceecca9bd966d56fb6858adfd1828b88d983420d0df3943a922883a0a9ec50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 15\u002B corresponding lines): Sources/Extensions/CPListItem\u002BKingfisher.swift:88-102 | Sources/Extensions/ImageView\u002BKingfisher.swift:164-179 | Sources/Extensions/NSButton\u002BKingfisher.swift:189-204 | Sources/Extensions/UIButton\u002BKingfisher.swift:392-406 | Sources/General/KingfisherManager.swift:228-243 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Extensions/CPListItem\u002BKingfisher.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"560999caf9694a686b5446fa05b6c778b0d3e76b9e614d01005d4cef8e4f4aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Cache/ImageCache.swift:462-482 | Sources/Cache/ImageCache.swift:540-559 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/ImageCache.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fb07532f654fb48e6bed577dc65e683d08c129ff897d9c9f5906b6da424076"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Utility/SizeExtensions.swift:53-60 | Sources/Utility/SizeExtensions.swift:66-73 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Utility/SizeExtensions.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ee54992be59c62ae809e6e16a09958cd37ce2e5d15405ac2d57f37ba67ca69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/General/KingfisherManager.swift:1418-1433 | Sources/Networking/ImageDownloader.swift:746-757 \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":"Sources/General/KingfisherManager.swift"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15e5cb16ebdb34a564dc519f6c35f372ad90b96bb2ded12c2dd0c6e624d3b22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/General/ImageSource/PHPickerResultImageDataProvider.swift:80-94 | Sources/General/ImageSource/PhotosPickerItemImageDataProvider.swift:75-87 \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":"Sources/General/ImageSource/PHPickerResultImageDataProvider.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"278d797953356b260e63c35bb030d065dbb9af5cd72174e1cb2640d7c71691b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/Cache/ImageCache.swift:1277-1289 | Sources/Cache/ImageCache.swift:1308-1330 | Sources/Cache/ImageCache.swift:1332-1351 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/ImageCache.swift"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"9554ca0c54f49821335073a2abc329827f43ba321c938c85de4c80a10b93e322"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Cache/ImageCache.swift:1045-1055 | Sources/Cache/ImageCache.swift:1249-1260 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/ImageCache.swift"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"88043935c43c751d9b227fcdce0b0434a3b4d7fe18b089f12c10f66316f81f4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Cache/ImageCache.swift:681-693 | Sources/Cache/ImageCache.swift:877-888 \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":"Sources/Cache/ImageCache.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"236e4b983a6dc7fc6446b9777878efe7b99e01fd7894f595fc97e8bc6f33da57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Documentation.docc/Resources/code-files/02-ContentView-3.swift:5-15 | Sources/Documentation.docc/Resources/code-files/02-ContentView-4.swift:10-21 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Documentation.docc/Resources/code-files/02-ContentView-3.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e138c3f064685c5505a11a147f46e39d3bd4346fb478bd65ff89a181b2b55c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Sources/General/KF.swift:182-195 | Sources/General/KF.swift:205-216 | Sources/General/KF.swift:224-235 \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":"Sources/General/KF.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e2759cebb854f9502dbe6b9d9891e83753ebf7b75b14f17e5cc2c3e1277ca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 5\u002B corresponding lines): Sources/Image/ImageProcessor.swift:228-232 | Sources/Image/ImageProcessor.swift:274-281 | Sources/Image/ImageProcessor.swift:419-428 | Sources/Image/ImageProcessor.swift:545-549 | Sources/Image/ImageProcessor.swift:571-576 | Sources/Image/ImageProcessor.swift:604-608 | Sources/Image/ImageProcessor.swift:674-678 | Sources/Image/ImageProcessor.swift:780-784 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Image/ImageProcessor.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"428440019edd8e251add9742dce9954453b43db7c99700426f6f9d3c3f323eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/Image/Filter.swift:57-64 | Sources/Image/ImageProcessor.swift:145-152 | Sources/Image/ImageProcessor.swift:725-733 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Image/Filter.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f343f25aba119fe7f4212b234b46c65a0856ace2551b6b2d44e66f792272976d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Cache/MemoryStorage.swift:75-83 | Sources/Cache/MemoryStorage.swift:90-99 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/MemoryStorage.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f74e1c646bec8106f151020a0bd27ab398949b4a1d33c6bd59c55e08b84cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/General/KFOptionsSetter.swift:674-688 | Sources/Image/ImageProcessor.swift:370-379 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KFOptionsSetter.swift"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"821eaf856ed3dd7b8204bd82607d1c95d041e42ef2ffc3e1c2835911216e2d0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/General/KF.swift:93-99 | Sources/SwiftUI/KFImageOptions.swift:91-100 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KF.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"0210e076d0be802113dcad25ffadecf0912edd6472559f5516f220bbc764be65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Sources/Documentation.docc/Resources/code-files/02-ContentView-4.swift:5-8 | Sources/Documentation.docc/Resources/code-files/02-ContentView-5.swift:5-8 | Sources/Documentation.docc/Resources/code-files/02-ContentView-6.swift:5-8 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Documentation.docc/Resources/code-files/02-ContentView-4.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8cdd028829721ce6afcb7ba966f8e06e3e2060da7d1c190f266c9e7df1ff99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Documentation.docc/Resources/code-files/02-ContentView-1.swift:4-12 | Sources/Documentation.docc/Resources/code-files/02-ContentView-2.swift:5-16 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Documentation.docc/Resources/code-files/02-ContentView-1.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"f304027d2962106f1793f7566d0ad1a13ce18136d666c81a50a1d011c3e42417"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Cache/CacheSerializer.swift:207-209 | Sources/Cache/FormatIndicatedCacheSerializer.swift:144-146 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/CacheSerializer.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"7028b330813f199705ab9469e243879aebd2225d9a128c1d38f35de5ee554b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/General/KFOptionsSetter.swift:517-521 | Sources/SwiftUI/KFImageOptions.swift:161-166 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KFOptionsSetter.swift"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"26cd1a78ed151eff94be8e3db85c07824334bd05c6083fe98be7fa30533410bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/General/KF.swift:429-432 | Sources/SwiftUI/KFImage.swift:127-130 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"Sources/General/KF.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c0b90f91443d6d62c81a73f1a7dccb05a47d439892d589c68f2c6bd3702baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/SwiftUI/KFAnimatedImage.swift:83-85 | Sources/SwiftUI/KFImage.swift:89-91 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftUI/KFAnimatedImage.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3535cea83e982f5661a4665ea5f0d5b4a2bf31281f92e37eeafb287c56f54639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/Extensions/ImageView\u002BKingfisher.swift:354-371 | Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:214-231 \u2014 before extracting anything, compare \u0060Sources/Extensions/ImageView\u002BKingfisher.swift\u0060 and \u0060Sources/Extensions/NSTextAttachment\u002BKingfisher.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Extensions/ImageView\u002BKingfisher.swift:354\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Extensions/ImageView\u002BKingfisher.swift:353\u0060 calls \u0060stopAnimatingView\u0060 and \u0060Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:212\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":"Sources/Extensions/ImageView\u002BKingfisher.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"1570dfddb6d575e377b16bfa68209921240b386cc81e9957c57ef6745e442f90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): Sources/Documentation.docc/Resources/code-files/01-ViewController-10.swift:1-13 | Sources/Documentation.docc/Resources/code-files/01-ViewController-11.swift:1-13 | Sources/Documentation.docc/Resources/code-files/01-ViewController-12.swift:1-13 | Sources/Documentation.docc/Resources/code-files/01-ViewController-13.swift:1-13 | Sources/Documentation.docc/Resources/code-files/01-ViewController-5.swift:14-26 \u2014 before extracting anything, compare \u0060Sources/Documentation.docc/Resources/code-files/01-ViewController-10.swift\u0060 and \u0060Sources/Documentation.docc/Resources/code-files/01-ViewController-11.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Documentation.docc/Resources/code-files/01-ViewController-10.swift:1\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":"Sources/Documentation.docc/Resources/code-files/01-ViewController-10.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9ddab9f15949086a655309aea7a8b33c0136f46df630184864869578560468"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/Extensions/HasImageComponent\u002BKingfisher.swift:312-324 | Sources/Extensions/ImageView\u002BKingfisher.swift:239-250 \u2014 before extracting anything, compare \u0060Sources/Extensions/HasImageComponent\u002BKingfisher.swift\u0060 and \u0060Sources/Extensions/ImageView\u002BKingfisher.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Extensions/HasImageComponent\u002BKingfisher.swift:312\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":"Sources/Extensions/HasImageComponent\u002BKingfisher.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"8591e67975a0d6ebb5cddac2efb9e45f3bb792bbcd959de478b3b379c69510e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): Sources/Extensions/HasImageComponent\u002BKingfisher.swift:199-210 | Sources/Extensions/HasImageComponent\u002BKingfisher.swift:280-291 | Sources/Extensions/HasImageComponent\u002BKingfisher.swift:343-354 | Sources/Extensions/ImageView\u002BKingfisher.swift:127-138 | Sources/Extensions/ImageView\u002BKingfisher.swift:207-218 | Sources/Extensions/ImageView\u002BKingfisher.swift:269-280 \u2014 before extracting anything, compare \u0060Sources/Extensions/HasImageComponent\u002BKingfisher.swift\u0060 and \u0060Sources/Extensions/ImageView\u002BKingfisher.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Extensions/HasImageComponent\u002BKingfisher.swift:199\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":"Sources/Extensions/HasImageComponent\u002BKingfisher.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef29912fde19a0e5a2f51dd714b0ad10cef6af2e3c096721a57477331a4e9b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/Extensions/CPListItem\u002BKingfisher.swift:92-102 | Sources/Extensions/ImageView\u002BKingfisher.swift:168-179 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Extensions/CPListItem\u002BKingfisher.swift:92\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":"Sources/Extensions/CPListItem\u002BKingfisher.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"6becce6d110a66d542b63b088651950c7dcc27ea34d330b12e6ad0199e04e776"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Image/ImageDrawing.swift:53-64 | Sources/Image/ImageDrawing.swift:88-99 \u2014 both copies are in the same file, so extract the block 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 \u0060Sources/Image/ImageDrawing.swift:53\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":"Sources/Image/ImageDrawing.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d88e9981fa5e9fb7b039a36f37e40b75212a7c833f2fd52518d0ef128c83e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/Extensions/HasImageComponent\u002BKingfisher.swift:466-476 | Sources/Extensions/ImageView\u002BKingfisher.swift:355-365 | Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:215-225 \u2014 before extracting anything, compare \u0060Sources/Extensions/HasImageComponent\u002BKingfisher.swift\u0060 and \u0060Sources/Extensions/ImageView\u002BKingfisher.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Extensions/HasImageComponent\u002BKingfisher.swift:466\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Extensions/ImageView\u002BKingfisher.swift:353\u0060 calls \u0060stopAnimatingView\u0060 and \u0060Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:212\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":"Sources/Extensions/HasImageComponent\u002BKingfisher.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58a0935c9f848de1f5b4927edfad3158190a843b45ae0b86781ef30375807b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Cache/ImageCache.swift:752-762 | Sources/Cache/ImageCache.swift:831-841 \u2014 both copies are in the same file, so extract the block 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 \u0060Sources/Cache/ImageCache.swift:752\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060options\u0060 to \u0060KingfisherOptionsInfo? = nil\u0060 in one and \u0060options\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/ImageCache.swift"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"376d8ee24c35f949e8e77ae98f54dee01dd587e183fd399ccf32bfbb1bbc746f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Documentation.docc/Resources/code-files/02-ContentView-5.swift:10-20 | Sources/Documentation.docc/Resources/code-files/02-ContentView-6.swift:10-20 \u2014 before extracting anything, compare \u0060Sources/Documentation.docc/Resources/code-files/02-ContentView-5.swift\u0060 and \u0060Sources/Documentation.docc/Resources/code-files/02-ContentView-6.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Documentation.docc/Resources/code-files/02-ContentView-5.swift:10\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":"Sources/Documentation.docc/Resources/code-files/02-ContentView-5.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde7eae57b428ac553d26ad4a76c0267f31b4eadeef48e32ac31dbe031e41d7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): Sources/Image/ImageDrawing.swift:126-136 | Sources/Image/ImageDrawing.swift:236-243 \u2014 both copies are in the same file, so extract the block 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 \u0060Sources/Image/ImageDrawing.swift:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Image/ImageDrawing.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d7b74e3bf6bf3f3b6466817e4f3ecb55e2e1ef08710af75e1ad6268d066645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/Extensions/CPListItem\u002BKingfisher.swift:105-113 | Sources/Extensions/NSButton\u002BKingfisher.swift:207-216 \u2014 before extracting anything, compare \u0060Sources/Extensions/CPListItem\u002BKingfisher.swift\u0060 and \u0060Sources/Extensions/NSButton\u002BKingfisher.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Extensions/CPListItem\u002BKingfisher.swift:105\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":"Sources/Extensions/CPListItem\u002BKingfisher.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53d9b8c72dac055b5d475aead78a03c0647b18e83dcff2ae41c5d79d32c2634"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Extensions/UIButton\u002BKingfisher.swift:118-127 | Sources/Extensions/UIButton\u002BKingfisher.swift:256-265 \u2014 both copies are in the same file, so extract the block 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 \u0060Sources/Extensions/UIButton\u002BKingfisher.swift:118\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":"Sources/Extensions/UIButton\u002BKingfisher.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4f33b2eab44c8f64d6100f16554e381bed9ebf8f82cdd7b1f4676e8f2951cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/Extensions/CPListItem\u002BKingfisher.swift:107-114 | Sources/Extensions/NSButton\u002BKingfisher.swift:209-217 | Sources/Extensions/UIButton\u002BKingfisher.swift:121-128 | Sources/Extensions/UIButton\u002BKingfisher.swift:259-266 \u2014 before extracting anything, compare \u0060Sources/Extensions/CPListItem\u002BKingfisher.swift\u0060 and \u0060Sources/Extensions/NSButton\u002BKingfisher.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Extensions/CPListItem\u002BKingfisher.swift:107\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":"Sources/Extensions/CPListItem\u002BKingfisher.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f51a4d9283b167df92576fbefab6054659997112ed8901b2bac8b9da7cd628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 4): Sources/Extensions/ImageView\u002BKingfisher.swift:80-85 | Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:87-93 | Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:150-156 | Sources/Extensions/UIButton\u002BKingfisher.swift:62-67 \u2014 before extracting anything, compare \u0060Sources/Extensions/ImageView\u002BKingfisher.swift\u0060 and \u0060Sources/Extensions/NSTextAttachment\u002BKingfisher.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Extensions/ImageView\u002BKingfisher.swift:80\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:157\u0060 calls \u0060network\u0060 and \u0060Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:94\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":"Sources/Extensions/ImageView\u002BKingfisher.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e694ad204403a9c5d43765c68c3b8927ec659ef744cde4b70919b101339df1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Extensions/UIButton\u002BKingfisher.swift:59-65 | Sources/Extensions/UIButton\u002BKingfisher.swift:198-204 \u2014 both copies are in the same file, so extract the block 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 \u0060Sources/Extensions/UIButton\u002BKingfisher.swift:59\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":"Sources/Extensions/UIButton\u002BKingfisher.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c705b25fa3e0788ccaaa4ebe0c17f2e9e3912ce5ed0a6c5526e7f681123943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Extensions/CPListItem\u002BKingfisher.swift:55-60 | Sources/Extensions/NSButton\u002BKingfisher.swift:157-163 \u2014 before extracting anything, compare \u0060Sources/Extensions/CPListItem\u002BKingfisher.swift\u0060 and \u0060Sources/Extensions/NSButton\u002BKingfisher.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Extensions/CPListItem\u002BKingfisher.swift:55\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Extensions/CPListItem\u002BKingfisher.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bbdb027acb8dfb1247e774fe3a127bab5af751b4ee12a18e02c9b9e2c5a8d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): Sources/Extensions/ImageView\u002BKingfisher.swift:80-85 | Sources/Extensions/NSButton\u002BKingfisher.swift:159-164 | Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:87-92 | Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:150-155 | Sources/Extensions/UIButton\u002BKingfisher.swift:62-66 | Sources/Extensions/UIButton\u002BKingfisher.swift:201-205 | Sources/Extensions/UIButton\u002BKingfisher.swift:359-363 \u2014 before extracting anything, compare \u0060Sources/Extensions/ImageView\u002BKingfisher.swift\u0060 and \u0060Sources/Extensions/NSTextAttachment\u002BKingfisher.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Extensions/ImageView\u002BKingfisher.swift:80\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:157\u0060 calls \u0060network\u0060 and \u0060Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:94\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":"Sources/Extensions/ImageView\u002BKingfisher.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f920176b65eae3393c6a205c82e4463fdeb08e414de783e4a17aa43de3596b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/Extensions/CPListItem\u002BKingfisher.swift:56-60 | Sources/Extensions/NSButton\u002BKingfisher.swift:158-163 | Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:86-91 | Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:149-154 \u2014 before extracting anything, compare \u0060Sources/Extensions/CPListItem\u002BKingfisher.swift\u0060 and \u0060Sources/Extensions/NSButton\u002BKingfisher.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Extensions/CPListItem\u002BKingfisher.swift:56\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Extensions/NSTextAttachment\u002BKingfisher.swift:85\u0060 calls \u0060Sendable\u0060 and \u0060Sources/Extensions/CPListItem\u002BKingfisher.swift:55\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":"Sources/Extensions/CPListItem\u002BKingfisher.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c4667c71275580b7828f1b0304cac55f4bad37a86463bc88d7222af87df866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Documentation.docc/Resources/code-files/01-ViewController-12.swift:16-21 | Sources/Documentation.docc/Resources/code-files/01-ViewController-13.swift:16-21 \u2014 before extracting anything, compare \u0060Sources/Documentation.docc/Resources/code-files/01-ViewController-12.swift\u0060 and \u0060Sources/Documentation.docc/Resources/code-files/01-ViewController-13.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 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Documentation.docc/Resources/code-files/01-ViewController-12.swift:16\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, \u0060Sources/Documentation.docc/Resources/code-files/01-ViewController-13.swift:23\u0060 calls \u0060reloadData\u0060 and \u0060Sources/Documentation.docc/Resources/code-files/01-ViewController-12.swift:23\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":"Sources/Documentation.docc/Resources/code-files/01-ViewController-12.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d63bebf5d4f7e29357b3da18ee549a33c2feddfbde19d0103eb4c5739dd85f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Demo/Demo/Kingfisher-Demo/ViewControllers/NormalLoadingViewController.swift:53-67 | Demo/Demo/Kingfisher-Demo/ViewControllers/OrientationImagesViewController.swift:53-68 \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":"Demo/Demo/Kingfisher-Demo/ViewControllers/NormalLoadingViewController.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6edbe825fb555977363c5e6f95dc11fb20d92f7f0d5a29693cdb4ab4d37665"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Demo/Demo/Kingfisher-Demo/ViewControllers/IndicatorCollectionViewController.swift:102-110 | Demo/Demo/Kingfisher-Demo/ViewControllers/ProcessorCollectionViewController.swift:73-85 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/Demo/Kingfisher-Demo/ViewControllers/IndicatorCollectionViewController.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d21c17245ecd29f4ee7b8857f50b5ba938dbab7c154a177d530de848cb71fb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Demo/Demo/Kingfisher-Demo/ViewControllers/NetworkMetricsViewController.swift:178-189 | Demo/Demo/Kingfisher-Demo/ViewControllers/NetworkMetricsViewController.swift:191-202 | Demo/Demo/Kingfisher-Demo/ViewControllers/NetworkMetricsViewController.swift:204-215 \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":"Demo/Demo/Kingfisher-Demo/ViewControllers/NetworkMetricsViewController.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefd65d3ee5fdaabc59cc652895d27484efdcdda234e6ffe5302a8371b460407"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Demo/Demo/Kingfisher-Demo/ViewControllers/HighResolutionCollectionViewController.swift:49-52 | Demo/Demo/Kingfisher-Demo/ViewControllers/NormalLoadingViewController.swift:44-51 | Demo/Demo/Kingfisher-Demo/ViewControllers/OrientationImagesViewController.swift:44-51 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/Demo/Kingfisher-Demo/ViewControllers/HighResolutionCollectionViewController.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b309362b678a9b462c7654ea5afeca62c790d68f963d5089829a8bd72e150ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): Demo/Demo/Kingfisher-Demo/SwiftUIViews/AnimatedImageDemo.swift:38-64 | Demo/Demo/Kingfisher-macOS-Demo/SwiftUIViewController.swift:48-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Demo/Demo/Kingfisher-Demo/SwiftUIViews/AnimatedImageDemo.swift:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Demo/Demo/Kingfisher-Demo/SwiftUIViews/AnimatedImageDemo.swift:64\u0060 calls \u0060Text\u0060, \u0060navigationBarTitle\u0060 and \u0060Demo/Demo/Kingfisher-macOS-Demo/SwiftUIViewController.swift:75\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":"Demo/Demo/Kingfisher-Demo/SwiftUIViews/AnimatedImageDemo.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"200a36a5c2b0c9b382ef21a9ed8f85deda49d922198338286fc0fbb32ca914cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Demo/Demo/Kingfisher-Demo/ViewControllers/NormalLoadingViewController.swift:69-78 | Demo/Demo/Kingfisher-Demo/ViewControllers/OrientationImagesViewController.swift:70-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/Demo/Kingfisher-Demo/ViewControllers/NormalLoadingViewController.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"993d004199fb9f0160d48496a9d6c09774fbe25da911e49c910ba7983e432ea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Demo/Demo/Kingfisher-Demo/ViewControllers/NormalLoadingViewController.swift:62-67 | Demo/Demo/Kingfisher-Demo/ViewControllers/OrientationImagesViewController.swift:63-68 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Demo/Demo/Kingfisher-Demo/ViewControllers/NormalLoadingViewController.swift:62\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, \u0060Demo/Demo/Kingfisher-Demo/ViewControllers/OrientationImagesViewController.swift:62\u0060 calls \u0060backgroundDecode\u0060, \u0060randomElement\u0060 and \u0060Demo/Demo/Kingfisher-Demo/ViewControllers/NormalLoadingViewController.swift:61\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":"Demo/Demo/Kingfisher-Demo/ViewControllers/NormalLoadingViewController.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b4ea0986b9ca792c9b2f21d822ee36f388194be9bf592202afee69ea88885f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ViewController (LCOM4 7): ViewController\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/Demo/Kingfisher-macOS-Demo/ViewController.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"01448e13fdf2f2bf97f277b2b6e70ae9ee92700e57b69acc331552bccd934367"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: KFCrossPlatformImage (LCOM4 4): KFCrossPlatformImage\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/ImageCache.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0d8dd45164ee19e3f3c7e583476f43dd9d3e4b2c17b54ac660147e90c30f34"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SessionDelegate (LCOM4 4): SessionDelegate\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Networking/SessionDelegate.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d419a66c071f541b7ee37ee09a76002a4606f84675299d3f5e13d63808406ef9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: IndicatorCollectionViewController (LCOM4 4): IndicatorCollectionViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/Demo/Kingfisher-Demo/ViewControllers/IndicatorCollectionViewController.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8375fc7873f3c2abd09d5e417f41f72bc7e55344b61ea9da1de03e34d8e18d90"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ProcessorCollectionViewController (LCOM4 4): ProcessorCollectionViewController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/Demo/Kingfisher-Demo/ViewControllers/ProcessorCollectionViewController.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f8075be98a16afacb21699fcbd30c77c71aef4fe8dcdb06735cfb4602213f7"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testValueWithUnreadableDirectoryReportsMiss: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KingfisherTests/DiskStorageTests.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"73678c5bc7cd6964873838e5dac448eb3b618f2ae32730d6a638a5d1c25d9c6d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testValueWithUnreadableFileDataThrows: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KingfisherTests/DiskStorageTests.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1cba26d40482237aae0430479fe166662cafb6a3e095574ae901227baf8ba3"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testValueWithUnreadableMetadataOnExistingFileThrows: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KingfisherTests/DiskStorageTests.swift"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"abafe9966bcb213c91c01e9da1318636b7ab5324326e29aa379ba7f15c200f9c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCleanExpiredDiskCacheCompletesWhenRemovingFileFails: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KingfisherTests/ImageCacheTests.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"958be392a6c7421faa45f5829a3914a70c0915c73e3ef8b404703df8fd163d4e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCancelDownloadTaskAsync: 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":"Tests/KingfisherTests/ImageDownloaderTests.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"f702feaf05045df518de312d8f0d51ea141f3478b5b565acbe2e1ab9fc185898"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testForceCancelConcurrentWithAddCallbackIsThreadSafe: 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":"Tests/KingfisherTests/ImageDownloaderTests.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ff9a51cfe2363bd870773cf8d91a9e94b4b3131c9a7af5ef6b4933df398c22"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSessionDataTaskConcurrentAccessIsThreadSafe: 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":"Tests/KingfisherTests/ImageDownloaderTests.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"42951eeac8a2a56bc083ae578a1ec446063f1843409177a32b140c692e90416c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testImageFlipping: 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":"Tests/KingfisherTests/ImageDrawingTests.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dccf755e1d4d9dc629f28d14aef83ae6187b793580bffd7e644bc1174def972"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPrefetchMultiTimes: 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":"Tests/KingfisherTests/ImagePrefetcherTests.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"3239a45495d13f4fbbd57adc812fe53f266d4b90f1397a396d1721291304fdc1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testImageDownloadCancelPartialTaskBeforeRequest: 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":"Tests/KingfisherTests/ImageViewExtensionTests.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6cfcc3d57da1f261439efcb4fc3b5b2df63f5e6c099245e04fd3d3ff623a756"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIssue665: 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":"Tests/KingfisherTests/ImageViewExtensionTests.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb3303566834486b7fb17c4a14a189f5ea621077cbcb6c628713ee18ebfc726"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLoadTransitionKeepsPlaceholderWhileImageIsPrepared: 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":"Tests/KingfisherTests/KFImageRendererTests.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"40efedfde5dd50bf6def93e3983b793c430f490222164f0103e36d90be6b842f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRendererKeepsImageBranchBeforeImageLoads: 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":"Tests/KingfisherTests/KFImageRendererTests.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1b3179f9683eaa034e314db7bef4c49622f73d621113324fd68eda65be41f9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRendererInstalledTwiceLoadsImageOnce: 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":"Tests/KingfisherTests/KFImageRendererTests.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cbd694824f4b862d692f3e0817e10316d98156563d02d6a7c0a7eea1e4a7b1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRetrieveImageCancelAsync: 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":"Tests/KingfisherTests/KingfisherManagerTests.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8941296d495a7f930d9d98bf7749770929b83a86d11be8642a69f2c0b41c0c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRetrieveImageContinuationMisuseReproduction: 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":"Tests/KingfisherTests/KingfisherManagerTests.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be09b451f65005890ceff03e9bd723cdb17c71a1664ab34e57808f8c16528d7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNetworkObserverDoesNotNotifyAfterCancel: 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":"Tests/KingfisherTests/RetryStrategyTests.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6991d25d76d99d4f88fe2fc9c2ee8bef56279a12dbaab99ed484f2460a9318"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNetworkObserverNotifiesOnlyOnce: 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":"Tests/KingfisherTests/RetryStrategyTests.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca346392283e07b1a04778b0fec5260d067bcbf282630a3b63d05478f5568b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/General/KingfisherManager.swift: Sources/General/KingfisherManager.swift changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in KingfisherManager.deliverOriginalCacheHit at line 1085. 5 of those changes were fix/bug commits, and the other 17 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:28:46 \u002B09:00\u0027 --until=\u00272026-11-14 16:28:46 \u002B09:00\u0027 --full-history --no-merges -- Sources/General/KingfisherManager.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KingfisherManager.swift"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04b2fe582e56682b420966dec69cbe0be5ff1f448c6bf8f02deefa8f504756c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftUI/KFImageRenderer.swift: Sources/SwiftUI/KFImageRenderer.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in KFImageRenderer.body at line 50. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:28:46 \u002B09:00\u0027 --until=\u00272026-11-14 16:28:46 \u002B09:00\u0027 --full-history --no-merges -- Sources/SwiftUI/KFImageRenderer.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftUI/KFImageRenderer.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a939535d8c51adeec8464dc273e6b5aa573fb73edbf0018f49c901dde029bd64"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/Networking/ImagePrefetcher.swift: Sources/Networking/ImagePrefetcher.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is ImagePrefetcher.startPrefetching at line 333), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(prefetcher): pass forcedExtension in imageCachedType check\u201D; \u201CFix only-from-cache prefetch fallback\u201D; \u201CFix prefetch cancellation accounting and shared download scaling\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:28:46 \u002B09:00\u0027 --until=\u00272026-11-14 16:28:46 \u002B09:00\u0027 --full-history --no-merges -- Sources/Networking/ImagePrefetcher.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Networking/ImagePrefetcher.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1efb30e8adf1a55765b0e244700b05be142622fe2a221a03a5e5a3482c030f5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check the thread-safety of \u0060Animator\u0060 for Sendable again. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Views/AnimatedImageView.swift"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"806a5bd601f52426fa0cf2dd476ddac68d2674a408706e8b2e1113d9711ca550"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: A temporary solution for keep the sync \u0060ImageDownloadRequestModifier\u0060 behavior as before. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Networking/ImageDownloader.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3b3b3dea36817b88bec2e37bff07fa28550124d5ca927cc98366f4adc60d13"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO. We ignore the retry of live photo and the progress now to suppress the complexity. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KingfisherManager\u002BLivePhoto.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88ddcaaf059b91731967b0790009b3ee55df56e59e3f208c81566292e0f3424"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Optimize it when we can use async across all the project. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/General/KingfisherManager.swift"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"737646a872f7da0a201a5a1b127bdd8ac850533ecbadf80072cb5d4631806124"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Actions \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Documentation.docc/Resources/code-files/02-ContentView-10.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf752eeb86954724284450a5944a6f13fef1611cf2e479ef76436cf5cf2f8f6"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"200b8d785c7a419cd934be9b2764813caff8ad97e5d3a531f433e53e28478672"},"properties":{"commitSha":"19946547e445071a6afbf82143ed3132a0e88f63"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1a109badce344d491e273e65f4c873503581c227cf6e351e5d7d408324b94960"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b83a1007555e3e9b1511f667c185b35c868f37f4037889a6a1ee970d86ab029c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"43423dc467f10f14ab06a817aed6cdb00935b9e1675b130c1e45c802099616a0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8bc1723e805dff3d5a0f9baa81b9da6acae75cdfb11ff48591b1be4a77d62438"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0220d9068eff413ab13574f3a5788e9746fd5e82ca8c7083947857080e2c78ca"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ade3e57e0fb0203f79cd95b105a9bd10740eac0f05675134dda66de788487d6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6a21704c5277728962c940fc62849d04f1c4365103dbcd21fa72d617465336e6"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"925d55c53bd4f9a696c9dfb9ca5f97b6e3bf7d33225bea4937ad60bf0012652f"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4167478c5ab40819578ed9bfbefbe7a0117b26cecf6b9bad31f37f96ea3941b7"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dbee7604abc096b8a66e5e87632765ee2922e5b89c9e8409db574d99565e0e6a"},"properties":{"dependency":{"package":"activesupport","version":"7.2.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 70 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 70 of the 106 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: Sources/Networking/NetworkMetrics.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Networking/NetworkMetrics.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a16b2ce715fa77a7d1c592fb22890503c879a4ac5c3ed0eae320706ddde69b1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ImageBinder.swift \u2194 KFImageOptions.swift: \u0060Sources/SwiftUI/ImageBinder.swift\u0060 and \u0060Sources/SwiftUI/KFImageOptions.swift\u0060 change together 50% of the time (12 of the 24 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u00604e184fe6\u0060 Look up the memory cache once for each kept binder; \u0060b384dc5c\u0060 Show memory cached image in the first KFImage render pass; \u00604c27554c\u0060 Add SwiftUI native transition support for KFImage \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftUI/ImageBinder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfb0272e64fcae271430e64f70da74d2f3262151aecd2a8e4e3d614172396cb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ImageContext.swift \u2194 KFImageOptions.swift: \u0060Sources/SwiftUI/ImageContext.swift\u0060 and \u0060Sources/SwiftUI/KFImageOptions.swift\u0060 change together 50% of the time (9 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060b384dc5c\u0060 Show memory cached image in the first KFImage render pass; \u006068a6edf6\u0060 Harden SwiftUI context copy-on-mutate; \u0060557b7d9c\u0060 Fix SwiftUI image context sharing \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftUI/ImageContext.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2866efe1d4b769ded15f81ac3584bd8fdc9be635ea3407867edc3aedd1d9d534"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7e37904db2ccbc85e059aeb48973ed8e1f6e6831834f4b40800c83663672d401"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d339e23018d6ba57a64e7789bce515a9b72a731c2f4069852406dd1012e4a611"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"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) as a CI step. What was searched, so you can tell an absence from a miss: the 2 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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/build.yaml"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060canImport(AppKit) \u0026\u0026 !targetEnvironment(macCatalyst)\u0060 appears character-identically in 9 files \u2014 Sources/Extensions/HasImageComponent\u002BKingfisher.swift, Sources/Extensions/NSButton\u002BKingfisher.swift, Sources/General/KF.swift, Sources/Image/GraphicsContext.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":"Sources/Extensions/HasImageComponent\u002BKingfisher.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36e45a2bfeaff6049a0273a20938ebe6b03e8acd59ef397f713891007d9dd91"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060canImport(CarPlay) \u0026\u0026 !targetEnvironment(macCatalyst)\u0060 appears character-identically in 3 files \u2014 Sources/Extensions/CPListItem\u002BKingfisher.swift, Sources/General/KF.swift, Sources/General/Kingfisher.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":"Sources/Extensions/CPListItem\u002BKingfisher.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"091a574863daf76c5ae4b9b6d78d49d001860dd5738b241f533c9e011bfd31e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060canImport(SwiftUI) \u0026\u0026 canImport(Combine)\u0060 appears character-identically in 6 files \u2014 Sources/SwiftUI/ImageBinder.swift, Sources/SwiftUI/ImageContext.swift, Sources/SwiftUI/KFImage.swift, Sources/SwiftUI/KFImageOptions.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":"Sources/SwiftUI/ImageBinder.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b15f18591bea37590178387acf53695fef6551a58b102ca76c9c58d7754dfd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060rescue\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastlane/actions/sync_build_number_to_git.rb"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a84956eebb116b6a02dad2b9aeeea818f803a45a516bce4c197fd9da52438a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/DiskStorage.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"649f4dce3e9672168fb88dea9df3ecedca4a3c7dd77805ff994ae03abf2a950d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/DiskStorage.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30ccaaa14f5596fe0692fa90a43c207133d31fb335d6b4eef4464f2eadd484b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/DiskStorage.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"0956ba56160e517a71c8f93a71bf828b12cd1b1d59985408ae33bb03b02c2ba0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/ImageCache.swift"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"030805f97f79510573cc1c9984fe2ba01433605ddd78c15ef41e624cb2092359"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Cache/ImageCache.swift"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3ceba71615e612957b7390a0c3fcc7af99c4d4c4bdec94275cf771c8c49a6b"}},{"ruleId":"X5","level":"note","message":{"text":"Ruby\u0027s type checker does not check nil everywhere: This repository commits no Sorbet configuration (\u0060sorbet/config\u0060) and no \u0060Steepfile\u0060, so nothing type-checks its 5 Ruby product file(s): a nilable value reaches a method call silently and raises \u0060NoMethodError: undefined method \u2026 for nil\u0060 the first time it is nil. A \u0060# typed:\u0060 sigil does nothing without a \u0060sorbet/config\u0060 beside the code; a Steep run configured only on a command line is not something this check can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"32b27113b1bc22f400935e8620d19eae7fd3ef145cc36018609c445ea8cd4af1"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)","shortDescription":{"text":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":15,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}