{"$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":"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":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"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":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"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":"PF2","name":"Allocation hygiene","shortDescription":{"text":"Allocation hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF2"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"DynamicSchema.printCoreStoreSchema (cyclomatic 71): DynamicSchema.printCoreStoreSchema has cyclomatic complexity 71 (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/DynamicSchema\u002BConvenience.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1caf5076c26afff3362dba4970ff93acfb924aa0120e0c5b69fd3e83d124d7ad"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreStoreSchema.fourthPassSynthesizeManagedObjectClasses (cyclomatic 16): CoreStoreSchema.fourthPassSynthesizeManagedObjectClasses has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (createManagedObjectSubclass). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CoreStoreSchema.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e1a2879a44b685cbb4fd845f165efa91c2839f413171e01f3fc4b1966aa86a"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicSchema.printCoreStoreSchema (cognitive 199): DynamicSchema.printCoreStoreSchema has cognitive complexity 199 (threshold 15). Drivers by points: if/else 55 (160 pts), match/switch 3 (15 pts), ternaries 3 (14 pts), loops 4 (8 pts), boolean chains 2 (nesting depth added 132). 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/DynamicSchema\u002BConvenience.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7b3dd119b55511d4078f323edeaa9d9be0f97011273a3359a1d7f55fb178aa"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreStoreSchema.fourthPassSynthesizeManagedObjectClasses::createManagedObjectSubclass (cognitive 27): CoreStoreSchema.fourthPassSynthesizeManagedObjectClasses::createManagedObjectSubclass has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CoreStoreSchema.swift"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64718951f7c9a7813829d83d2113d4b7b20bf34384771db76e7b69480f9b7ed"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreStoreSchema.secondPassConnectRelationshipAttributes (cognitive 24): CoreStoreSchema.secondPassConnectRelationshipAttributes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 7 (9 pts), match/switch 1 (3 pts) (nesting depth added 10). Of this number, 19 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CoreStoreSchema.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"797a290cd6265ea10927d2816eb679ee82e93fd8151ed581e2131cef0d752cf3"}},{"ruleId":"D2","level":"warning","message":{"text":"Target.reload (cognitive 23): Target.reload has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiffableDataSource.Target.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9058cc4cef98a41887b9a4489d114ba2de239902b9f3a54620bec4017a7c73c"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreStoreObject.cs_snapshotDictionary (cognitive 22): CoreStoreObject.cs_snapshotDictionary has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 9). Of this number, 14 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DynamicObject.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6983f83b05434253a772adc6cd325483bbffe4c7387866ca39ccd026fb3915"}},{"ruleId":"D2","level":"warning","message":{"text":"Select.applyToFetchRequest (cognitive 21): Select.applyToFetchRequest has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 9). Of this number, 16 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Select.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cfc18d634b47c02b4ea8c6297475ba2dcc2e9f642c326cfe830ea924fa9f6e"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomSchemaMappingProvider.resolveEntityMappings (cognitive 19): CustomSchemaMappingProvider.resolveEntityMappings has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 4 (8 pts), if/else 5 (7 pts), loops 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CustomSchemaMappingProvider.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb744d5146a480ab262cdc195b18c8ca6c943e214f91787e0c5db4c44693cea"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomSchemaMappingProvider.cs_createMappingModel (cognitive 16): CustomSchemaMappingProvider.cs_createMappingModel has cognitive complexity 16 (threshold 15). Drivers by points: loops 10 (16 pts) (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CustomSchemaMappingProvider.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b131ccd493ed16a490cb1e1bb95164f423accdb4a875739111b81391dcfdf6cd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DataStack: TooManyMethods \u2014 78 methods, declared across 7 files: Sources/DataStack\u002BQuerying.swift (25), Sources/DataStack.swift (18), Sources/DataStack\u002BObserving.swift (13), Sources/DataStack\u002BDataSources.swift (7), \u002B3 more file(s). The bar is 30 methods; this is 48 over it, 2.60\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac7c4cdb5d5f2d45f2b4b1f9762434ea5e784096e54c7b3feda0dbeb54d41a7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DynamicSchema.printCoreStoreSchema: MethodTooLong \u2014 printCoreStoreSchema runs 210 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 110 over it, 2.10\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/DynamicSchema\u002BConvenience.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf794abcaea4e081852aeff74b8948fdfa94d67595bc3c6e39e44aefd137ee91"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ListSnapshot: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\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/ListSnapshot.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e42219ed68cd5d4dd827d57e49a4471b186fe053978b61170642e1c1bea7273"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseDataTransaction: TooManyMethods \u2014 52 methods, declared across 3 files: Sources/BaseDataTransaction\u002BQuerying.swift (28), Sources/BaseDataTransaction.swift (19), Sources/BaseDataTransaction\u002BImporting.swift (5). The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BaseDataTransaction.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc62b7c05c711e2cf9a8bda3bcf0945b1b5e9be9ca48872fb20825f271790736"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ListMonitor: ClassTooLong \u2014 683 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 283 over it, 1.71\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/ListMonitor.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2e31f34443874caf8dc63b8a6d3e2ead4f63102bbed989246d305492d2a99d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: From: TooManyMethods \u2014 51 methods, declared across 2 files: Sources/From\u002BQuerying.swift (41), Sources/From.swift (10). The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/From.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"360393ee32a6bba55e86a01e76d48ab4ce32191a332c298bbf8cddcb6afbad73"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Where: TooManyMethods \u2014 50 methods, declared across 2 files: Sources/Where.swift (46), Sources/Where.Expression.swift (4). The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Where.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ef94f259917aa852c7a9af543e923027b173a22b35f8b1d5dfcb5a341b89c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sources/ListMonitor.swift: FileTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: ListMonitor (69-1401). The bar is 500 significant lines; this is 295 over it, 1.59\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ListMonitor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"240132712fef6c7503ee4d49be7a6f3f8f6837d7b1f03bd2191338af41b5cff4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NSManagedObjectContext: TooManyMethods \u2014 47 methods, declared across 5 files: Sources/NSManagedObjectContext\u002BQuerying.swift (34), Sources/NSManagedObjectContext\u002BCoreStore.swift (5), Sources/NSManagedObjectContext\u002BTransaction.swift (4), Sources/NSManagedObjectContext\u002BLogging.swift (2), \u002B1 more file(s). The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NSManagedObjectContext\u002BCoreStore.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0b7f5a98067bdb48872ac58091042c39f8b03b8f4cc62d218a7d58ab57041c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ListMonitor: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 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/ListMonitor.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c72d3e1050206323f9ce776b1311154037550fe197b341076dabdee459037af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sources/Field.Coded.swift: FileTooLong \u2014 657 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 157 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Field.Coded.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"521a49d5098084578d81bee89f0218e2827b2f6cfe4dfa26428a26ee7aa26c3d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomSchemaMappingProvider.cs_createMappingModel: MethodTooLong \u2014 cs_createMappingModel runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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/CustomSchemaMappingProvider.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9fa7e20d0aac6873ecd6623b9f0097ea1e96859a1a28d0371d278710b8683a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomSchemaMappingProvider.resolveEntityMappings: MethodTooLong \u2014 resolveEntityMappings runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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/CustomSchemaMappingProvider.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"70eedc66e00c7f356dc71a4e55a0118d3dc13cb8a9752eb014f3ef351e6f1693"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sources/CoreStore\u002BCustomDebugStringConvertible.swift: FileTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 113 over it, 1.23\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/CoreStore\u002BCustomDebugStringConvertible.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46929f6ebdf4fa36459af35765e0052a87dbcb6f922ab4b0ef8f2796164d285a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreStoreSchema: ClassTooLong \u2014 422 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 22 over it, 1.06\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/CoreStoreSchema.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a121eef1be654af3226b50aab58bbc942988ca348aa54515343b4becfc71815e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DataStack.startMigrationForStorage: MethodTooLong \u2014 startMigrationForStorage runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BMigration.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48b375befb4385205e8b5644c7c5cb82a222d5d012063a580e33eff468f43fa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CustomSchemaMappingProvider: ClassTooLong \u2014 410 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 10 over it, 1.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/CustomSchemaMappingProvider.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85dabcdf6f7d64f072a28637d175027fab5bcf2d4e4d6ed12c3911490efeba4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreStoreSchema.firstPassCreateEntityDescription: MethodTooLong \u2014 firstPassCreateEntityDescription runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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/CoreStoreSchema.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1674643134209a487bc2d8db008a0a583be40fb44716ae465c732050868d946"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Field.Coded.swift:1149-1182 | Sources/Field.Stored.swift:560-581 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Field.Coded.swift"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb5e3eea72dbc94abba8205fecd14777e2415f1bd0562d6abb6b20af0af963e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): Sources/BaseDataTransaction.swift:263-276 | Sources/BaseDataTransaction.swift:283-294 | Sources/BaseDataTransaction.swift:302-315 | Sources/BaseDataTransaction.swift:323-336 | Sources/BaseDataTransaction.swift:343-354 | Sources/BaseDataTransaction.swift:362-375 | Sources/BaseDataTransaction.swift:383-396 | Sources/BaseDataTransaction.swift:404-415 | Sources/BaseDataTransaction.swift:423-436 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BaseDataTransaction.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f262c81eddc07e1e2fd5de186d0264d2b032aee2b2db0c3918eba3685beaa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Field.Coded.swift:702-725 | Sources/Field.Coded.swift:869-892 | Sources/Field.Coded.swift:1052-1074 | Sources/Field.Stored.swift:476-497 | Sources/Field.Virtual.swift:379-402 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Field.Coded.swift"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce3c52af7c53f2c155b483346a4b0d80c9d0177ef6e6fbe759998574ceede93"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/CoreStoreObject\u002BQuerying.swift:215-225 | Sources/CoreStoreObject\u002BQuerying.swift:227-237 | Sources/CoreStoreObject\u002BQuerying.swift:239-249 | Sources/CoreStoreObject\u002BQuerying.swift:251-261 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CoreStoreObject\u002BQuerying.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b602e5100a3d0792076d008d770a44637f8b143c050578ff7dde57f406f06f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/DataStack\u002BObserving.swift:73-96 | Sources/DataStack\u002BObserving.swift:147-172 | Sources/DataStack\u002BObserving.swift:231-256 | Sources/DataStack\u002BObserving.swift:313-340 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BObserving.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"031f1562f14d43c6fa0170d382f253cb071c65be3fe202a71b2962c8ce81e712"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/KeyPath\u002BQuerying.swift:221-241 | Sources/KeyPath\u002BQuerying.swift:249-269 | Sources/KeyPath\u002BQuerying.swift:277-297 | Sources/KeyPath\u002BQuerying.swift:305-325 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KeyPath\u002BQuerying.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d64c995ade25f51ad315e07d02f79e5c71d6d88ccefdc31b30c6d5cda192e4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/KeyPath\u002BQuerying.swift:668-678 | Sources/KeyPath\u002BQuerying.swift:704-714 | Sources/KeyPath\u002BQuerying.swift:740-750 | Sources/KeyPath\u002BQuerying.swift:776-786 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KeyPath\u002BQuerying.swift"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5b80edddd96d3c2f523bfd69eedafe31af09ffb15cb070913d9eb9cc7e3041"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/KeyPath\u002BQuerying.swift:977-990 | Sources/KeyPath\u002BQuerying.swift:992-1005 | Sources/KeyPath\u002BQuerying.swift:1007-1020 | Sources/KeyPath\u002BQuerying.swift:1022-1035 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KeyPath\u002BQuerying.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7476e56b0af101b514ab402f072281787623c3649a7e36c121df75ccb706f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/NSManagedObjectContext\u002BQuerying.swift:447-469 | Sources/NSManagedObjectContext\u002BQuerying.swift:537-559 \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/NSManagedObjectContext\u002BQuerying.swift:447\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NSManagedObjectContext\u002BQuerying.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9ef0843bf53e24b332b034f083e62000d07a39ebcccec0a2f35a4358dcca1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): Sources/KeyPath\u002BQuerying.swift:222-241 | Sources/KeyPath\u002BQuerying.swift:250-269 | Sources/KeyPath\u002BQuerying.swift:278-297 | Sources/KeyPath\u002BQuerying.swift:306-325 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/KeyPath\u002BQuerying.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KeyPath\u002BQuerying.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf97886af6fb592722309e6646cac245f9af3a946ee1d33da7a7dc39cb8edc38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/CoreStoreSchema.swift:502-519 | Sources/CoreStoreSchema.swift:522-539 \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/CoreStoreSchema.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a1651c8c1c13a257c9971076b03877f26336073ad6ce9fb3a629525f676639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Entity.swift:136-151 | Sources/Entity.swift:174-189 \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/Entity.swift:136\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/Entity.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"115283971342cd54c58939ac7576be21d225a4672aceb1feb23b8e35cf1e2f60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Sources/OrderBy.swift:112-123 | Sources/Where.swift:450-463 \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/OrderBy.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9758e6d6841394aa6c59f972015ee33cc62fce30f060bd10b4f118b2a9b1cb9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/BaseDataTransaction.swift:70-82 | Sources/BaseDataTransaction.swift:93-105 \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/BaseDataTransaction.swift:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BaseDataTransaction.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bde33f0a46cf174ce3fbff236e02c476c25e40438bda607968e53e3c94cfdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/ObjectProxy.swift:147-158 | Sources/ObjectProxy.swift:181-192 | Sources/ObjectProxy.swift:217-228 \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/ObjectProxy.swift:147\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/ObjectProxy.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"5315cfe689d463b57f52b6b925b4729d16f2cb51255ac1eec4bbccd9ec5cab02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/AsynchronousDataTransaction.swift:106-117 | Sources/SynchronousDataTransaction.swift:95-106 \u2014 before extracting anything, compare \u0060Sources/AsynchronousDataTransaction.swift\u0060 and \u0060Sources/SynchronousDataTransaction.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsynchronousDataTransaction.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a67740ee518f0504367f92e0b9959479245e7a31b9b57b3da87526bc780496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/AsynchronousDataTransaction.swift:142-153 | Sources/SynchronousDataTransaction.swift:131-142 \u2014 before extracting anything, compare \u0060Sources/AsynchronousDataTransaction.swift\u0060 and \u0060Sources/SynchronousDataTransaction.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsynchronousDataTransaction.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc2740690c09171c0023afcb9b8b4c1e5dc9b6a7cc1572814c02081de122cda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/BaseDataTransaction\u002BImporting.swift:43-54 | Sources/BaseDataTransaction\u002BImporting.swift:140-151 \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/BaseDataTransaction\u002BImporting.swift:43\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/BaseDataTransaction\u002BImporting.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"9550ea82bad0f9cc269b66f51e7b41fb0c28d487bcb853f9233835e7ae66e612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/CoreStoreSchema.swift:377-388 | Sources/CoreStoreSchema.swift:413-424 \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/CoreStoreSchema.swift:377\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/CoreStoreSchema.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb7831721f53de7636de0752a490d348e1b0b432d6eb21048020e17d23259c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/CustomSchemaMappingProvider.swift:678-689 | Sources/CustomSchemaMappingProvider.swift:703-714 \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/CustomSchemaMappingProvider.swift:678\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/CustomSchemaMappingProvider.swift"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa37687e3b8c128c08833773914cd4e0875b09013062286abfc10c6b26806bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/XcodeDataModelSchema.swift:56-67 | Sources/XcodeDataModelSchema.swift:129-140 \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/XcodeDataModelSchema.swift:56\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/XcodeDataModelSchema.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e5a51c1451a729ad13b46f55f9049f0d324032b40693846ffb3aa6bbcb16b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/BaseDataTransaction.swift:264-274 | Sources/BaseDataTransaction.swift:324-334 | Sources/BaseDataTransaction.swift:384-394 \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/BaseDataTransaction.swift:264\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/BaseDataTransaction.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bb1418fa2d13bb128f814b4845d7796f90d0202dd013eb6c509d104cdcd74e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/BaseDataTransaction.swift:303-313 | Sources/BaseDataTransaction.swift:363-373 | Sources/BaseDataTransaction.swift:424-434 \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/BaseDataTransaction.swift:303\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/BaseDataTransaction.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"211873f0c95f4bd306b7c70b1d507c7f2fda6683b798dc17bfc21513b9ff4384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/AsynchronousDataTransaction.swift:69-79 | Sources/SynchronousDataTransaction.swift:58-68 \u2014 before extracting anything, compare \u0060Sources/AsynchronousDataTransaction.swift\u0060 and \u0060Sources/SynchronousDataTransaction.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsynchronousDataTransaction.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4819215f14de9ea6b131f53f6ee6e59b9681207e6468710e411a1821c9ce5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/AsynchronousDataTransaction.swift:87-97 | Sources/SynchronousDataTransaction.swift:76-86 \u2014 before extracting anything, compare \u0060Sources/AsynchronousDataTransaction.swift\u0060 and \u0060Sources/SynchronousDataTransaction.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsynchronousDataTransaction.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d55053930fb0e82b3e4f45c88e7b250e87ef50d9625c5f2fce59afedccc47c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/CoreStore\u002BCustomDebugStringConvertible.swift:1190-1200 | Sources/CoreStore\u002BCustomDebugStringConvertible.swift:1361-1371 \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/CoreStore\u002BCustomDebugStringConvertible.swift:1190\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CoreStore\u002BCustomDebugStringConvertible.swift"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"1703d36a83ef1f2189d94b494d6b23d05ee1e0fcd9e10070d458ce04f63fc61d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/CoreStoreSchema.swift:351-361 | Sources/CoreStoreSchema.swift:394-404 \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/CoreStoreSchema.swift:351\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/CoreStoreSchema.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fb769d666191ea2455a0d7904d0bf056d47ee8e9cd3af4037bab4fcbea82d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/DataStack\u002BDataSources.swift:152-162 | Sources/DataStack\u002BDataSources.swift:203-213 \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/DataStack\u002BDataSources.swift:152\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BDataSources.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ac16dfc0a62863b488dd3b490b858781e69e5efd5ad465454575c674c46e2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/DynamicObject.swift:220-230 | Sources/DynamicObject.swift:275-285 \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/DynamicObject.swift:220\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/DynamicObject.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a436d5269e32e1bcf2532f913f24d0102e27789f38182f9145df6eac6b7e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Field.Coded.swift:1005-1015 | Sources/Field.Coded.swift:1162-1172 \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/Field.Coded.swift:1005\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/Field.Coded.swift"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf64c52ddb5e646ae0f7e5baa98b1f98fb4833acc72ee6cf12f38f1357a0e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sources/KeyPath\u002BQuerying.swift:669-678 | Sources/KeyPath\u002BQuerying.swift:705-714 | Sources/KeyPath\u002BQuerying.swift:741-750 | Sources/KeyPath\u002BQuerying.swift:777-786 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/KeyPath\u002BQuerying.swift:669\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/KeyPath\u002BQuerying.swift"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"823575c2196a25ffaa7c2291be4e340df41ab02ea0bb05a3c299f8344bfae560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/CoreStoreObject\u002BQuerying.swift:217-225 | Sources/CoreStoreObject\u002BQuerying.swift:229-237 | Sources/CoreStoreObject\u002BQuerying.swift:241-249 | Sources/CoreStoreObject\u002BQuerying.swift:253-261 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"Sources/CoreStoreObject\u002BQuerying.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"e455a9c940568246e4d1719c889516b491e2064d926df3b1ec4d1e1089189658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/KeyPath\u002BQuerying.swift:982-990 | Sources/KeyPath\u002BQuerying.swift:997-1005 | Sources/KeyPath\u002BQuerying.swift:1012-1020 | Sources/KeyPath\u002BQuerying.swift:1027-1035 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"Sources/KeyPath\u002BQuerying.swift"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1a2d24fc82d60bb334a1738ce2cf1973e2d00b3cb514d695746df120362852"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/DataStack\u002BObserving.swift:83-91 | Sources/DataStack\u002BObserving.swift:158-166 \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/DataStack\u002BObserving.swift:83\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/DataStack\u002BObserving.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"61103f7ebae5c1f610d7a9586bb751b26d05432da178afb4b59411c31fb0ea3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/DataStack\u002BObserving.swift:243-251 | Sources/DataStack\u002BObserving.swift:326-334 \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/DataStack\u002BObserving.swift:243\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BObserving.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f81a6930e6b26e5063428a82859eb165222da29a18ecfa3f6878a465ac162dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Where.Expression.swift:718-726 | Sources/Where.Expression.swift:730-738 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Where.Expression.swift"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc19809f93315c87c7bc4a7c82f30efdd6c2abe47b46747ade4c8284f50c040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): Sources/BaseDataTransaction.swift:285-292 | Sources/BaseDataTransaction.swift:304-313 | Sources/BaseDataTransaction.swift:345-352 | Sources/BaseDataTransaction.swift:364-373 | Sources/BaseDataTransaction.swift:406-413 | Sources/BaseDataTransaction.swift:425-434 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/BaseDataTransaction.swift:304\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/BaseDataTransaction.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"c302822655eefe45bde610febdec4767bbc2ea5ff45dac57310176e31bd0a67e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/BaseDataTransaction.swift:267-274 | Sources/BaseDataTransaction.swift:306-313 \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/BaseDataTransaction.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"390db34de0ab6e85b9f985794a8d97121d57a7a99c695f34731bf125fecc83a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/BaseDataTransaction.swift:327-334 | Sources/BaseDataTransaction.swift:366-373 \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/BaseDataTransaction.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b88334020d233a91d5e38008d68c97330fd6dc1c1c5398ffae68805d7d59fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/BaseDataTransaction.swift:387-394 | Sources/BaseDataTransaction.swift:427-434 \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/BaseDataTransaction.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8a95e8dc42f7822401d1f931fae92ff7818403214a179d85b09d8630f52514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/CustomSchemaMappingProvider.swift:429-436 | Sources/CustomSchemaMappingProvider.swift:478-485 \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/CustomSchemaMappingProvider.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"65bf5645f443a5aa814072a0420825265fcee637598a80fbd7c824a3d45c5941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/DynamicObject.swift:212-218 | Sources/DynamicObject.swift:267-274 \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/DynamicObject.swift:212\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/DynamicObject.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a64f9ffa78378f4b0ce513fe4757092f612fc3eb87e3c49a4ae83727dfc737"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Field.Relationship.swift:322-329 | Sources/Field.Relationship.swift:425-432 \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/Field.Relationship.swift:322\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/Field.Relationship.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"839a6642e643f45251a9686985cdc1d272bb781b49804f8d9ad16d699e9c5602"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Field.Relationship.swift:367-374 | Sources/Field.Relationship.swift:474-481 \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/Field.Relationship.swift:367\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/Field.Relationship.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"09724439e2c8f668eec08301dbe9b47b0e9158a08ce2da0ca167136dc636c34c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CustomSchemaMappingProvider.swift:650-656 | Sources/CustomSchemaMappingProvider.swift:662-668 \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/CustomSchemaMappingProvider.swift:650\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/CustomSchemaMappingProvider.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6eea6e4a76b81bd28cb86616ca6534717534e1e161a45d64eba8031dff102a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/DataStack\u002BObserving.swift:166-172 | Sources/DataStack\u002BObserving.swift:334-340 \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/DataStack\u002BObserving.swift:166\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BObserving.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8cd594469d2a3e37fc0dce4827759e514c5fcdcd0b2d3f5d2dc5b05f10c6b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/CustomSchemaMappingProvider.swift:650-655 | Sources/CustomSchemaMappingProvider.swift:662-667 | Sources/CustomSchemaMappingProvider.swift:682-687 | Sources/CustomSchemaMappingProvider.swift:707-712 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CustomSchemaMappingProvider.swift:650\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/CustomSchemaMappingProvider.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb8d1b9c068be8c065ca36c7742d938e2c4f82c5652e1f5b2e92424c5ed8dc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/DataStack\u002BObserving.swift:86-91 | Sources/DataStack\u002BObserving.swift:161-166 | Sources/DataStack\u002BObserving.swift:246-251 | Sources/DataStack\u002BObserving.swift:329-334 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/DataStack\u002BObserving.swift:86\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/DataStack\u002BObserving.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"2335b3f4e9296f0be5fbe05079da70fe2668e26bb4df8d9ca6b1c14268a6a85b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 5): Sources/Field.Coded.swift:709-710 | Sources/Field.Coded.swift:876-880 | Sources/Field.Coded.swift:1058-1062 | Sources/Field.Stored.swift:482-486 | Sources/Field.Virtual.swift:387-396 \u2014 before extracting anything, compare \u0060Sources/Field.Coded.swift\u0060 and \u0060Sources/Field.Stored.swift\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Field.Coded.swift:876\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Field.Coded.swift:710\u0060 calls \u0060escaping\u0060 and \u0060Sources/Field.Coded.swift:880\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/Field.Coded.swift"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f59a9870eda2df4bc4ea5c1957ac3369fbf626c63263bf017619d8c81427da4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Field.Coded.swift:1005-1013 | Sources/Field.Coded.swift:1162-1170 | Sources/Field.Stored.swift:566-570 \u2014 before extracting anything, compare \u0060Sources/Field.Coded.swift\u0060 and \u0060Sources/Field.Stored.swift\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Field.Coded.swift:1005\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/Field.Coded.swift"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab186707425773f9676c588a3942bd97195d5d47530bd245b2e483edf597add0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/AsynchronousDataTransaction.swift:124-134 | Sources/SynchronousDataTransaction.swift:113-123 \u2014 before extracting anything, compare \u0060Sources/AsynchronousDataTransaction.swift\u0060 and \u0060Sources/SynchronousDataTransaction.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsynchronousDataTransaction.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e04a345af0fdcc8d3fc25a47356640f1064335397a5a69491fdcd0ab0996747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/AsynchronousDataTransaction.swift:160-170 | Sources/SynchronousDataTransaction.swift:149-159 \u2014 before extracting anything, compare \u0060Sources/AsynchronousDataTransaction.swift\u0060 and \u0060Sources/SynchronousDataTransaction.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsynchronousDataTransaction.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df394bcfd5b8b76e58763ff05e417974a23fb5130abf44530ea15adf5be9b06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/AsynchronousDataTransaction.swift:175-188 | Sources/SynchronousDataTransaction.swift:164-177 \u2014 before extracting anything, compare \u0060Sources/AsynchronousDataTransaction.swift\u0060 and \u0060Sources/SynchronousDataTransaction.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsynchronousDataTransaction.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"60db8ae57cee5fdfeca8905c0e04125d0d77ac7ddd81fb95758fa99a0133d07f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/DataStack\u002BObserving.swift:58-64 | Sources/UnsafeDataTransaction\u002BObserving.swift:54-60 \u2014 before extracting anything, compare \u0060Sources/DataStack\u002BObserving.swift\u0060 and \u0060Sources/UnsafeDataTransaction\u002BObserving.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BObserving.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff52d6960e4332ce95b81f267972e5457269a2341f1fa2c99594ae5d80f9bdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/DataStack\u002BObserving.swift:110-118 | Sources/UnsafeDataTransaction\u002BObserving.swift:107-112 \u2014 before extracting anything, compare \u0060Sources/DataStack\u002BObserving.swift\u0060 and \u0060Sources/UnsafeDataTransaction\u002BObserving.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BObserving.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8a0f0a65d49e8036547e20c993c49a9bf8a59b6596bb4835c03fe6aac380d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/DataStack\u002BObserving.swift:127-138 | Sources/UnsafeDataTransaction\u002BObserving.swift:121-128 \u2014 before extracting anything, compare \u0060Sources/DataStack\u002BObserving.swift\u0060 and \u0060Sources/UnsafeDataTransaction\u002BObserving.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BObserving.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b46ec02f048fee567268567fe67df459f4fc055e53a6360788447fdc0e90ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/DataStack\u002BObserving.swift:190-200 | Sources/UnsafeDataTransaction\u002BObserving.swift:176-186 \u2014 before extracting anything, compare \u0060Sources/DataStack\u002BObserving.swift\u0060 and \u0060Sources/UnsafeDataTransaction\u002BObserving.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BObserving.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a8a9afa7c701de9e910679331f2f6c86924f2ee4a4b31cb843253dfc967d81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/DataStack\u002BObserving.swift:210-221 | Sources/UnsafeDataTransaction\u002BObserving.swift:196-203 \u2014 before extracting anything, compare \u0060Sources/DataStack\u002BObserving.swift\u0060 and \u0060Sources/UnsafeDataTransaction\u002BObserving.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BObserving.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb246c77823f7d3c08d9fb0f86fc96711373149db4b5c179fb40a48db49410e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/DataStack\u002BObserving.swift:271-280 | Sources/UnsafeDataTransaction\u002BObserving.swift:248-257 \u2014 before extracting anything, compare \u0060Sources/DataStack\u002BObserving.swift\u0060 and \u0060Sources/UnsafeDataTransaction\u002BObserving.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BObserving.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6f8f02ab3224911c2c050e293329270673e2c671e8e7e953aee7cdf663e62c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/DataStack\u002BObserving.swift:290-303 | Sources/UnsafeDataTransaction\u002BObserving.swift:267-275 \u2014 before extracting anything, compare \u0060Sources/DataStack\u002BObserving.swift\u0060 and \u0060Sources/UnsafeDataTransaction\u002BObserving.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BObserving.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8719bfa61661d49b9d8290c3046fc75f2e82cce64d854fbd9bf8e19382b1ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/DataStack\u002BObserving.swift:358-369 | Sources/UnsafeDataTransaction\u002BObserving.swift:325-336 \u2014 before extracting anything, compare \u0060Sources/DataStack\u002BObserving.swift\u0060 and \u0060Sources/UnsafeDataTransaction\u002BObserving.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BObserving.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edfc6b0d09cb99c538bfd08aba5825a7f38a813ace96f23d541471b565bb7c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/ListPublisher.swift:162-169 | Sources/ObjectPublisher.swift:148-155 \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/ListPublisher.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fae975278799cc98176847fe2a7d254fb81135e69f8182ce2320d80649300b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/ObjectMonitor.swift:198-202 | Sources/ObjectSnapshot.swift:86-90 \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/ObjectMonitor.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef56b958aef519314a19aaf2af2e185a64e879722811026a0ffbfdf1c9625628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/ObjectMonitor.swift:204-208 | Sources/ObjectSnapshot.swift:92-96 \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/ObjectMonitor.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f929aba027d9407ff14b2c078f4b1e6de56bd6a24c46e12ca18dac4058886a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Relationship.ToManyOrdered.swift:230-234 | Sources/Relationship.ToManyUnordered.swift:240-244 \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/Relationship.ToManyOrdered.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f37968eea645ab872a5869c7669da72064eefce83294ca5658fd04e1130333"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/BaseDataTransaction\u002BQuerying.swift:132-137 | Sources/DataStack\u002BQuerying.swift:68-73 \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/BaseDataTransaction\u002BQuerying.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f338ebbc4ddff1c49895e3406b86ec386a55dcec448e2d6cd95c057c18241a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Field.Coded.swift:869-873 | Sources/Field.Stored.swift:476-480 \u2014 before extracting anything, compare \u0060Sources/Field.Coded.swift\u0060 and \u0060Sources/Field.Stored.swift\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Field.Coded.swift:869\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Field.Coded.swift:874\u0060 calls \u0060fatalError\u0060 and \u0060Sources/Field.Stored.swift:481\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/Field.Coded.swift"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a06432b7894430b065ac3ba15a62d6fc6bc561d11961be250d90773357ec6e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Demo/Sources/Demos/Classic/ColorsDemo/Classic.ColorsDemo.DetailView.swift:58-76 | Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.SwiftUI.DetailView.swift:141-157 | Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.SwiftUI.ItemView.swift:55-71 | Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.UIKit.DetailView.swift:55-71 \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":"Demo/Sources/Demos/Classic/ColorsDemo/Classic.ColorsDemo.DetailView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"026fef33df0013cc0c1c46a3d276a3472ed3b4de132ad980d9ebe76b04f0921f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.MainView.swift:145-162 | Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.SwiftUI.ListView.swift:99-116 | Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.UIKit.ListView.swift:64-81 \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 \u0060Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.MainView.swift:145\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":"Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.MainView.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83abd2b16dca28c9f32168f965600a014192230364e2901a5baaae5d7ab7461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Demo/Sources/Demos/Classic/ColorsDemo/Classic.ColorsDemo.LIstView.swift:64-81 | Demo/Sources/Demos/Classic/ColorsDemo/Classic.ColorsDemo.MainView.swift:225-242 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Demo/Sources/Demos/Classic/ColorsDemo/Classic.ColorsDemo.LIstView.swift:64\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":"Demo/Sources/Demos/Classic/ColorsDemo/Classic.ColorsDemo.LIstView.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"86def97cd52e13d09a0c4836c3df62b4daa8f719b515224a23e3c8443a9c5e7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.SwiftUI.DetailView.swift:141-152 | Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.SwiftUI.ItemView.swift:55-66 | Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.UIKit.DetailView.swift:55-66 \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 \u0060Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.SwiftUI.DetailView.swift:141\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":"Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.SwiftUI.DetailView.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8367d3f453234eb020a1a1de9822d114eaa43c4a99c228c5172b6f88310889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Demo/Sources/Demos/Classic/ColorsDemo/Classic.ColorsDemo.DetailView.swift:61-69 | Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.SwiftUI.DetailView.swift:144-152 | Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.SwiftUI.ItemView.swift:58-66 | Demo/Sources/Demos/Modern/ColorsDemo/Modern.ColorsDemo.UIKit.DetailView.swift:58-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Demo/Sources/Demos/Classic/ColorsDemo/Classic.ColorsDemo.DetailView.swift:61\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/Sources/Demos/Classic/ColorsDemo/Classic.ColorsDemo.DetailView.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"134fd8883e6bb3b64deda5911965c8191871c0c191db551811688bc2f33d099f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NSManagedObjectContext (LCOM4 16): NSManagedObjectContext\u0027s methods fall into 16 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 16 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NSManagedObjectContext\u002BCoreStore.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"19595081284581f87d2784686a89aa42eee934a679a273cf4e76b3c641294da5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UnsafeDataTransaction (LCOM4 15): UnsafeDataTransaction\u0027s methods fall into 15 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 15 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/UnsafeDataTransaction.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f79d1e2f30af38bd711809f20a97c81eacddf1991ee4d3271a48b0c8665474"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NSManagedObject (LCOM4 14): NSManagedObject\u0027s methods fall into 14 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 14 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CoreDataNativeType.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"105af0a39b58fc57ec98fb3378a2ed7a1bc887e932b51d0557d60002541bd064"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AsynchronousDataTransaction (LCOM4 8): AsynchronousDataTransaction\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsynchronousDataTransaction.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30f89ab8564f7150a1cba1379376ac77d9b7cdca366a2ca21892e0fa0eb4af9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ObjectMonitor (LCOM4 8): ObjectMonitor\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ObjectMonitor.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf85590e19c3daf526029c9355909da2d48d9f24212200b3710b638ac35c4e7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SynchronousDataTransaction (LCOM4 8): SynchronousDataTransaction\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SynchronousDataTransaction.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c740a42fc71d9e331a4636206d61495b15eedfa3bdebdbfae489ff5cbe4adea4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DataStack (LCOM4 6): DataStack\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd5d65eb7f62b654a2d46380fa8ce174f9dce24c430dfbb1800b9d6fe534aaa"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ListMonitor (LCOM4 5): ListMonitor\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ListMonitor.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1c2ee9a24a0bc81e7e987be5f910d750f9cdc18602133b67af39070c0f8b76"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NSEntityDescription (LCOM4 5): NSEntityDescription\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CoreStore\u002BCustomDebugStringConvertible.swift"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec441ac5d6952722cf1f879a3366dcb9b6a827009233ac6ac8e75ca89c3a3d1a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ListPublisher (LCOM4 4): ListPublisher\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ListPublisher.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1b61121641685fdcf3908da4c51e422b2440319149f5faee88917017a5a35f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: convert fetch methods to throwing methods \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":"CoreStoreTests/TransactionTests.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3171d75c010a6d54a29b0eebe0d4cf41c7ade5018fa02a8dff9bcc5630e967"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (35464 LoC, 216 module-visible types across 3 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1f95f4afafce6ef88a33ef7dd73ee2e13218271f18b092b7302ae5bd58f01744"},"properties":{"commitSha":"5b85b0749e410362f1c951ec2a4809bd30417859"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7da171610e72c98ab77c233fffea93f82fb0ebdda4c5a161588a861da7745e0a"},"properties":{"commitSha":"969f4cefb48c8c6a870f4acc1e924e0b6930f398"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"960324c81b4ae6ac49ded741ec5b9fd3dcfd95ff157d8c386553620ec0dd621b"},"properties":{"commitSha":"603dffffb0d5fc9c0510544910da8888d881ed91"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19a2d6f68c639448bd3db35105d134c054405e47dd62174edf1f0b0f75c8c1e0"},"properties":{"commitSha":"1a56dfd708f469684f2b0dc6ca4873332c8708a0"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f3aa1c009ebe96d365fbf16527bd7e42651129db790d320a9b270673d5f7a09"},"properties":{"commitSha":"921b85d91b375d65827bef1fe81c02f57830d759"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ffd53dc60b3589187a7d6debea56c63d9e0f9fc248c68c877a64096dfe94047e"},"properties":{"commitSha":"3fe9e4ee1d24fdf9e74b95cee3d459858aa9fd89"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"863510747ec0bd1b139097aa5de30677a3d446b80fa90351f9d2c8391731af28"},"properties":{"commitSha":"921b85d91b375d65827bef1fe81c02f57830d759"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bb8d6a6264db0100a26e2b368d690fc72a2b7661238b80c1d452fd81367b2ccf"},"properties":{"commitSha":"921b85d91b375d65827bef1fe81c02f57830d759"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"13a8475640222b326670803271dabed003e84fa5f331d8b083052c460bb21dcb"},"properties":{"commitSha":"3fe9e4ee1d24fdf9e74b95cee3d459858aa9fd89"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"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":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060canImport(Combine) \u0026\u0026 canImport(SwiftUI)\u0060 appears character-identically in 5 files \u2014 Sources/ForEach\u002BSwiftUI.swift, Sources/ListReader.swift, Sources/ListState.swift, Sources/ObjectReader.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ForEach\u002BSwiftUI.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2f0da8282143d28dd98632ed05896845fb4b390353e196ce3946820573d2f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060canImport(UIKit) \u0026\u0026 (os(iOS) || os(tvOS))\u0060 appears character-identically in 2 files \u2014 Sources/DiffableDataSource.CollectionViewAdapter-UIKit.swift, Sources/DiffableDataSource.TableViewAdapter-UIKit.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiffableDataSource.CollectionViewAdapter-UIKit.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13359b90f3ab6ab9920850419055662b49f2cb61e1f348c5c2c551b00a82269"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DataStack\u002BMigration.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7c24241963ca8b7cf7dac4514d8a16a5e6b8ccd7d414d165cdc9cc5f8b8bff"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NSManagedObjectContext\u002BQuerying.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6ee302c60d644a6b6be0f523e6ba4d94db6ef38e8aa5acdc413cd42d8467c3"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":10,"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."]}]}