{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"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":"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":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"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":"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 53): MockCloudDatabase.modifyRecords has cyclomatic complexity 53 (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/Internal/MockCloudDatabase.swift"},"region":{"startLine":92}}}],"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 31): SyncEngine.handleSentRecordZoneChanges has cyclomatic complexity 31 (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/SyncEngine.swift"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09a1fe882e444388fbe09e654589aafacea9e2276cb33c729615c9b1f7bc374"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncEngine.nextRecordZoneChangeBatch (cyclomatic 23): SyncEngine.nextRecordZoneChangeBatch has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"983165f8788bc7073cd63deb0202dbb29102cccd92c086c81729566099e4524e"}},{"ruleId":"D1","level":"warning","message":{"text":"CKRecord.update (cyclomatic 20): CKRecord.update has cyclomatic complexity 20 (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/CloudKit\u002BStructuredQueries.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0cf86b62cffe91828d6a8115872b17183bbb077c9dd05c66a4833ddaf5d326a"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncEngine.handleFetchedRecordZoneChanges (cyclomatic 19): SyncEngine.handleFetchedRecordZoneChanges has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee5532ab1a1af65de24aafdb2579f1d2ba92a839c4e48a90e5baeb3fe70babb"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncEngine.sendPendingRecordZoneChanges (cyclomatic 17): SyncEngine.sendPendingRecordZoneChanges has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c09d0ecae5cb87466ead7384f14e5330622ce88872a4969572a9e013e9f8a4d"}},{"ruleId":"D2","level":"warning","message":{"text":"MockCloudDatabase.modifyRecords (cognitive 98): MockCloudDatabase.modifyRecords has cognitive complexity 98 (threshold 15). Drivers by points: if/else 23 (57 pts), loops 8 (17 pts), boolean chains 14, ternaries 3 (6 pts), match/switch 2 (4 pts) (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/MockCloudDatabase.swift"},"region":{"startLine":92}}}],"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 34): SyncEngine.handleSentRecordZoneChanges has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 3 (7 pts), boolean chains 5, error handling 1 (3 pts), loops 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c1e5eea190399444cc4835b0b4c88ef42c5049ce0c79db43400d4104b3a0a3"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.handleFetchedRecordZoneChanges (cognitive 29): SyncEngine.handleFetchedRecordZoneChanges has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 6 (9 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"731f3d9279186d948ba0d403ee21eadc4377532c518e5f4aa92dbe9b13ffff3f"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.nextRecordZoneChangeBatch (cognitive 23): SyncEngine.nextRecordZoneChangeBatch has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 7, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"0625a5caed1b86e1dc86d0b3ed40728b8031f8c0e15997ce94bc1c4e799edd12"}},{"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":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a05ccfb717f4b9d1024991a18c93f766cfb0e1f8386478edde3ac6f703412dd"}},{"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). 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":1391}}}],"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). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1912}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3b5ca3657a32cf15f9fabdc72554ef12d2fd1d94602d172164fde71f0e2730"}},{"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). 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/CloudKit\u002BStructuredQueries.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edf2ea68a5915caea627bb70aa57b80fe9f7c9ecd781cfa5ed01a0493989538"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Database.add: MethodTooLong \u2014 add runs 594 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 494 over it, 5.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf9078fdf96514dc4274b80533209bd48c63951029ea4b5ee3efa7bea11ec7a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Database.add: MethodTooLong \u2014 add runs 593 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 493 over it, 5.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a4a50e9f9bc18c5141a79f92df12757d2981f790776f10e2b15b6abc19f21a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CloudKit/SyncEngine.swift: FileTooLong \u2014 1804 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1304 over it, 3.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b40c308d36f6da8264fcdc0c5569d38110c09bea9424186a51fb55ed5065bd3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FetchAll: TooManyMethods \u2014 61 methods. The bar is 30 methods; this is 31 over it, 2.03\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/FetchAll.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"467ca0075beed5fe8c81a92bc5010fa6ce5e3a0ab761f9f6130dc0f91a329918"}},{"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":"MethodTooLong: MockCloudDatabase.modifyRecords: MethodTooLong \u2014 modifyRecords runs 179 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/Internal/MockCloudDatabase.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e413e4475f32729be559be618774bda60a41bac35ebb608a68edaaa48fa30baa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SQLiteData/FetchAll\u002BSections.swift: FileTooLong \u2014 890 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 390 over it, 1.78\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchAll\u002BSections.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5030f0db21cc8b281ddc7834176bb346d643322761804c64ceae7eff612891ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SQLiteData/FetchOne.swift: FileTooLong \u2014 831 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 331 over it, 1.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/FetchOne.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec252c44c55aed5b67c2ee599445088b94e94d619b2001ab3afd9a56f0f54d40"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SyncEngine: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\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":"3587fddd3f070061a047c3c5c44a9307913856347a7e3de3249b0f6744064dba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncEngine.handleSentRecordZoneChanges: MethodTooLong \u2014 handleSentRecordZoneChanges runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf394022013279570832af1bbcb6853726d2b3431b08144aff553d4d38087c2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SyncEngine: ClassTooLong \u2014 586 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 186 over it, 1.47\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.nextRecordZoneChangeBatch: MethodTooLong \u2014 nextRecordZoneChangeBatch runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SQLiteData/CloudKit/SyncEngine.swift"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bec02341f57b726010b2dc70037e9b35783ebd137c8cbbb3b3833d9cde065b1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncEngine.handleFetchedRecordZoneChanges: MethodTooLong \u2014 handleFetchedRecordZoneChanges runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"f737de1d9149c3329ec4a8a11537d46d40125d6c000159b98bfbacd608e27068"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:1163-1177 | Sources/SQLiteData/FetchAll\u002BSections.swift:1199-1214 | Sources/SQLiteData/FetchAll\u002BSections.swift:1240-1255 \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:1163\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":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"600812578bac0374a3f0e7f5c7a9f0a1424bab97fe6d0dafa8d8732cda4ae064"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/SQLiteData/CloudKit/CloudKitSharing.swift:274-289 | Sources/SQLiteData/CloudKit/CloudKitSharing.swift:391-406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SQLiteData/CloudKit/CloudKitSharing.swift:272\u0060 calls \u0060Dependency\u0060, \u0060Environment\u0060 and \u0060Sources/SQLiteData/CloudKit/CloudKitSharing.swift:390\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":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f027fad9083e9b69e0a0d7d3bd6f4aba9bf90be0ba84966226daaea1014172"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:1347-1360 | Sources/SQLiteData/FetchAll\u002BSections.swift:1381-1395 | Sources/SQLiteData/FetchAll\u002BSections.swift:1420-1434 \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:1347\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":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a51cb77f757b7d3f352f2c91eb21227f04e34df40c86571959cee864099d07e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/SQLiteData/FetchAll\u002BSections.swift:685-699 | Sources/SQLiteData/FetchAll\u002BSections.swift:1125-1139 \u2014 both copies are in the same file, so extract the block 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:685\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:1156\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:716\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":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f0b90e59949366153ce224a0629eaba20333c781ccc05f1523efa458c4903a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/SQLiteData/FetchAll\u002BSections.swift:877-890 | Sources/SQLiteData/FetchAll\u002BSections.swift:1311-1324 \u2014 both copies are in the same file, so extract the block 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:877\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:1340\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:906\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":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"97dfa7e124a4cc0463ae780b58d1948b164af08a606d09e73becf74e8be7e84b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift:48-60 | Sources/SQLiteData/CloudKit/CloudKit\u002BStructuredQueries.swift:90-102 \u2014 both copies are in the same file, so extract the block 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":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"781055223c30bacfbeb7da8e2db9e524e44fc388ba6716b568b4509442b9e8f9"}},{"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:315-326 | Sources/SQLiteData/FetchAll\u002BSections.swift:843-854 \u2014 both copies are in the same file, so extract the block 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:315\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":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7456e762a1c41871ed8b9909ba94b3a6c9589eb76bc179f8991918db6e711a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:439-449 | Sources/SQLiteData/FetchAll\u002BSections.swift:979-989 | Sources/SQLiteData/FetchAll\u002BSections.swift:1410-1420 \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:439\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:1409\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:438\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":439}}}],"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:214-224 \u2014 both copies are in the same file, so extract the block 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:211\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 (10 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:271-280 | Sources/SQLiteData/FetchAll\u002BSections.swift:795-804 | Sources/SQLiteData/FetchAll\u002BSections.swift:1230-1239 \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:271\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:1229\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:270\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":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b3c6a1acd7889075c93fc1d56ee131dae7947b91bf44aa97d6cf4cbb95f4ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/SQLiteData/CloudKit/SyncEngine.swift:2051-2059 | Sources/SQLiteData/CloudKit/SyncEngine.swift:2068-2077 \u2014 both copies are in the same file, so extract the block 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:2051\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":2051}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3fc81c8191bda3418d2663b89a983891bc21a2022bd5584b5030a7ccaaaa7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Sources/SQLiteData/Fetch.swift:138-145 | Sources/SQLiteData/FetchAll.swift:262-270 | Sources/SQLiteData/FetchOne.swift:514-521 \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:138\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":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78cf010521b35038dcf437fc6b37fe4a3ed9958fcf5663b6aa3de3d99318055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/SQLiteData/CloudKit/Internal/UnsyncedRecordID.swift:28-36 | 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":28}}}],"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:618-626 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \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:234-241 | Sources/SQLiteData/FetchAll\u002BSections.swift:755-761 | Sources/SQLiteData/FetchAll\u002BSections.swift:1193-1199 \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:234\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:1192\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:233\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":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca50976a000eb7eefcee3f34e97222a3b7be0c4d96f265abec8104c56d5d123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/SQLiteData/FetchAll.swift:222-229 | Sources/SQLiteData/FetchAll.swift:407-414 | Sources/SQLiteData/FetchAll.swift:606-613 \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:222\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:626\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll.swift:427\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":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a64a7b7fd64c20fa304d53339ca27b82a5dce31251ce5767e442f1135462062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/SQLiteData/CloudKit/SyncEngine.swift:1793-1800 | Sources/SQLiteData/CloudKit/SyncEngine.swift:1830-1836 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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":1793}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d298010f5752e4b090edc289dca4695d987c64a81bbcdcb461a13e70824a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:372-378 | Sources/SQLiteData/FetchAll\u002BSections.swift:906-911 | Sources/SQLiteData/FetchAll\u002BSections.swift:1341-1346 \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:372\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:1340\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:358\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":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"e842c44e2ad335001a74cb60d3f3ba5804f900d1268efa0efc8004330f646cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:405-411 | Sources/SQLiteData/FetchAll\u002BSections.swift:942-948 | Sources/SQLiteData/FetchAll\u002BSections.swift:1375-1381 \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:405\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:1374\u0060 calls \u0060available\u0060 and \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:404\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":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bbebc5a5a32ed63ac2087819c3e3b7796a59b2fbf3b4b465c4ee2fec0141d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SQLiteData/CloudKit/SyncEngine.swift:2049-2055 | Sources/SQLiteData/CloudKit/SyncEngine.swift:2480-2486 \u2014 both copies are in the same file, so extract the block 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:2049\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/SyncEngine.swift"},"region":{"startLine":2049}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4674f306e0e008a40a5e963685d60e5a75b5db89ec055cd6248239f389b0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/SQLiteData/FetchAll\u002BSections.swift:198-203 | Sources/SQLiteData/FetchAll\u002BSections.swift:716-721 | Sources/SQLiteData/FetchAll\u002BSections.swift:1157-1162 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SQLiteData/FetchAll\u002BSections.swift:1156\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 (5\u20136 lines \u00D7 2): Sources/SQLiteData/FetchAll\u002BSections.swift:803-808 | Sources/SQLiteData/FetchAll\u002BSections.swift:987-991 \u2014 both copies are in the same file, so extract the block 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:803\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":803}}}],"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":"b43d39834524cb44072ab330fc2267c8991e43d2f55d59de6b65656c3679f2d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/SQLiteData/Fetch.swift:205-211 | Sources/SQLiteData/FetchAll.swift:463-469 | Sources/SQLiteData/FetchOne.swift:1067-1073 \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":205}}}],"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":"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 (14 lines \u00D7 2): Examples/Reminders/RemindersDetail.swift:57-70 | Examples/Reminders/RemindersLists.swift:128-141 \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:57\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":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"392f8e159dc7ad2510895e5b9d05c5b2d44893766b9d250418b476aca90c1345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Examples/Reminders/RemindersLists.swift:274-280 | Examples/Reminders/RemindersLists.swift:296-302 \u2014 both copies are in the same file, so extract the block 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:274\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/Reminders/RemindersLists.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b08951f60845a47cbc31cde6b5289b2baa76ac1d0f5e743c9bbfa767770f594"}},{"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:96-112 | 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":"d812b15b06c2aa6f37220c279dc4dd1316f7f4ca7c9b51a32b700a84e53132c1"}},{"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":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 Swift suite: Coverage NOT MEASURED: the Swift half could not be measured \u2014 the Swift suite in . produced no coverage export. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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/Internal/BaseCloudKitTests.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba095e0d799d7c9bb8ea0bfb82a50d9060a3f3dec4d3ded376edb7d1576f7ce"}},{"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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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":151}}}],"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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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":157}}}],"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/Internal/MockCloudDatabase.swift: Sources/SQLiteData/CloudKit/Internal/MockCloudDatabase.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in MockCloudDatabase.modifyRecords at line 92. 1 of those changes was a fix/bug commit, and the other 2 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-06-16..2026-09-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-16 10:14:10 -05:00\u0027 --until=\u00272026-09-14 10:14:10 -05: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":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d72b41b1dacd2219fc446e0506b0bd859b850f5a135229c530c564eb5dcb4c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SQLiteData/CloudKit/SyncEngine.swift: Sources/SQLiteData/CloudKit/SyncEngine.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in SyncEngine.sendPendingRecordZoneChanges at line 211. 1 of those changes was a fix/bug commit, and the other 2 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-06-16..2026-09-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-16 10:14:10 -05:00\u0027 --until=\u00272026-09-14 10:14:10 -05: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":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5ab12c415e34e9205dd124842e8c8d580db7c71fe221f9fb699635667480a1"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 7 significant file(s) lose their only recent owner: Sources/SQLiteData/FetchAll\u002BSections.swift, Sources/SQLiteData/StructuredQueries\u002BGRDB/Statement\u002BSections.swift, [e-mail redacted], Sources/SQLiteData/ResultsSectionCollection.swift, Sources/SQLiteData/StructuredQueries\u002BGRDB/SQLiteFunctionDecoder.swift, Sources/SQLiteData/StructuredQueries\u002BGRDB/CustomCollations.swift, Sources/SQLiteData/Internal/FetchBox.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"93b277041d59ad612952737c26be77e941bbcde2e86aa77d02c6d7c9b1429799"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Perform this work in a trigger instead of a task. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \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/SyncEngine.swift"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d63defbf5312e43982d2bf551c375ecb8c18c547d8fb7e38d81526123152007"}},{"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":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2d4e10bb549faf98c01e3515b6cb710c9e12236a20683b87c298d210e26c19"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent initialization patterns for Fetch vs FetchOne/FetchAll. Fetch uses a specific \u0060FetchKeyRequest\u0060 type in its constructor, while FetchOne and FetchAll accept generic \u0060S\u0060 or \u0060some Statement\u003CV\u003E\u0060 types directly. This creates a fragmented API surface where the same logical operation (initializing a fetch with a query) has different type constraints and parameter names across similar types.: Unify the query parameter type across Fetch, FetchOne, and FetchAll. Either all should accept a specific request type (like \u0060FetchKeyRequest\u0060) or all should accept the underlying statement/query type generically. Currently, \u0060Fetch\u0060 is stricter/more specific than \u0060FetchOne\u0060/\u0060FetchAll\u0060. (signatures: Fetch.init(wrappedValue: sending Value, some FetchKeyRequest\u003CValue\u003E, database: (any DatabaseReader)?) | FetchOne.init(wrappedValue: sending Value, database: (any DatabaseReader)?) | FetchOne.init(wrappedValue: Value, S, database: (any DatabaseReader)?) | FetchOne.init(wrappedValue: Value, some Statement\u003CV\u003E, database: (any DatabaseReader)?) | FetchOne.init(wrappedValue: Value, some Statement\u003CValue\u003E, database: (any DatabaseReader)?) | FetchAll.init(wrappedValue: [Element], database: (any DatabaseReader)?) | FetchAll.init(wrappedValue: [Element], S, database: (any DatabaseReader)?) | FetchAll.init(wrappedValue: [Element], some Statement\u003CV\u003E, database: (any DatabaseReader)?))"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ae7538b6f70c283a2e564d2d7f82724157a233009babe0b59c1c6b2179982711"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent method signatures for loading data. \u0060Fetch.load\u0060 expects a \u0060FetchKeyRequest\u0060, while \u0060FetchOne\u0060 and \u0060FetchAll\u0060 accept generic \u0060S\u0060 or \u0060Statement\u0060 types. Furthermore, \u0060FetchOne\u0060 has two distinct overloads for \u0060Statement\u003CV\u003E\u0060 and \u0060Statement\u003CValue\u003E\u0060, which is confusing and likely redundant if \u0060V\u0060 and \u0060Value\u0060 are related or if the distinction is not semantically clear to the user.: Standardize the \u0060load\u0060 method signature across all fetch types to accept a single, consistent query type. Remove the redundant \u0060Statement\u003CValue\u003E\u0060 overload in \u0060FetchOne\u0060 if it can be handled by a generic constraint or if \u0060Statement\u003CV\u003E\u0060 is sufficient. (signatures: Fetch.load(some FetchKeyRequest\u003CValue\u003E, database: (any DatabaseReader)?) | FetchAll.load(S, database: (any DatabaseReader)?) | FetchAll.load(some Statement\u003CV\u003E, database: (any DatabaseReader)?) | FetchOne.load(S, database: (any DatabaseReader)?) | FetchOne.load(some Statement\u003CV\u003E, database: (any DatabaseReader)?) | FetchOne.load(some Statement\u003CValue\u003E, database: (any DatabaseReader)?))"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b33e58585f76522da057ec87a4c9ebe4bd2243a4e0dbee6790b4cd252e15b9d3"}},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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 71% of the time (10 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 10 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"}},{"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"}},{"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"}},{"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"}},{"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":"9658270ba49f37ed04e99ab1263b6393cd42aed8bdfb7aafd9fa1070f5491895"}},{"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"}},{"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":81}}}],"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":6}}}],"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":"M4","level":"note","message":{"text":"README/code drift: README advertises Docker containerisation, but no Dockerfile/compose file exists \u2014 searched for: \u0060dockerfile\u0060, \u0060docker-compose\u0060, \u0060compose.yaml\u0060, \u0060compose.yml\u0060. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README\u0027s own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read \u2014 a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"343bbbd51ceb8de7a9ff88d79f7c797abf9b5921f8727b67b4d0f4f8a22c5e49"}},{"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 4720 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"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"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"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-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":12,"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."]}]}