{"$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":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"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":"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":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"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":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"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":"MockCloudDatabase.modifyRecords (cyclomatic 56): MockCloudDatabase.modifyRecords has cyclomatic complexity 56 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 19 belong to 4 function items inside it that branch. 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/SQLiteData/CloudKit/Internal/MockCloudDatabase.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"df498f6b39f3cbb723867e81355e8da58ffec09d4cbb2baa1f44f2cfdec47854"}},{"ruleId":"D1","level":"warning","message":{"text":"Logger.log (cyclomatic 46): Logger.log has cyclomatic complexity 46 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/Logging.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"70198f1d8183088dd3913f54074507946a943313b31b5c7755318df443f9d9cf"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncEngine.handleSentRecordZoneChanges (cyclomatic 36): SyncEngine.handleSentRecordZoneChanges has cyclomatic complexity 36 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09a1fe882e444388fbe09e654589aafacea9e2276cb33c729615c9b1f7bc374"}},{"ruleId":"D1","level":"warning","message":{"text":"Substring.rewriteSchema (cyclomatic 22): Substring.rewriteSchema has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/PrimaryKeyMigration.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07e6eed989b4b4b8c96af99b9cf983eb0d72706b59621c0a65dc05a349197df"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncEngine.handleFetchedRecordZoneChanges (cyclomatic 21): SyncEngine.handleFetchedRecordZoneChanges has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee5532ab1a1af65de24aafdb2579f1d2ba92a839c4e48a90e5baeb3fe70babb"}},{"ruleId":"D1","level":"warning","message":{"text":"CKRecord.update::open (cyclomatic 19): CKRecord.update::open has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa1f7a4a9249ef20139066cfb623f912706b8da4f8a6bb7722aa97f56732128"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncEngine.sendPendingRecordZoneChanges (cyclomatic 18): SyncEngine.sendPendingRecordZoneChanges has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/MockSyncEngine.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a1353edb807cc863ea3927143b693adc3e139466e89c8863caf6a9d2f5017f"}},{"ruleId":"D2","level":"warning","message":{"text":"MockCloudDatabase.modifyRecords (cognitive 103): MockCloudDatabase.modifyRecords has cognitive complexity 103 (threshold 15). Drivers by points: if/else 24 (58 pts), loops 10 (21 pts), boolean chains 14, ternaries 3 (6 pts), match/switch 2 (4 pts) (nesting depth added 50). Of this number, 59 points are the body\u0027s own statements and 44 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/MockCloudDatabase.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b5997ee1019f7aea7e103061294fc80a84d44c5253a12e65e97ec8be5165dc"}},{"ruleId":"D2","level":"warning","message":{"text":"Logger.log (cognitive 57): Logger.log has cognitive complexity 57 (threshold 15). Drivers by points: if/else 16 (26 pts), loops 12 (24 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/Logging.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39fe74edc3c967428410712dae210f571253bc9fceaf0054a8b01852e136b03"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.handleSentRecordZoneChanges (cognitive 39): SyncEngine.handleSentRecordZoneChanges has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 7, match/switch 3 (7 pts), loops 4, error handling 1 (2 pts) (nesting depth added 16). Of this number, 31 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c1e5eea190399444cc4835b0b4c88ef42c5049ce0c79db43400d4104b3a0a3"}},{"ruleId":"D2","level":"warning","message":{"text":"Substring.rewriteSchema (cognitive 32): Substring.rewriteSchema has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 5, loops 2 (nesting depth added 10). Of this number, 26 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/PrimaryKeyMigration.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ca5dd5075bc58b75da006f2552c14032e61e229f5e308248c1496e1ff3c001"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.handleFetchedRecordZoneChanges (cognitive 31): SyncEngine.handleFetchedRecordZoneChanges has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 8 (10 pts), error handling 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"731f3d9279186d948ba0d403ee21eadc4377532c518e5f4aa92dbe9b13ffff3f"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.pendingRecordZoneChanges (cognitive 19): SyncEngine.pendingRecordZoneChanges has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a05ccfb717f4b9d1024991a18c93f766cfb0e1f8386478edde3ac6f703412dd"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.updateLocalFromSchemaChange (cognitive 17): SyncEngine.updateLocalFromSchemaChange has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 2 (4 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 7). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (open). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded89be345ee04a536fcaf9870bf7d312f2c5319cc38cd03ec2606a3d6d36a62"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.handleFetchedDatabaseChanges (cognitive 16): SyncEngine.handleFetchedDatabaseChanges has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3, match/switch 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 5). Of this number, 8 points are the body\u0027s own statements and 8 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"f540e5f16e22238ca6587e57d0ca20bf98500210840ac7a4dfcab9a0a45cf20f"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.upsertFromServerRecord (cognitive 16): SyncEngine.upsertFromServerRecord has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, ternaries 1 (2 pts), error handling 1 (nesting depth added 2). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (open). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":2069}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3b5ca3657a32cf15f9fabdc72554ef12d2fd1d94602d172164fde71f0e2730"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.sendPendingRecordZoneChanges (cognitive 16): SyncEngine.sendPendingRecordZoneChanges has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), match/switch 3 (5 pts), loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/MockSyncEngine.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"900def1c015670242f1d92c3f6517cba4bb75b839f23f0f0cd1730ab888c2819"}},{"ruleId":"D2","level":"warning","message":{"text":"CKRecord.update (cognitive 16): CKRecord.update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 5). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function item inside it that branches (open). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edf2ea68a5915caea627bb70aa57b80fe9f7c9ecd781cfa5ed01a0493989538"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CloudKit/SyncEngine.swift: FileTooLong \u2014 1942 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1442 over it, 3.88\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/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b40c308d36f6da8264fcdc0c5569d38110c09bea9424186a51fb55ed5065bd3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FetchAll: TooManyMethods \u2014 62 methods, declared across 2 files: SQLiteData/FetchAll\u002BSections.swift (40), SQLiteData/FetchAll.swift (22). The bar is 30 methods; this is 32 over it, 2.07\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"467ca0075beed5fe8c81a92bc5010fa6ce5e3a0ab761f9f6130dc0f91a329918"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MockCloudDatabase.modifyRecords: MethodTooLong \u2014 modifyRecords runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/MockCloudDatabase.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e413e4475f32729be559be618774bda60a41bac35ebb608a68edaaa48fa30baa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Logger.log: MethodTooLong \u2014 log runs 185 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/Logging.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcab0f680e312abe23b2cc73cf9fd6399ac937935866b35e167b24d872a36534"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SyncEngine: TooManyMethods \u2014 55 methods, declared across 4 files: CloudKit/SyncEngine.swift (46), CloudKit/CloudKitSharing.swift (4), Internal/MockSyncEngine.swift (4), CloudKit/PrimaryKeyMigration.swift (1). The bar is 30 methods; this is 25 over it, 1.83\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/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3587fddd3f070061a047c3c5c44a9307913856347a7e3de3249b0f6744064dba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncEngine.handleSentRecordZoneChanges: MethodTooLong \u2014 handleSentRecordZoneChanges runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf394022013279570832af1bbcb6853726d2b3431b08144aff553d4d38087c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SQLiteData/FetchAll\u002BSections.swift: FileTooLong \u2014 908 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 408 over it, 1.82\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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5030f0db21cc8b281ddc7834176bb346d643322761804c64ceae7eff612891ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SQLiteData/FetchOne.swift: FileTooLong \u2014 839 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 339 over it, 1.68\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/SQLiteData/FetchOne.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec252c44c55aed5b67c2ee599445088b94e94d619b2001ab3afd9a56f0f54d40"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SyncEngine: ClassTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. The bar is 400 significant lines; this is 240 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3561100ea757986556f151e6fba925e471ea95c0f815e434c6bd51e7ca6b982"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncEngine.handleFetchedRecordZoneChanges: MethodTooLong \u2014 handleFetchedRecordZoneChanges runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"f737de1d9149c3329ec4a8a11537d46d40125d6c000159b98bfbacd608e27068"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncEngine.nextRecordZoneChangeBatch: MethodTooLong \u2014 nextRecordZoneChangeBatch runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bec02341f57b726010b2dc70037e9b35783ebd137c8cbbb3b3833d9cde065b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Metadatabase.swift.migrate: FunctionTooLong \u2014 migrate runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/Metadatabase.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5459c903d784cd071f6902c49bf47ed3258d969d440dcaf78f4c55557bc9c6f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncEngine.share: MethodTooLong \u2014 share runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/CloudKitSharing.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b0b8148977bb0ab3210697637c3ee94a8c9b88a7bbd7ff5d0e16d5ea83d60e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 26\u002B corresponding lines): Sources/SQLiteData/FetchAll\u002BSections.swift:234-261 | Sources/SQLiteData/FetchAll\u002BSections.swift:273-302 | Sources/SQLiteData/FetchAll\u002BSections.swift:724-749 | Sources/SQLiteData/FetchAll\u002BSections.swift:763-791 | Sources/SQLiteData/FetchAll\u002BSections.swift:805-835 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 26 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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b9779dea5bde69fa04a2919078d1d08bc4fc16efe9f74e3f6c0f6c3ceea5be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/SQLiteData/FetchAll\u002BSections.swift:313-332 | Sources/SQLiteData/FetchAll\u002BSections.swift:848-868 \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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cc3bcd0a6ebeac9039a2914f662b0d21a731d340d19c414ae06d10cb0c030f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 24\u002B corresponding lines): Sources/SQLiteData/FetchAll\u002BSections.swift:408-433 | Sources/SQLiteData/FetchAll\u002BSections.swift:444-471 | Sources/SQLiteData/FetchAll\u002BSections.swift:917-940 | Sources/SQLiteData/FetchAll\u002BSections.swift:953-979 | Sources/SQLiteData/FetchAll\u002BSections.swift:992-1020 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 24 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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"59734870814e6ea5cd4394a9a34a7df015e6cfdb199be9ab066fa03436bc0a9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/SQLiteData/CloudKit/Internal/Triggers.swift:39-64 | Sources/SQLiteData/CloudKit/Internal/Triggers.swift:122-149 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/SQLiteData/CloudKit/Internal/Triggers.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bfafdc0b83c7f6ca1d4327f8e61db74d0ecba36c5879bf1734fd8c98b7ffdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Sources/SQLiteData/FetchAll\u002BSections.swift:105-129 | Sources/SQLiteData/FetchAll\u002BSections.swift:587-606 | Sources/SQLiteData/FetchAll\u002BSections.swift:620-645 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d86663202eaa4221ed832c6e7234d0e38059fdd65937eca10b6774e9de61d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/SQLiteData/FetchAll\u002BSections.swift:198-222 | Sources/SQLiteData/FetchAll\u002BSections.swift:375-397 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"6139554b26ff115cf53819cba27076aa12a6eac3a0a6472c93a36e453b8ed27a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/SQLiteData/FetchAll\u002BSections.swift:1066-1089 | Sources/SQLiteData/FetchAll\u002BSections.swift:1285-1307 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d068869ff486b82a000f7ad61971ecd8f6d020fe18162e20f6f650685ca650"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SQLiteData/CloudKit/Internal/UnsyncedRecordID.swift:58-68 | Sources/SQLiteData/CloudKit/SyncMetadata.swift:207-215 \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/SQLiteData/CloudKit/Internal/UnsyncedRecordID.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4906bae11c0f8c51875867e29679d972e8a46b57126e631a090a83ad63768873"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift:122-139 | Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift:148-166 \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/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b6391b27f28109d88501eb594ff023f5a444e500fa31a5e207db3a3f1ee9f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/SQLiteData/CloudKit/Internal/Triggers.swift:66-89 | Sources/SQLiteData/CloudKit/Internal/Triggers.swift:91-120 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/Triggers.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dff02fdbea08de7dc710c5e0ab48e62d01ec9621840a507fc83057072784fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 20\u002B corresponding lines): Sources/SQLiteData/FetchAll\u002BSections.swift:163-183 | Sources/SQLiteData/FetchAll\u002BSections.swift:342-361 | Sources/SQLiteData/FetchAll\u002BSections.swift:685-707 | Sources/SQLiteData/FetchAll\u002BSections.swift:880-901 | Sources/SQLiteData/FetchAll\u002BSections.swift:1130-1153 | Sources/SQLiteData/FetchAll\u002BSections.swift:1319-1341 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b86cf0c35fe7a0efb4ee97187cd7c6dbe2d240dd3d55ebb7efb06169f9b2a69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Sources/SQLiteData/FetchAll.swift:223-236 | Sources/SQLiteData/FetchAll.swift:416-430 | Sources/SQLiteData/FetchAll.swift:615-630 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"84eb572d48d7aa0186d48a6436798257617e1805620f1c05bd1c0c964b087e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/SQLiteData/StructuredQueries\u002BGRDB/Statement\u002BSections.swift:62-73 | Sources/SQLiteData/StructuredQueries\u002BGRDB/Statement\u002BSections.swift:84-98 \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/SQLiteData/StructuredQueries\u002BGRDB/Statement\u002BSections.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"860b53fdd918487d09df18f361fd75643ea5308feb12cbc9457a4ecce15aa194"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/SQLiteData/CloudKit/SyncEngine.swift:573-585 | Sources/SQLiteData/CloudKit/SyncEngine.swift:595-613 \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/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"512d5f535b4a5fe98b510005d8f989a108ea25add3aaf54e4cd335814e08a78e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/SQLiteData/CloudKit/Internal/CloudDatabase.swift:37-51 | Sources/SQLiteData/CloudKit/Internal/CloudDatabase.swift:97-113 \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":"Sources/SQLiteData/CloudKit/Internal/CloudDatabase.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead726c6047b498089134accbd381df7583610751e38aecf3b3573c7f908cf64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/SQLiteData/FetchOne.swift:364-380 | Sources/SQLiteData/FetchOne.swift:878-895 \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/SQLiteData/FetchOne.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1ec8cc3d00dc3c1e87a7b3e40e2dfe32ba5eb4f10dfab16f172571b0a4e3f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift:26-37 | Sources/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift:79-90 \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/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b2175655c11ae4e81057177a05d2e8db93c494397b94f2927939c84424ce36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Sources/SQLiteData/FetchAll\u002BSections.swift:139-152 | Sources/SQLiteData/FetchAll\u002BSections.swift:657-672 | Sources/SQLiteData/FetchAll\u002BSections.swift:1101-1117 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a021956821308db235336268dfa3559ae5cef001e9ee09082280bc7dd9ee3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Sources/SQLiteData/FetchAll.swift:153-166 | Sources/SQLiteData/FetchAll.swift:337-351 | Sources/SQLiteData/FetchAll.swift:529-548 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9474ffc8df69cbc740be626a13d4683a3231fc2d88176f475a1e886c2e04fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): Sources/SQLiteData/FetchAll.swift:175-190 | Sources/SQLiteData/FetchAll.swift:362-378 | Sources/SQLiteData/FetchOne.swift:241-255 | Sources/SQLiteData/FetchOne.swift:740-755 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"1057644cb708026a0bcf01db3ce96fcef91af4c8bf0e5a0b57ed52ce2dd9272c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Sources/SQLiteData/FetchAll.swift:559-576 | Sources/SQLiteData/FetchOne.swift:1273-1289 | Sources/SQLiteData/FetchOne.swift:1415-1433 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a927de407b20a8763bab54130c4b32496217aed571be04e04f2e279d6b39fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/SQLiteData/FetchOne.swift:505-520 | Sources/SQLiteData/FetchOne.swift:1053-1073 \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/SQLiteData/FetchOne.swift"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f6a2fe8556f41adf734842bf350e882aad058be0b52e3f73d0706cec2f9e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Sources/SQLiteData/FetchOne.swift:1444-1457 | Sources/SQLiteData/FetchOne.swift:1468-1479 | Sources/SQLiteData/FetchOne.swift:1562-1575 \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/SQLiteData/FetchOne.swift"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0437981c3afded016fc278e91cc80fc69c7ebc2e2404e837fedebdac76a56a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift:83-98 | Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift:105-120 \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/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8adca118f3223cd8911eb9e89912c77f98e7dda57ca7340e75a4910afe3d4be0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Sources/SQLiteData/Fetch.swift:148-159 | Sources/SQLiteData/FetchAll.swift:273-284 | Sources/SQLiteData/FetchOne.swift:528-539 \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/SQLiteData/Fetch.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3882ddf50bd69a6195357faf2e22be807bdbd45c3c85aa3bf65136927ca8fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): Sources/SQLiteData/FetchOne.swift:220-232 | Sources/SQLiteData/FetchOne.swift:389-401 | Sources/SQLiteData/FetchOne.swift:716-729 | Sources/SQLiteData/FetchOne.swift:906-919 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchOne.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eafa17e272447648ee4fa86a8f2b67ff5aedd4bf2902a2e77f066e793758ac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): Sources/SQLiteData/FetchAll.swift:245-263 | Sources/SQLiteData/FetchAll.swift:441-461 | Sources/SQLiteData/FetchAll.swift:641-662 | Sources/SQLiteData/FetchOne.swift:930-948 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6664f43e6be865426e27d6b21161d17fc0ef24be4707a0453629f1800622f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/SQLiteData/Fetch.swift:172-183 | Sources/SQLiteData/Fetch.swift:237-249 \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/SQLiteData/Fetch.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"968c452a51b1161c5192bae83d82b2377c1d91d550a1335cdd729d7c7b9aacfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SQLiteData/Internal/FetchBox.swift:21-31 | Sources/SQLiteData/Internal/FetchBox.swift:66-78 \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/SQLiteData/Internal/FetchBox.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afb477fbb316fcab0ee64cee576735461a2dd0abe6a26f25633db15bf6962a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SQLiteData/StructuredQueries\u002BGRDB/Statement\u002BSections.swift:41-49 | Sources/SQLiteData/StructuredQueries\u002BGRDB/Statement\u002BSections.swift:108-116 \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/SQLiteData/StructuredQueries\u002BGRDB/Statement\u002BSections.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd15d4e503394cf1c85cb294d9ccf4cd2bc8ba390f4358f7c8956505c82237bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SQLiteData/Internal/FetchBox.swift:33-41 | Sources/SQLiteData/Internal/FetchBox.swift:80-93 \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/SQLiteData/Internal/FetchBox.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c44b84462fe49e908ad41aafcae70bc16916fe9686648c6e1698e8f54a751a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SQLiteData/CloudKit/SyncEngine.swift:2280-2288 | Sources/SQLiteData/CloudKit/SyncEngine.swift:2290-2299 \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/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":2280}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6c2edd6d308e8081eebb51ede8e4d051bbbdf6f2d9f8e0d3b9838a77da167f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/SQLiteData/FetchAll.swift:294-308 | Sources/SQLiteData/FetchAll.swift:486-500 \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":"Sources/SQLiteData/FetchAll.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48cb7b215827613f16b0c3ac8fccb232ebcbfdb346d9fb28b0003b484b989ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/SQLiteData/CloudKit/Internal/UnsyncedRecordID.swift:51-57 | Sources/SQLiteData/CloudKit/SyncMetadata.swift:199-205 \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/SQLiteData/CloudKit/Internal/UnsyncedRecordID.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3958efb55bd6a30ae5d22e4e90fc33f71a43746a20f1277e998d4f03f36c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/SQLiteData/Fetch.swift:194-203 | Sources/SQLiteData/Fetch.swift:260-270 \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/SQLiteData/Fetch.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"9302cdc651762e45e7a0bb121ef3e016f94d9064c6abda8c40e5155301197dd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/SQLiteData/FetchAll\u002BSections.swift:1458-1465 | Sources/SQLiteData/FetchAll\u002BSections.swift:1467-1473 \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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba0418039bd84fd6d64f6ba8486b4a8b997518e9c76917c01dd0e8d4a818d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/SQLiteData/StructuredQueries\u002BGRDB/QueryCursor.swift:97-108 | Sources/SQLiteData/StructuredQueries\u002BGRDB/QueryCursor.swift:152-163 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/StructuredQueries\u002BGRDB/QueryCursor.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf7e0ec6e004a3e457959a58fc72ba83dee9832a5f1f8ba314bbbf24a7a86ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/SQLiteData/CloudKit/Internal/CloudDatabase.swift:53-58 | Sources/SQLiteData/CloudKit/Internal/CloudDatabase.swift:89-95 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/CloudDatabase.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e7ca2e81cc7b2ebd32fa926c659c13f94fb323a66f9e93861d061314a72515"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/SQLiteData/FetchAll.swift:671-676 | Sources/SQLiteData/StructuredQueries\u002BGRDB/Statement\u002BGRDB.swift:41-48 | Sources/SQLiteData/StructuredQueries\u002BGRDB/Statement\u002BGRDB.swift:160-167 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b335b7822b56e68a4b860ef3bd5f759d594ad8b43e7f6f0cc308acdbf50376"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/SQLiteData/Internal/FetchKey\u002BSwiftUI.swift:17-24 | Sources/SQLiteData/Internal/FetchKey.swift:40-47 \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/SQLiteData/Internal/FetchKey\u002BSwiftUI.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a6d96b22495b13029ae763495df420eed01d912e9760bf21d3d2a5493cfd40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/SQLiteData/Internal/FetchKey\u002BSwiftUI.swift:8-15 | Sources/SQLiteData/Internal/FetchKey.swift:13-19 \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/SQLiteData/Internal/FetchKey\u002BSwiftUI.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"875feab5c1692a88546f4aa1f7b789a19fc73e7bc1452b8b9dcec1898a67c1a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift:68-71 | Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteQueryDecoder.swift:52-55 \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/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c0db607581f13b81f7eab6d94645cc14aa8cfa970451eb23d22f678b4e41e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift:100-103 | Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteQueryDecoder.swift:82-85 \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/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"520892ae494039546608fcc69c914ff0f2f07cfd149fcd581471519c114d8f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift:52-71 | Sources/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift:105-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"781055223c30bacfbeb7da8e2db9e524e44fc388ba6716b568b4509442b9e8f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:1178-1192 | Sources/SQLiteData/FetchAll\u002BSections.swift:1216-1231 | Sources/SQLiteData/FetchAll\u002BSections.swift:1257-1272 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:1178\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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"600812578bac0374a3f0e7f5c7a9f0a1424bab97fe6d0dafa8d8732cda4ae064"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/SQLiteData/CloudKit/CloudKitSharing.swift:275-290 | Sources/SQLiteData/CloudKit/CloudKitSharing.swift:392-407 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SQLiteData/CloudKit/CloudKitSharing.swift:273\u0060 calls \u0060Dependency\u0060, \u0060Environment\u0060 and \u0060Sources/SQLiteData/CloudKit/CloudKitSharing.swift:391\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/SQLiteData/CloudKit/CloudKitSharing.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db8547e8322aa12f28af33ae01b7196583c45527651cfde4bb30e1d6916c49f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:1365-1378 | Sources/SQLiteData/FetchAll\u002BSections.swift:1401-1415 | Sources/SQLiteData/FetchAll\u002BSections.swift:1440-1454 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:1365\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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a51cb77f757b7d3f352f2c91eb21227f04e34df40c86571959cee864099d07e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/SQLiteData/FetchAll\u002BSections.swift:693-707 | Sources/SQLiteData/FetchAll\u002BSections.swift:1139-1153 \u2014 both copies are in the same file, so extract the block 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/SQLiteData/FetchAll\u002BSections.swift:693\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:1170\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:724\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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f0b90e59949366153ce224a0629eaba20333c781ccc05f1523efa458c4903a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/SQLiteData/FetchAll\u002BSections.swift:888-901 | Sources/SQLiteData/FetchAll\u002BSections.swift:1328-1341 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:888\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:1357\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:917\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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"97dfa7e124a4cc0463ae780b58d1948b164af08a606d09e73becf74e8be7e84b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/SQLiteData/CloudKit/Internal/Triggers.swift:48-59 | Sources/SQLiteData/CloudKit/Internal/Triggers.swift:133-144 \u2014 both copies are in the same file, so extract the block 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/SQLiteData/CloudKit/Internal/Triggers.swift:48\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/SQLiteData/CloudKit/Internal/Triggers.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf9801dc10d38a114240d056485ba68ff82fbc6e97ec6f396e146fd7e6a7383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/SQLiteData/FetchAll\u002BSections.swift:318-329 | Sources/SQLiteData/FetchAll\u002BSections.swift:854-865 \u2014 both copies are in the same file, so extract the block 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/SQLiteData/FetchAll\u002BSections.swift:318\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7456e762a1c41871ed8b9909ba94b3a6c9589eb76bc179f8991918db6e711a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:445-455 | Sources/SQLiteData/FetchAll\u002BSections.swift:993-1003 | Sources/SQLiteData/FetchAll\u002BSections.swift:1430-1440 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:445\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/SQLiteData/FetchAll\u002BSections.swift:1429\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:444\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade3a5f621a7d05d5468dafd5eae46a2bafe398382112a8b99121bc3970ffde4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/SQLiteData/CloudKit/Internal/Triggers.swift:172-182 | Sources/SQLiteData/CloudKit/Internal/Triggers.swift:222-232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/CloudKit/Internal/Triggers.swift:172\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/SQLiteData/CloudKit/Internal/Triggers.swift:169\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/CloudKit/Internal/Triggers.swift:219\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/SQLiteData/CloudKit/Internal/Triggers.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"651cdec7845a1046ceb7967ded187822c4ceb0e657cd0f28f77d13b9eb67bb11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:235-244 | Sources/SQLiteData/FetchAll\u002BSections.swift:764-772 | Sources/SQLiteData/FetchAll\u002BSections.swift:1208-1216 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:235\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:1207\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:234\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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca50976a000eb7eefcee3f34e97222a3b7be0c4d96f265abec8104c56d5d123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:274-284 | Sources/SQLiteData/FetchAll\u002BSections.swift:806-816 | Sources/SQLiteData/FetchAll\u002BSections.swift:1247-1257 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:274\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:1246\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:273\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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b3c6a1acd7889075c93fc1d56ee131dae7947b91bf44aa97d6cf4cbb95f4ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:409-418 | Sources/SQLiteData/FetchAll\u002BSections.swift:954-962 | Sources/SQLiteData/FetchAll\u002BSections.swift:1393-1401 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:409\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:1392\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:408\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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bbebc5a5a32ed63ac2087819c3e3b7796a59b2fbf3b4b465c4ee2fec0141d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/SQLiteData/CloudKit/SyncEngine.swift:2204-2212 | Sources/SQLiteData/CloudKit/SyncEngine.swift:2221-2230 \u2014 both copies are in the same file, so extract the block 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/SQLiteData/CloudKit/SyncEngine.swift:2204\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3fc81c8191bda3418d2663b89a983891bc21a2022bd5584b5030a7ccaaaa7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Sources/SQLiteData/Fetch.swift:152-159 | Sources/SQLiteData/FetchAll.swift:276-284 | Sources/SQLiteData/FetchOne.swift:532-539 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/Fetch.swift:152\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/SQLiteData/Fetch.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78cf010521b35038dcf437fc6b37fe4a3ed9958fcf5663b6aa3de3d99318055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift:29-37 | Sources/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift:82-90 \u2014 both copies are in the same file, so extract the block 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/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift:29\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73829eb2e852920692600a6fb8915cdefa155f8e56ae5bb8803b3ac3d253ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/SQLiteData/CloudKit/Internal/UnsyncedRecordID.swift:60-68 | Sources/SQLiteData/CloudKit/SyncMetadata.swift:208-215 \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. 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/SQLiteData/CloudKit/Internal/UnsyncedRecordID.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f94014f2783651373cedbe0cc36c1b670cd6792295d29cf3a75096f991f3c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/SQLiteData/FetchAll\u002BSections.swift:110-118 | Sources/SQLiteData/FetchAll\u002BSections.swift:626-634 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:110\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d372607bf0f085f0aca19db35504d1b46878f4666902421c2f8d4ff04c4cabe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:198-205 | Sources/SQLiteData/FetchAll\u002BSections.swift:724-730 | Sources/SQLiteData/FetchAll\u002BSections.swift:1171-1177 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:198\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:1170\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:183\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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccb0e1c14e88ada617adaad7d9c42c0913cfedd96d5099462e24067026348d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:375-382 | Sources/SQLiteData/FetchAll\u002BSections.swift:917-923 | Sources/SQLiteData/FetchAll\u002BSections.swift:1358-1364 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:375\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:1357\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:361\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/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e842c44e2ad335001a74cb60d3f3ba5804f900d1268efa0efc8004330f646cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/SQLiteData/FetchAll.swift:227-234 | Sources/SQLiteData/FetchAll.swift:421-428 | Sources/SQLiteData/FetchAll.swift:621-628 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SQLiteData/FetchAll.swift:227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SQLiteData/FetchAll.swift:641\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll.swift:441\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/SQLiteData/FetchAll.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a64a7b7fd64c20fa304d53339ca27b82a5dce31251ce5767e442f1135462062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SQLiteData/CloudKit/SyncEngine.swift:2202-2208 | Sources/SQLiteData/CloudKit/SyncEngine.swift:2659-2665 \u2014 both copies are in the same file, so extract the block 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/SQLiteData/CloudKit/SyncEngine.swift:2202\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/SQLiteData/CloudKit/SyncEngine.swift:2657\u0060 calls \u0060contains\u0060 and \u0060Sources/SQLiteData/CloudKit/SyncEngine.swift:2201\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/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":2202}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4674f306e0e008a40a5e963685d60e5a75b5db89ec055cd6248239f389b0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): Sources/SQLiteData/FetchAll\u002BSections.swift:814-819 | Sources/SQLiteData/FetchAll\u002BSections.swift:1001-1005 \u2014 both copies are in the same file, so extract the block 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/SQLiteData/FetchAll\u002BSections.swift:814\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc448291e059dbed20c0dd425d08975ddbb060bc2c549f1b5f7876a328d8b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift:141-146 | Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteQueryDecoder.swift:119-124 \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":"Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2408158d8ee701e07ab4ecb1a8414da401847e901cbbb01ca6b4813ffb64b27c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SQLiteData/Fetch.swift:30-35 | Sources/SQLiteData/FetchOne.swift:30-35 \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":"Sources/SQLiteData/Fetch.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c72b31ce953273954942800ad17722dcd23cb91871a1a352490142f8822da18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SQLiteData/Fetch.swift:142-146 | Sources/SQLiteData/FetchOne.swift:522-526 \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":"Sources/SQLiteData/Fetch.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7636b9b5ce4cd411f15863c752cb1bb7df7c642ba28fe48b426a0bf5568222f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/SQLiteData/Fetch.swift:220-226 | Sources/SQLiteData/FetchAll.swift:478-484 | Sources/SQLiteData/FetchOne.swift:1090-1096 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/Fetch.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55d0ba8c8e9d6e14b5534b4bd03a0d106dbaf8eb7078e23e163eefddec9482d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift:73-81 | Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteQueryDecoder.swift:57-65 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3057585c5362551cbf4d6c4b1c71d6d538f286c84fb9cca54c309e8348f0a6f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Examples/CaseStudies/Animations.swift:20-46 | Examples/CaseStudies/DynamicQuery.swift:22-80 | Examples/CaseStudies/SwiftUIDemo.swift:21-55 | Examples/CaseStudies/TransactionDemo.swift:24-58 \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":"Examples/CaseStudies/Animations.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e54008179948fcaec43e93652a03c4d624157714547dbb894e210d589ab8f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Examples/Reminders/RemindersDetail.swift:52-74 | Examples/Reminders/RemindersLists.swift:123-143 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/Reminders/RemindersDetail.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5cb7d06989edf87f6b568603b9e79ff54669e5962928bc0c9ee3968ba7cede"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Examples/Integration/Regression Coverage/ChildIdentityReset.swift:69-93 | Examples/Integration/Regression Coverage/ParentDrivenQuery.swift:68-98 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/Integration/Regression Coverage/ChildIdentityReset.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5110ae82e9f7ccb9452a7ca280d883fc2a32a339db2ad5a8b020b46db046454"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Examples/CaseStudies/ObservableModelDemo.swift:75-85 | Examples/SyncUps/SyncUpDetail.swift:42-49 \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":"Examples/CaseStudies/ObservableModelDemo.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"114fa18d55f4a28cf870075f9b89b4f2fbb611137faa5013a4418e00be111aeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Examples/CaseStudies/TransactionDemo.swift:65-70 | Examples/Integration/Regression Coverage/ParentRerenderLoadedData.swift:53-55 \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":"Examples/CaseStudies/TransactionDemo.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d88b01fbdc5a93ded69d08693578e1a9c49a6583afb2bfdedddddb2557844c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Examples/CloudKitDemo/CountersListFeature.swift:141-150 | Examples/Reminders/RemindersLists.swift:439-448 | Examples/SyncUps/SyncUpsList.swift:153-162 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/CloudKitDemo/CountersListFeature.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"229688d1caecc71709b15bee31cb1632eeb6c0b142d448715a054beba2d793af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Examples/Integration/Regression Coverage/ChildIdentityReset.swift:35-58 | Examples/Integration/Regression Coverage/ParentRerenderDynamicQuery.swift:34-57 \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":"Examples/Integration/Regression Coverage/ChildIdentityReset.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e43940d9656bc0d4f5235b02bfc2598f486bc4a57aa03aff42c66b599d776f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): Examples/Integration/Regression Coverage/ChildIdentityReset.swift:71-93 | Examples/Integration/Regression Coverage/ParentDrivenQuery.swift:76-98 | Examples/Integration/Regression Coverage/ParentRerenderDynamicQuery.swift:70-92 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/Integration/Regression Coverage/ChildIdentityReset.swift:71\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/Integration/Regression Coverage/ChildIdentityReset.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87b4bcf3bb6c871964c0b62feda8f247e9b1bc589d31804c7a0823d0839e25b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): Examples/CaseStudies/Animations.swift:26-46 | Examples/CaseStudies/DynamicQuery.swift:60-80 | Examples/CaseStudies/SwiftUIDemo.swift:35-55 | Examples/CaseStudies/TransactionDemo.swift:38-58 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/CaseStudies/Animations.swift:26\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/CaseStudies/Animations.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"473ee7bef6765e70850ef5587c3edfc5506249b91db053f4cab10672988d0c7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/SQLiteDataTestSupport/AssertQuery.swift:92-106 | Sources/SQLiteDataTestSupport/AssertQuery.swift:108-123 \u2014 both copies are in the same file, so extract the block 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/SQLiteDataTestSupport/AssertQuery.swift:108\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteDataTestSupport/AssertQuery.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7cce59e625e567cacc9ac719495b67be8b8a0e2f12e370df4dd124ce7c56a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Examples/Reminders/TagsForm.swift:26-39 | Examples/Reminders/TagsForm.swift:47-61 \u2014 both copies are in the same file, so extract the block 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 \u0060Examples/Reminders/TagsForm.swift:26\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Examples/Reminders/TagsForm.swift:41\u0060 calls \u0060Text\u0060 and \u0060Examples/Reminders/TagsForm.swift:62\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":"Examples/Reminders/TagsForm.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae5fb1d034b0491319d45b843bfaf1cb6c4c427bf61e1823c13ec618df1932c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Examples/Reminders/RemindersLists.swift:277-283 | Examples/Reminders/RemindersLists.swift:299-305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/Reminders/RemindersLists.swift:277\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/Reminders/RemindersLists.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b08951f60845a47cbc31cde6b5289b2baa76ac1d0f5e743c9bbfa767770f594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Examples/Reminders/RemindersDetail.swift:58-63 | Examples/Reminders/RemindersLists.swift:129-134 \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 \u0060Examples/Reminders/RemindersDetail.swift:58\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/Reminders/RemindersDetail.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca59dc32cf2dcb4190952d92761a556360397ad4f141c3b9a92eb88df8f37840"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 9): Examples/CaseStudies/Animations.swift:56-72 | Examples/CaseStudies/DynamicQuery.swift:110-126 | Examples/CaseStudies/ObservableModelDemo.swift:95-111 | Examples/CaseStudies/SwiftDataTemplateDemo.swift:65-81 | Examples/CaseStudies/SwiftUIDemo.swift:65-81 | Examples/CaseStudies/TransactionDemo.swift:82-98 | Examples/CaseStudies/UIKitDemo.swift:122-138 | Examples/Integration/Regression Coverage/ParentRerenderAnimations.swift:66-82 | Examples/Integration/Regression Coverage/ParentRerenderCancellation.swift:72-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/CaseStudies/Animations.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a205eeb6c2ae32a8c884ae732d7ea036c861502ac65dc30e0642b77801281160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Examples/CloudKitDemo/CloudKitDemoApp.swift:30-41 | Examples/Reminders/RemindersApp.swift:83-94 \u2014 before extracting anything, compare \u0060Examples/CloudKitDemo/CloudKitDemoApp.swift\u0060 and \u0060Examples/Reminders/RemindersApp.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/CloudKitDemo/CloudKitDemoApp.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"440732adf0b15d1923dfc109ea1682eabc7923d78136ca4762220ff43d050229"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Examples/CloudKitDemo/CloudKitDemoApp.swift:48-55 | Examples/Reminders/RemindersApp.swift:101-108 \u2014 before extracting anything, compare \u0060Examples/CloudKitDemo/CloudKitDemoApp.swift\u0060 and \u0060Examples/Reminders/RemindersApp.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/CloudKitDemo/CloudKitDemoApp.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9256cb1a03a99f458389725753b5c6a9dca6de19b14613ef2e4e8cdd701369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Examples/CloudKitDemo/CloudKitDemoApp.swift:57-67 | Examples/Reminders/RemindersApp.swift:110-122 \u2014 before extracting anything, compare \u0060Examples/CloudKitDemo/CloudKitDemoApp.swift\u0060 and \u0060Examples/Reminders/RemindersApp.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/CloudKitDemo/CloudKitDemoApp.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"51713a82c42bb441c314c0734e70543462bc491e906ba1b929e7c771292d386f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Examples/Integration/Regression Coverage/ParentRerenderCancellation.swift:18-27 | Examples/Integration/Regression Coverage/ParentRerenderDynamicQuery.swift:18-27 \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":"Examples/Integration/Regression Coverage/ParentRerenderCancellation.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a718ba06fa8364862bae991699bf40c09b44d611fc5bdf2ebc3456afd9ebde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Examples/Integration/Regression Coverage/ParentRerenderLoadError.swift:19-26 | Examples/Integration/Regression Coverage/ParentRerenderLoadedData.swift:19-26 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/Integration/Regression Coverage/ParentRerenderLoadError.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad374527083d1a8813def71327a1ee206f4add0374ea5fb15271934c2c66abaa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: assertQueryBasic: 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/SQLiteDataTests/AssertQueryTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9aab44f4abba9d90486bbaf2d035790b77bff7e16f04569625964d4679f5a1b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: assertQueryRecord: 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/SQLiteDataTests/AssertQueryTests.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0ebf8ea5fcb90f819b8c4b7fda0926d7d59f7b28af719ba459238630b4c772"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: assertQueryBasicUpdate: 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/SQLiteDataTests/AssertQueryTests.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1660758cb2ec112841a8dc489aa2db28198f825a2802c2fb89b8a40553159a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: assertQueryRecordUpdate: 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/SQLiteDataTests/AssertQueryTests.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0fff0aec95397b2391f3c7a29f9777107c0c4d0ed01cb162909f73c67ea6db"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: assertQueryEmpty: 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/SQLiteDataTests/AssertQueryTests.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d3742e349fd6636db70edcd944a93535e06459ff0db9ac46823daf28a67c3f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: assertQueryBasicIncludeSQL: 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/SQLiteDataTests/AssertQueryTests.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba299d45eb2f0ff406b33283283c74e752123d175444cc13d9df76abc7649a7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: assertQueryRecordIncludeSQL: 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/SQLiteDataTests/AssertQueryTests.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc4fc74c76a1ced35b93674400491103f62b7b5fe2119e49d3987ceec29914e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: scalarFunction: 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/SQLiteDataTests/DatabaseFunctionTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"64983f7f592f85e287a91178a4195c32e6e689106942f26029298995b544745c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: aggregateFunction: 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/SQLiteDataTests/DatabaseFunctionTests.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbac7231a9d9594bc92be65959cfa1855922b92bc39b44ebc3d63e57be7d4b3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: basics: 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/SQLiteDataTests/PrimaryKeyMigrationTests.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d20ea11e70701594e12412544f40ae245145cfb4e78cdaeea6a2c1849959e93"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rowid: 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/SQLiteDataTests/PrimaryKeyMigrationTests.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab758aaa16883c9ea70f4f9062d7f32d06512bcb1fd2e702fe5afbdca1ea5a6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: dropUniqueConstraints: 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/SQLiteDataTests/PrimaryKeyMigrationTests.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c8832f4f6cfaafd33eed48c3d2515e940f9fb450f1d87d20fef7c8f49cf9ba"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: primaryKeyNamedUnique: 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/SQLiteDataTests/PrimaryKeyMigrationTests.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"864538a80ca622e79a65e6f3fda3f2dde2591039813c611b96c5632c9d3daeb9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: columnConstraints: 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/SQLiteDataTests/PrimaryKeyMigrationTests.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3db90215e0ee0da39ace185cee43b9803f2c58a58a00587a63c1c0b1fa5921"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: topLevelConstraints: 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/SQLiteDataTests/PrimaryKeyMigrationTests.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ddd9223b46967418e038807b87af8c9cad1e980581b35be2d33f2c443491ce"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: commentsAndNewlines: 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/SQLiteDataTests/PrimaryKeyMigrationTests.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fd132411cafd903b4a31dbd70306bdf6d77b742a19ffbc9149a685a4618fe3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: addPrimaryKeyWithCustomName: 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/SQLiteDataTests/PrimaryKeyMigrationTests.swift"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e0d81d544dafa0d14f7120b92c738e322bfb3283a9670c1f6637ea2e877bb0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: recreatesIndicesAndTriggers: 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/SQLiteDataTests/PrimaryKeyMigrationTests.swift"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ad11fc620230829f477af1a6105d4b3240103099ad19fb28b5a3df6dd5ffef"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: lowercaseNoQuotes: 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/SQLiteDataTests/PrimaryKeyMigrationTests.swift"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f15515ad700ce8247253afe9a04f310ebda7c618d36fd87febc0bd09dcd94c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: emptyInsert: 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/SQLiteDataTests/QueryCursorTests.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa4b01d239441c2d3d3ca991fb030e75c29c6df1eee6fb9682af9dee512f750"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: emptyUpdate: 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/SQLiteDataTests/QueryCursorTests.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"82145119496cdc2538828d12b56df9e35185e3dc8f3856722b81e4cef32f4a6f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: signInUploadsLocalRecordsToCloudKit_SkipExistingCloudKitRecords: 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/SQLiteDataTests/CloudKitTests/AccountLifecycleTests.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ccf0cfdb581db29dbce6152e3546a6e6faaaae31cfd47a2ffa963ca55892e5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: createSharedRecordWhileSoftLoggedOut: 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/SQLiteDataTests/CloudKitTests/AccountLifecycleTests.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca94d470d249660c2c8585771d6f381f67608b45f66ce91625deb5d46e22b78b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: doNotUploadExistingDataToCloudKitWhenSignedOut: 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/SQLiteDataTests/CloudKitTests/AccountLifecycleTests.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a8250604713d59f281e49e3ba328a784bcfaa9edb93294f05483b60f4ec1db"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSyncEngine: 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/SQLiteDataTests/CloudKitTests/SyncEngineTests.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4b72b12343160e835096718370514bfb018645e1123d26f5929014947f411e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: previewSyncEngine: 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/SQLiteDataTests/CloudKitTests/SyncEngineTests.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"51585993a659fa68b9eb824ed633f07360d1be2106442f6ce124db0873486e5c"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency not covered by the committed resolution: swift-tagged: \u0060swift-tagged\u0060 is declared in Package.swift but has no entry in the committed \u0060Package.resolved\u0060 beside it, so its version is resolved rather than pinned. Resolve the package and commit the updated \u0060Package.resolved\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"040fb0a92a0e1a3de4a5029220ff54db34ae8335b5c8cef3101f091455847215"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SQLiteData/CloudKit/SyncEngine.swift: Sources/SQLiteData/CloudKit/SyncEngine.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in SyncEngine.handleSentRecordZoneChanges at line 1744. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-11 12:25:39 -08:00\u0027 --until=\u00272026-11-09 12:25:39 -08:00\u0027 --full-history --no-merges -- Sources/SQLiteData/CloudKit/SyncEngine.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/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5ab12c415e34e9205dd124842e8c8d580db7c71fe221f9fb699635667480a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SQLiteData/CloudKit/Internal/MockCloudDatabase.swift: Sources/SQLiteData/CloudKit/Internal/MockCloudDatabase.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in MockCloudDatabase.modifyRecords at line 126. 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-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-11 12:25:39 -08:00\u0027 --until=\u00272026-11-09 12:25:39 -08:00\u0027 --full-history --no-merges -- Sources/SQLiteData/CloudKit/Internal/MockCloudDatabase.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/SQLiteData/CloudKit/Internal/MockCloudDatabase.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d72b41b1dacd2219fc446e0506b0bd859b850f5a135229c530c564eb5dcb4c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SQLiteData/CloudKit/Internal/MockSyncEngine.swift: Sources/SQLiteData/CloudKit/Internal/MockSyncEngine.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in SyncEngine.sendPendingRecordZoneChanges at line 244. 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-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-11 12:25:39 -08:00\u0027 --until=\u00272026-11-09 12:25:39 -08:00\u0027 --full-history --no-merges -- Sources/SQLiteData/CloudKit/Internal/MockSyncEngine.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/SQLiteData/CloudKit/Internal/MockSyncEngine.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c51bacda5bec511ef0bdca4f3d0fa06ec3ecd1d905e10435b69441a909f240"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 5 significant file(s) lose their only recent owner: Sources/SQLiteData/FetchAll\u002BSections.swift, Sources/SQLiteData/StructuredQueries\u002BGRDB/Statement\u002BSections.swift, Sources/SQLiteData/ResultsSectionCollection.swift, Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift, Sources/SQLiteData/Internal/FetchBox.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"93b277041d59ad612952737c26be77e941bbcde2e86aa77d02c6d7c9b1429799"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (6 single-owned of 39 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 39 of the 69 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: Sources/SQLiteData/CloudKit/SyncEngineDelegate.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This should merge copy\u0027s values to more accurately reflect reality \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/SQLiteData/CloudKit/Internal/MockCloudDatabase.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2d4e10bb549faf98c01e3515b6cb710c9e12236a20683b87c298d210e26c19"}},{"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":"0dbb915274563a1a1c7710b67a8c19d2a107f22fcaf0daddfce999f66be50e9d"},"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":"ed65b9c95a4dc53898afcb477735e650c15707ac619af8959b21ca0939b1e0af"},"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":"c6ef2f316ca631b692d03c475bed7e473e93f3db6fa35d9ef86248c50808e234"},"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":"247483f828b3782bd68a429f8bdba361c29de51e5be089a53259e3581c983944"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"5c802ec97e672feaa32f710e6686a62b890e325cf5a04a8fb4136422a8a2ef74"},"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":"13395fc53c7cb0f50a839d9cf572a19a04bf0dcfdadb3ba11244cf944dfac19a"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 39 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; 39 of the 69 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/SQLiteDataTestSupport/AssertQuery.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/SQLiteDataTestSupport/AssertQuery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb8638ad6a4fbe371680c4dcd88e680d8c3b8a9f657e8a9f8977522b93d258c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FetchAll.swift \u2194 FetchOne.swift: \u0060Sources/SQLiteData/FetchAll.swift\u0060 and \u0060Sources/SQLiteData/FetchOne.swift\u0060 change together 64% of the time (9 of the 14 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 \u0060d50816a8\u0060 Use cached statements (#527); \u0060a4f88771\u0060 Make animation optional in load endpoints (#463); \u0060df360b23\u0060 Don\u0027t execute \u0060@Fetch{All,One}\u0060 queries for selections (#350) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d31ee50aba25fa31d846414a621d66d439e15c209d3c6f3b2adddc95909e640"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"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":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","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":"90ef8645d5d250a2cdd6c4ddecf434c2439a3eaf0b71b0b76b3e93b4d1bb9e49"},"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":"65d87ec21c1ecf43a0424ab644272e64330044f506a9f75bd32965b5f8696841"},"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":"DM4","level":"error","message":{"text":"Anemic domain model: TableColumns: \u0060TableColumns\u0060 is a data-only reference entity whose behaviour is DELEGATED to a foreign utility (static methods that take it as their first parameter and hold its logic) \u2014 the anemic domain model. Move the behaviour onto the entity so it enforces its own invariants rather than being driven from outside."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/Reminders/Schema.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"946d3b65b10aeb4225fd35591764e1b5affcc8c940608d7e77364b8ac5171da2"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: SyncMetadata: \u0060SyncMetadata\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncMetadata.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60df0ddff8db6f1215009134d0b9b9a88ef95e56c0430579ebdf4eefba3e8e9"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: ForeignKey: \u0060ForeignKey\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/ForeignKey.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"4faa48b7017daf39e4b55e815f3fb443b63ce00bb05cd8cd145156d11d134950"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: PendingRecordZoneChange: \u0060PendingRecordZoneChange\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/PendingRecordZoneChange.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63be6d982ef67860fbe58ec9e0a8701e47fa480c12fb9ce762860ded6aaf348"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: PragmaDatabaseList: \u0060PragmaDatabaseList\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/Pragmas.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2654a4f2e42fccbf0b741bdb15dfc4c1d330aa83496e81886907ba6f9d9a14"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: PragmaForeignKeyCheck: \u0060PragmaForeignKeyCheck\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/Pragmas.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6453a6e4e3be4dbe5e837804fc1bc2eee256d5d862c3a16e76cd088aedb77f21"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: PragmaForeignKeyList: \u0060PragmaForeignKeyList\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/Pragmas.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"519987000ad1d1de1b39c257edb8ad4bd88e15da358f569c71f3fc595837da0d"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: PragmaIndexList: \u0060PragmaIndexList\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/Pragmas.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53978bde892d29947f897ae8de92cc6b6dbc4e97677e40b68e432547f1ba1b3"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: PragmaTableInfo: \u0060PragmaTableInfo\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/Pragmas.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6894a91d1367c159b31793c39486aac665426a01cf15bd1134e25f314228db"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: RecordType: \u0060RecordType\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/RecordType.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12312911143629ca26481a59bbd728e8986122de496f2d646680569cdc14b93"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: SQLiteSchema: \u0060SQLiteSchema\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/SQLiteSchema.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"825bed618e82f0e9547b4cfe9f6e68fb5dc26a439e748ec649f287bea1808520"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: StateSerialization: \u0060StateSerialization\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/StateSerialization.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f81ad77a758daf7f227b0c7c3c372f5673d712411ed0d3e7f5bf52e287c67ec"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: TableInfo: \u0060TableInfo\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/TableInfo.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9c32c664749f822aa3ce0e3afa21f09d7268c1d8b01d77f1a17c186a488092"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: UnsyncedRecordID: \u0060UnsyncedRecordID\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/UnsyncedRecordID.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"78cb4c3e65f2309eeda3d5608dac6f30c85ccb6c2e5673c325c3e6fb3c4e07ba"}},{"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":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060SQLiteData\u0060 is marked as implementation by its own namespace, folder or name: \u0060NotFound\u0060 (Sources/SQLiteData/Internal/FetchKey.swift:191, \u0060Internal\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/Internal/FetchKey.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"07de17d1307119011d686af392a435c857bc5a3b64664aea27b3abbabf7e8ada"}},{"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/ci.yml"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.recordName.eq(recordID.recordName) \u0026\u0026 $0.zoneName.eq(recordID.zoneID.zoneName) \u0026\u0026 $0.ownerName.eq(recordID.zoneID.ownerName)\u0060 appears character-identically in 2 files \u2014 Sources/SQLiteData/CloudKit/Internal/UnsyncedRecordID.swift, Sources/SQLiteData/CloudKit/SyncMetadata.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/SQLiteData/CloudKit/Internal/UnsyncedRecordID.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c161cfa5982ca26bdc30a04af586a33634aee8600ac133a928ca99b237948b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060canImport(CloudKit) \u0026\u0026 canImport(CryptoKit)\u0060 appears character-identically in 2 files \u2014 Sources/SQLiteData/CloudKit/Internal/DataManager.swift, Sources/SQLiteData/CloudKit/PrimaryKeyMigration.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/SQLiteData/CloudKit/Internal/DataManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f000a39357fb83ff840d8d3e8c484a51edc23b917a6319a9801d09fa509ec0c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060share.publicPermission == .readWrite || share.currentUserParticipant?.permission == .readWrite\u0060 appears character-identically in 2 files \u2014 Sources/SQLiteData/CloudKit/Internal/CloudKitFunctions.swift, Sources/SQLiteData/CloudKit/Internal/MockCloudDatabase.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/SQLiteData/CloudKit/Internal/CloudKitFunctions.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d439e829b1cd1adcd40122beacababd0581adabf9cd5ee5c58d7450d6264b4f1"}},{"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/SQLiteData/CloudKit/Internal/DataManager.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"396e858b63c333d5d0bc6a0a00bdf5b95ea2cf9aca33d2fa53f05da4b76f7b30"}}],"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-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-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"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":13,"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."]}]}