{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"AccessibilityElement.accessibilityDescription (cyclomatic 76): AccessibilityElement.accessibilityDescription has cyclomatic complexity 76 (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":"AccessibilitySnapshotModel/Sources/AccessibilitySnapshotModel/AccessibilityElement\u002BDescription.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"3095da168efaabe3b1af789cff405323689798918b761a152d6540f741fd0e93"}},{"ruleId":"D1","level":"warning","message":{"text":"NSObject.recursiveAccessibilityHierarchy (cyclomatic 49): NSObject.recursiveAccessibilityHierarchy has cyclomatic complexity 49 (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/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fbfcbc7b496baa1f9d978f4cbd6d18a22e554c1a31d84b7753e34f7a6b11e20"}},{"ruleId":"D1","level":"warning","message":{"text":"NSObject.captureContainerInfo (cyclomatic 38): NSObject.captureContainerInfo has cyclomatic complexity 38 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"74961bb4e5c355e5ecda1cc7c7c19a042d1ceec7984941f0e5c7bfbf5fbb857b"}},{"ruleId":"D1","level":"warning","message":{"text":"HitTargetSnapshotUtility.generateSnapshotImage (cyclomatic 24): HitTargetSnapshotUtility.generateSnapshotImage has cyclomatic complexity 24 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 12 belong to 5 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Core/HitTargetSnapshotUtility.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f07dd00dd8b9cc6007251510e7b8e4dd42818c679b5962fa8103836feaad58"}},{"ruleId":"D1","level":"warning","message":{"text":"AccessibilityHierarchyParser.prepareNodes (cyclomatic 21): AccessibilityHierarchyParser.prepareNodes has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f767370f1acdc438acd0a3c0b8be8e80886cfb2a61c3bc39ab39238e8307041"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessibilityElement.accessibilityDescription (cognitive 115): AccessibilityElement.accessibilityDescription has cognitive complexity 115 (threshold 15). Drivers by points: if/else 44 (59 pts), ternaries 11 (31 pts), boolean chains 16, match/switch 4 (9 pts) (nesting depth added 40). 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":"AccessibilitySnapshotModel/Sources/AccessibilitySnapshotModel/AccessibilityElement\u002BDescription.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf03cdb3b27a82a5c3a970bef355bdf2e9ac086cf8e1e6d4987120d5f8b45d0"}},{"ruleId":"D2","level":"warning","message":{"text":"NSObject.recursiveAccessibilityHierarchy (cognitive 74): NSObject.recursiveAccessibilityHierarchy has cognitive complexity 74 (threshold 15). Drivers by points: if/else 22 (39 pts), boolean chains 21, ternaries 6 (10 pts), loops 2 (4 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"03970317ec338f5758b5ed1fe4c6333ddc05ef0ec9a5c1e5e521ea20441d8400"}},{"ruleId":"D2","level":"warning","message":{"text":"NSObject.captureContainerInfo (cognitive 36): NSObject.captureContainerInfo has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 27, if/else 4, ternaries 3, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab72eaaa3a82394d0da0d11f3a7be34a024693423d9c4942f3211f2313d8e986"}},{"ruleId":"D2","level":"warning","message":{"text":"HitTargetSnapshotUtility.generateSnapshotImage (cognitive 34): HitTargetSnapshotUtility.generateSnapshotImage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (16 pts), loops 6 (11 pts), boolean chains 5, ternaries 2 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 18 belong to 5 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Core/HitTargetSnapshotUtility.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"7629a188040026a0066b8e77614eacada29543ea0d89ac587970d7c496fcde3c"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessibilityHierarchyParser.prepareNodes (cognitive 33): AccessibilityHierarchyParser.prepareNodes has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 7, loops 2 (6 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d485a3b10ec91c1256e61eb1d6a9420567144e8cf6121ddd6c54e73b5388206"}},{"ruleId":"D2","level":"warning","message":{"text":"NSObject.customContent (cognitive 21): NSObject.customContent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ae3e794de9b320b1c101e375df313272f8ef2f604ae3262558f21164fe8c33"}},{"ruleId":"D2","level":"warning","message":{"text":"UIAccessibilityCustomRotor.iterateResults (cognitive 18): UIAccessibilityCustomRotor.iterateResults has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Parser/Swift/Classes/UIAccessibility\u002BSnapshotAdditions.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7dcafdc638a16c63c28457fbfe816646a7c42662dff30c80fe75cdd18ab5da3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AccessibilityElement.accessibilityDescription: MethodTooLong \u2014 accessibilityDescription runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\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":"AccessibilitySnapshotModel/Sources/AccessibilitySnapshotModel/AccessibilityElement\u002BDescription.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa358cb14cf450ade53fa1370ea4c66f6c5770db5f833b625082784ff197755"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Classes/AccessibilityHierarchyParser.swift: FileTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 328 over it, 1.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f6256d95f4e1b4db092efb7ef02e3c1db72d72304c37a62f9e8672c34cb31a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HitTargetSnapshotUtility.generateSnapshotImage: MethodTooLong \u2014 generateSnapshotImage runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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/AccessibilitySnapshot/Core/HitTargetSnapshotUtility.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab4cf6063d811d07b1f0f2391fa8e14d36e822c7cb21d4718b4e6418ffefec3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UIAccessibilityCustomRotor.displayName: MethodTooLong \u2014 displayName runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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/AccessibilitySnapshot/Parser/Swift/Classes/UIAccessibility\u002BSnapshotAdditions.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d518eac3f873b1c549d52d16e676ada11cfad9858d2d9b08295beb212fd3ba50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUICustomActionsView.swift:13-28 | Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUICustomContentView.swift:13-31 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUICustomActionsView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"33bc43e8ce4bcf410847becc7fcf5c166cbfbb0aff3f76467f67d08d592eb12c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUIAccessibilitySnapshotView.swift:66-83 | Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUIAccessibilitySnapshotView.swift:262-279 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUIAccessibilitySnapshotView.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"28007c655409d315661f1774e61173f9c5babf530b1f33756d8cb24c64e57bf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BKeyboard.swift:20-38 | Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BKeyboard.swift:54-73 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BKeyboard.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"74703dfbb252ef79a75dc77e49ec49a0e4763d263ec8cd76b605582e0ceef11e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BKeyboard.swift:147-155 | Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BKeyboard.swift:169-178 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BKeyboard.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa3dc512537b604aeaaa6156c769b70c0288fc0ab94bfe8494b1bba822e0ce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/ElementView.swift:86-96 | Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/ElementView.swift:98-109 \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/AccessibilitySnapshot/AccessibilitySnapshotPreviews/ElementView.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fad49dedd8fae9c8acf1f1746067add0bc525c41dc08b292dbb2a53b822af5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUIAccessibilitySnapshotView.swift:19-29 | Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUIAccessibilitySnapshotView.swift:147-157 \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/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUIAccessibilitySnapshotView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e9d5cadf3e5c316c44dae7a0b39adb45a7aa0205f48469660a8897fe6c6510"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift:778-788 | Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift:790-800 \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/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"089a5771b7ef08c9ea3d39a7098d2cc8272208d627b041fa8de94b126d5de0a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): AccessibilitySnapshotModel/Sources/AccessibilitySnapshotModel/String\u002BLocalization.swift:4-6 | Sources/AccessibilitySnapshot/Core/Localizations.swift:77-81 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"AccessibilitySnapshotModel/Sources/AccessibilitySnapshotModel/String\u002BLocalization.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6cdb4fda4698b26f0c7b7ad205986751c105d9ba50776168f5e9a368741327"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BAccessibility.swift:138-154 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift:229-244 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BObjCSupport.swift:107-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BAccessibility.swift:137\u0060 calls \u0060image\u0060 and \u0060Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BObjCSupport.swift:105\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/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BAccessibility.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92c097faf2905c17b49ba8bcfe1ef718ce1236c9b7724810b8e8c663fbeaa94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUIAccessibilitySnapshotView.swift:69-83 | Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUIAccessibilitySnapshotView.swift:265-279 \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/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUIAccessibilitySnapshotView.swift:69\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/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUIAccessibilitySnapshotView.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb6de0a036aad3d10cc5365ecc1dd7f6bd5012e9ad234bb44b5954c82127597"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BKeyboard.swift:21-32 | Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BKeyboard.swift:56-67 \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/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BKeyboard.swift:21\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/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BKeyboard.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ed696e1c93ff81a4cb9ced93d512ff3e48a8744a976eb3cc55f88ef6ccd325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/DescriptionView.swift:8-13 | Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/HintView.swift:8-13 \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/AccessibilitySnapshot/AccessibilitySnapshotPreviews/DescriptionView.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0732323f224e45f9e2eb1c2867a689d0f8d9350349f29e6d4c47a1e8ad6cb18"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 11 shared lines): Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:95-109 | Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:116-130 | Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:137-151 | Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:158-172 \u2014 These 4 members are variants of one another: a block of 11 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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":"Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"28665fc9680cdc6b91ab5bc0dfbc3b908a2453c8a19e110414a24ccd3fd3b912"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift:37-88 | Example/AccessibilitySnapshot/KeyboardShortcutsWithoutCategoriesViewController.swift:44-82 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e925ffb405cb12f8123a8f0281ff9184e2da5837fbb6cfcbddf29a282c1aac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift:212-255 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BObjCSupport.swift:92-143 \u2014 These two members are one piece of code written twice and then edited apart: 44 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/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33f5bf9fdb22d8ce1aed521d8e43a3ff78afd44751cd102a006fcb2fa5560e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:74-88 | Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:259-272 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea10a3cf3110203a09e0aef6f30f0ca3706735ff22bd040edde60846eb7ebbfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift:295-330 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift:332-372 \u2014 These two members are one piece of code written twice and then edited apart: 36 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/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbee163e3d5976857dd77b53964be94c70148870f6a9ebfe48d9fc0b3b188c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift:37-62 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BImpreciseAccessibility.swift:13-45 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BSwiftUI.swift:31-61 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2334af0140e166f84e0cacbde8101b28d34d1bb0c135f8e1883ebf142e24f122"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BSwiftUI.swift:63-89 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BSwiftUI.swift:105-127 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BSwiftUI.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f2bbc32fd4a81ca6ce75a2106b4d434702538398908ba925467b8ad11850ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift:300-338 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BImpreciseAccessibility.swift:78-105 \u2014 These two members are one piece of code written twice and then edited apart: 28 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/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c251728af569a87fbc74fc9c93bf89a62a1cd725844596628be1fdb542b535"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Example/AccessibilitySnapshot/ElementOrderViewController.swift:244-264 | Example/AccessibilitySnapshot/ElementOrderViewController.swift:277-298 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/AccessibilitySnapshot/ElementOrderViewController.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5d497840526ec63134585b4eb45a0fb35584796714955aa7e1c00b76adcb57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 21\u002B corresponding lines): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift:25-46 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift:65-87 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift:107-127 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift:146-168 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift:187-209 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift:229-250 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift:269-291 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6444a48ec43e1bd2108c61c42c314be15dd2f130e6de97611b811e6398e6dd3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:50-56 | Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:62-68 | Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:178-184 | Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:247-253 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac12658c1320f7f43b748e353cdc29ccf696f74160226b912369b4392b27637e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift:221-246 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BObjCSupport.swift:99-124 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3852d9451f36bd3b2dc758cd3a0f7b22d5f08e59a43f1777229bd1e9ac1cf6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift:54-73 | Example/AccessibilitySnapshot/KeyboardShortcutsWithoutCategoriesViewController.swift:54-72 \u2014 before extracting anything, compare \u0060Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift\u0060 and \u0060Example/AccessibilitySnapshot/KeyboardShortcutsWithoutCategoriesViewController.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift:54\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":"Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"441d9e168bd171e1a67f2ccc09a691c16149147770938e4f43cce248bfce17a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BImpreciseAccessibility.swift:17-33 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BSwiftUI.swift:36-50 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BImpreciseAccessibility.swift:17\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BImpreciseAccessibility.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cf92f520458cb464b6325875729733cad9cfaa826d0e07efae5fdd2d1b6e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift:109-125 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift:149-164 \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/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift:109\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a46040c40a50529bad696fa44605e5cbb3d3e283b401d042992a4c500398495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift:37-52 | Example/AccessibilitySnapshot/KeyboardShortcutsWithoutCategoriesViewController.swift:44-59 \u2014 before extracting anything, compare \u0060Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift\u0060 and \u0060Example/AccessibilitySnapshot/KeyboardShortcutsWithoutCategoriesViewController.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift:37\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"31430cf09a4160d8fe5ae5916b5887320b10a792bf48ca69a159bff6f9fd6354"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift:47-60 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BImpreciseAccessibility.swift:25-40 \u2014 before extracting anything, compare \u0060Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift\u0060 and \u0060Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BImpreciseAccessibility.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift:47\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/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8967ddcd0a3be00651e66e380d056392095637d896308a9e398cdc7cc616a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 3): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift:45-57 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BImpreciseAccessibility.swift:23-37 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BSwiftUI.swift:42-52 \u2014 before extracting anything, compare \u0060Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift\u0060 and \u0060Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BImpreciseAccessibility.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift:45\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/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffd0e78e5a1ccb7be3d44354817457dbab5d83d8a6613371386560b91aee290"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Scripts/CompareRenamedSnapshots.swift:30-42 | Scripts/ExtractImagesFromTestResults.swift:24-36 \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":"Scripts/CompareRenamedSnapshots.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fc239e4a4b60369fcc933fed8fcaf46934a2286a7bdc580689fe1cb1a8b7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift:301-312 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BImpreciseAccessibility.swift:80-91 \u2014 before extracting anything, compare \u0060Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift\u0060 and \u0060Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BImpreciseAccessibility.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift:301\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/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a5305dc19ad4b4d6b6db1d2e264e3571efbdde9983ebefd514017d5ab92085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Example/AccessibilitySnapshot/AccessibilityCustomActionsViewController.swift:7-16 | Example/AccessibilitySnapshot/AccessibilityCustomContentViewController.swift:9-18 \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":"Example/AccessibilitySnapshot/AccessibilityCustomActionsViewController.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc1c87d76119f0cbe253fa9fa048e1747fbd10f826dbbfb2f8851b554c3759b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BSwiftUI.swift:69-76 | Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BSwiftUI.swift:109-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BSwiftUI.swift:69\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/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BSwiftUI.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cdbbafe348d85c52c06d2a63bf837810851935f4fe9c83ebf662f557dec9a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Example/AccessibilitySnapshot/DataTableViewController.swift:306-311 | Example/AccessibilitySnapshot/ElementOrderViewController.swift:114-119 | Example/AccessibilitySnapshot/ModalAccessibilityViewController.swift:234-241 \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 \u0060Example/AccessibilitySnapshot/DataTableViewController.swift:306\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":"Example/AccessibilitySnapshot/DataTableViewController.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a031fbcd5e468e3c7084f8f13166bfb55ce54d7f410cba2381832b22408d1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:74-78 | Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:212-216 | Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:259-263 \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 \u0060Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:70\u0060 calls \u0060updateUIView\u0060 and \u0060Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:208\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdd04db1cd19f6bf34031c969e8b7a8aefa1f41cd19537b7c5117dc626a5c4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 5): Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift:74-76 | Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift:78-80 | Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift:84-88 | Example/AccessibilitySnapshot/KeyboardShortcutsWithoutCategoriesViewController.swift:73-75 | Example/AccessibilitySnapshot/KeyboardShortcutsWithoutCategoriesViewController.swift:78-82 \u2014 before extracting anything, compare \u0060Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift\u0060 and \u0060Example/AccessibilitySnapshot/KeyboardShortcutsWithoutCategoriesViewController.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift:84\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/AccessibilitySnapshot/KeyboardShortcutsViewController.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8074526245967b2bd8edcaad99805996f231a04e3802247182e69d07bd027ba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Example/AccessibilitySnapshot/ModalAccessibilityViewController.swift:241-245 | Example/AccessibilitySnapshot/ModalAccessibilityViewController.swift:253-257 \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 \u0060Example/AccessibilitySnapshot/ModalAccessibilityViewController.swift:241\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":"Example/AccessibilitySnapshot/ModalAccessibilityViewController.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"495098a4acd181ec3de096d89f5fa0dc37a35274aa1ad32742958566d692d9d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:95-105 | Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:116-126 | Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:137-147 | Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:158-168 \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 \u0060Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift:95\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/AccessibilitySnapshotPreviewsDemo/PathShapesDemo.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3913bfafa51db8d1c3438c578ffdf93d0e5e062e79aa6654066f5e21234e2d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UIView (LCOM4 6): UIView\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/AccessibilitySnapshot/Core/AccessibilitySnapshotBaseView.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0b2e538e634b7f4983a5625632cdf859a4b9d7df8314861a75aaafff1d1b47"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FBSnapshotTestCase (LCOM4 5): FBSnapshotTestCase\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/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BAccessibility.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"83db29b8774f874e205f977462269ee4c4c261a76028c6f37eab0c1eeda225bf"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Array (LCOM4 5): Array\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":"Example/AccessibilitySnapshot/ElementOrderViewController.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0aaa69a169a033571c4fe73511cd356b096e7cf717b1e572b3446efc86ed39"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimpleSwiftUIConfiguration: No conventional assertion call was detected, and 12 of 12 tests in \u0060SnapshotTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de8658a5712fd5fccfe23744e56ca6fd8c92993a1624bd595bed0a278017e51"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimpleSwiftUIWithScrollViewConfiguration: No conventional assertion call was detected, and 12 of 12 tests in \u0060SnapshotTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f8b144868b4d56bd5d281b6656ff8c2e776489aead9cf7776adcec7770061d"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimpleConfiguration: No conventional assertion call was detected, and 12 of 12 tests in \u0060SnapshotTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c7c9ec9c3f9627e49129e7e8638ef85f6af075e741a90ead522150a11ea2aa"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testShowingActivationPoint: No conventional assertion call was detected, and 12 of 12 tests in \u0060SnapshotTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d2e573e840a8d4006188ca362897d322fc083a2e1a474ff74fd8a0212da70d"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testUsingMonochromeSnapshot: No conventional assertion call was detected, and 12 of 12 tests in \u0060SnapshotTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd8ae65c2fb915547c3f4f649fd93f795863ee3c2911c61b6379e3d3513b486"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testRenderingMethods: No conventional assertion call was detected, and 12 of 12 tests in \u0060SnapshotTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52c310736de59d8819800dc9df25c596b5d79f4554b6dbac03acf3c776f0d11"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testMarkerColors: No conventional assertion call was detected, and 12 of 12 tests in \u0060SnapshotTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c40f4d5e67fd3846f60f3597fa117bf57ccac29d27564836b4d54109f206fe"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testInvertColors: No conventional assertion call was detected, and 12 of 12 tests in \u0060SnapshotTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad360a59c2638e75e4eb754f21bad4c5e56c0d2569c6e2deb7176926ab56c68"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testHitTargets: No conventional assertion call was detected, and 12 of 12 tests in \u0060SnapshotTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ab6d600f26093971136b46be8eb450c8a898cd05d52d2bcc0a48acfbacb56e"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testUIKitTextField: No conventional assertion call was detected, and 12 of 12 tests in \u0060SnapshotTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"101b18a325ca813b7bf02edf7867f1ca96502d9c0d3a2d34d0dea9211b43cd54"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testUIKitTextView: No conventional assertion call was detected, and 12 of 12 tests in \u0060SnapshotTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b403d1b757f107b678d25ae99b6c78207917a1c6d202cd99cefa52b1057b680"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSwiftUITextEntry: No conventional assertion call was detected, and 12 of 12 tests in \u0060SnapshotTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d259fe27b2f5ba4e945d9e00462a713fe307dd5c5d2b9e534401c26829ca56ee"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTiledRenderingPreservesSafeAreaLayout_viewOwnedByViewController: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/UnitTests/ViewTiledImageRenderingTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b01c96e2a3c11171a1e57eab48ef199f73a537b917c29009cff2227d386dd0"}},{"ruleId":"D10","level":"note","message":{"text":"Test project verifies nothing: SnapshotTests: No conventional assertion call was detected in 12 of 12 tests in \u0060SnapshotTests\u0060 \u2014 the project as a whole, not one method. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a suite that genuinely checks nothing. If it is the latter, this project passes unconditionally and cannot fail."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/SnapshotTests/SnapshotTestingTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde8af3a6ab1a57edcb7afdbd859603ad0ee54c3bb11dff988e2d7072fcf8eb5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift: Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in NSObject.recursiveAccessibilityHierarchy at line 810. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 17:41:42 \u002B01:00\u0027 --until=\u00272026-11-10 17:41:42 \u002B01:00\u0027 --full-history --no-merges -- Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6357e7cd84a6584e468a9e5fa72d2eb5eebf816b71fdf9e2e13aa7ea10f6e1"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 5 significant file(s) lose their only recent owner: Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityHierarchyParser.swift, AccessibilitySnapshotModel/Sources/AccessibilitySnapshotModel/AccessibilityPrimitives.swift, AccessibilitySnapshotModel/Sources/AccessibilitySnapshotModel/AccessibilityElement.swift, AccessibilitySnapshotModel/Sources/AccessibilitySnapshotModel/AccessibilityContainer.swift, Sources/AccessibilitySnapshot/Parser/Swift/Classes/AccessibilityElement\u002BUIKit.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e9e90bba54b85730f6a8da650928a9376b4ff85efd2479b27f057ddd0a317549"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (13298 LoC, 169 module-visible types across 9 directories) overshoots its size bounds. 1 of 2 build unit(s) (SwiftPM) overshoot their size bounds, lowering Project Cohesion to 0.0/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"Package.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef91926bd754eb6d4ee98140c4b33eb6f98f362cf24a02371c2db5e0aec4e519"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0dbb915274563a1a1c7710b67a8c19d2a107f22fcaf0daddfce999f66be50e9d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"note","message":{"text":"Concentrated knowledge decay: 24 of 47 significant files have no living knowledge, while the repository is still being changed at a low rate (9 commit(s) in the last 90 days) \u2014 so this is one repo-wide knowledge-decay state, not 24 separate risks. Counted over 47 of the 71 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. The code moved on without the people who understood these files: document them or schedule a read-through before the next change lands in them."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"008bd8d3156a7f5206da709f59f1f87af76671c6b9becea72c8c9cffbcbd4f8e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BKeyboard.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7fc2cab192bd20ccb4d2a51ac3b3384c5e39530f58a5277ddb4678a64bd0d2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting\u002BKeyboard.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2267bae106d92f16bd65daa1dc7231b2456c9f36f8d545eeb3f33f341ab817f2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Core/HitTargetSnapshotUtility.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76cf86ef27c1252df7c21fed20b41c09e97e4f56fd8266d1219fa9c9bce43a0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Core/KeyboardAccessibilitySnapshotView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9624f6257af4adb528536887303f6152b44950f3077b4f2b78416f64ce33666"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Core/KeyboardShortcutLegendView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b41daf98a6f3cbb23e95abb41e20d532227aa2824acb7ea10ff790257fab8e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Parser/Swift/Classes/KeyboardShortcutParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b5888b6aeee4f926228960bc87b9c22d97d4f0f789cb35e6ba42e1774aa46f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Core/SnapshotAndLegendView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e09776df2806bf82f9df5ab03b14bc123abfc9771b5551ece2a6534767e50da"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BObjCSupport.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"acee8bd2953010fd25fd550b6b9f3c62734911a379dbb7f85bd58b7e03d4ebb0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift/FBSnapshotTestCase\u002BSwiftUI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"598f4f07c0bbc59d9c32971b87aaa5e0b3268005c95e60d00f376090a6f2c29a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/ElementView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb80b02dfd26dd735a15c9b45f1c9267737d09dc4dc9443ac6644759fa55b3b8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Core/HitTargetSnapshotView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40afedcdb96f9fb0ee170adf7b13f23bf68945f68ee479746b1f2dbedf487e5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/TraitsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bd5a46d104419d593ee1ce3e16aea0605792cc65d0bba9209e862cb775a375"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUIDesignTokens.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1abdbf663a74987db8f4f6cb77bf2ef7ff16acd6bf6a45aef1457fa9d315ea"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Core/AccessibilitySnapshotBaseView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8ffcaaefc9b464199990a63e5f7bd239d8f9013243bbcf5a362531d0c762c9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Core/PillsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"369f494e5438eeed9234829869f086340c2b7ed44af9460d89003520f7693114"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Scripts/build.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2a0175045efcb5e731a6ab606da849135c71e6cb0a3310674abbc602be2b16"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Scripts/CompareRenamedSnapshots.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"444eb0b4c75e550d17cd36951985031247cee12764bf0ec52a241cd3f6b8c9ab"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Core/UIView\u002BInvertColorsSnapshotting.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b95e5b39861a45d9176ed4a0ddea22c723bbf804206456d4ab9cb4595c5aa1a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUICustomRotorsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbc5774a0fecf765853247d24a861f0d43d0e70a0a661f8f61ce13adef9fa08"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/Core/AccessibilityColorPalette.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59efd6c4119d8fc960faa1851e0b52d9cc4d672c98ec8919e5607b942c573c8a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/SwiftUIAccessibilitySnapshotContainerView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33075033be390af11d962a3a215090a4b1e96876fd67381fdea75ee71f5e38f0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Scripts/ExtractImagesFromTestResults.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d698ac94c9d48ec98e9b7fb112f7524d2e40a83768746874ca121e9ef571a16"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/ColumnWrapLayout.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d525877c1bb793a0a723314cc55ba7304f6385999b61cc1a276effc53424431"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AccessibilitySnapshot/AccessibilitySnapshotPreviews/PillFlowLayout.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0aa24c489557c3a925cc7ef991ddf002b2788e1b469e33a915c0d086b380ef"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90ef8645d5d250a2cdd6c4ddecf434c2439a3eaf0b71b0b76b3e93b4d1bb9e49"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-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":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":3,"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."]}]}