{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"HTMLWriter._buildOutput (cyclomatic 157): HTMLWriter._buildOutput has cyclomatic complexity 157 (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/DTCoreText/HTMLWriter.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"5240049fed7e81312cc2daaf03f5792dfa9dff754bf66797d768a3337e85d3d6"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLElement.applyStyles (cyclomatic 131): HTMLElement.applyStyles has cyclomatic complexity 131 (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/DTCoreText/HTMLElement.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3a0acb631d0e7be6ac743705cacf974e7e82e02ac7e96eb86da4b862c5503d"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextLayoutFrame._buildLinesWithTypesetter (cyclomatic 81): CoreTextLayoutFrame._buildLinesWithTypesetter has cyclomatic complexity 81 (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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"d921f2cc4fd34a1d47303e9535a8ca41e88a89299dfa66f90038f3bbb04c5071"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextLayoutFrame._layoutTable (cyclomatic 60): CoreTextLayoutFrame._layoutTable has cyclomatic complexity 60 (threshold 15). Of this number, 56 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1931}}}],"partialFingerprints":{"codehealthFindingId/v1":"19858585eb1d0009d984c8a911bd18b958fc0a972a2b9aa885bae3cb2259afed"}},{"ruleId":"D1","level":"warning","message":{"text":"CSSStylesheet.uncompressShorthands (cyclomatic 48): CSSStylesheet.uncompressShorthands has cyclomatic complexity 48 (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/DTCoreText/CSSStylesheet.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"313e4a9a3a78ef94f5bc2c9c69ef3a307cbced216a976ec9752d39a2d67a7018"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextLayoutFrame._resolveColumnWidths (cyclomatic 44): CoreTextLayoutFrame._resolveColumnWidths has cyclomatic complexity 44 (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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1749}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e4bcb26b811caf4801899d6132acd5591bffe433899fb7592da1a3b5dc0fc9"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageTextAttachment._decodeImage (cyclomatic 44): ImageTextAttachment._decodeImage has cyclomatic complexity 44 (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/DTCoreText/ImageTextAttachment.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d63b8d00f4d6e68d04e2f949848990d610beecba11ac0d12468b8bb048310a"}},{"ruleId":"D1","level":"warning","message":{"text":"AttributedTextContentView.layoutSubviews (cyclomatic 41): AttributedTextContentView.layoutSubviews has cyclomatic complexity 41 (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/DTCoreText/AttributedTextContentView.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"623ccebe44ee44821a3fff39f4af1b4455b29f790c6f6e7f1433796fd8003551"}},{"ruleId":"D1","level":"warning","message":{"text":"BuilderState.applyCSSBorders (cyclomatic 33): BuilderState.applyCSSBorders has cyclomatic complexity 33 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 12 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/BuilderState\u002BTables.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"36eeb3cb202ccf6c57b18f0f0f5c1f104c29d350d05d9cab7e09b77b2c5294ef"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLElement.attributesForAttributedStringRepresentation (cyclomatic 33): HTMLElement.attributesForAttributedStringRepresentation has cyclomatic complexity 33 (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/DTCoreText/HTMLElement.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"768b97c3582e6b434f68f996752d45c25572a86afc10ddfc77caffc1fc3370c3"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextFontDescriptor._findOrMakeMatchingFont (cyclomatic 32): CoreTextFontDescriptor._findOrMakeMatchingFont has cyclomatic complexity 32 (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/DTCoreText/CoreTextFontDescriptor.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f78fd09bc66bf5121721837e19de80cb3cd5d97dae9bd8ad591205e04c42ca8"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextLayoutFrame.draw (cyclomatic 31): CoreTextLayoutFrame.draw has cyclomatic complexity 31 (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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b76d6c83f34a275ee8225fcf233052bbc71e768dbec801b60f8ca69b08bda2"}},{"ruleId":"D1","level":"warning","message":{"text":"BuilderState.configure (cyclomatic 29): BuilderState.configure has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/BuilderState.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"29634285698bb3e79e0799582ed9aa1560054c42d8d329743917fba564f870f5"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner.scanCSSAttribute (cyclomatic 28): Scanner.scanCSSAttribute has cyclomatic complexity 28 (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/DTCoreText/NSScanner\u002BHTML.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd63d39fe887e6c0fa43d71cb0f15c10767bed4edcc6e4761d84b1bae8041ab"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextLayoutFrame._layoutFloat (cyclomatic 23): CoreTextLayoutFrame._layoutFloat has cyclomatic complexity 23 (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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":2534}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda323f2540e0f7753c9c47612ca34b9ad433c4f5d40bd6a5f4f9e1e645b7a97"}},{"ruleId":"D1","level":"warning","message":{"text":"NSAttributedString.prefixForListItem (cyclomatic 23): NSAttributedString.prefixForListItem has cyclomatic complexity 23 (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/DTCoreText/NSAttributedString\u002BDTCoreText.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"766b54e758948cf1611b50018aa58122b2bd6d4518530c962672507fbcb3c9b8"}},{"ruleId":"D1","level":"warning","message":{"text":"CSSStylesheet.matchingComplexCascadingSelectors (cyclomatic 22): CSSStylesheet.matchingComplexCascadingSelectors has cyclomatic complexity 22 (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/DTCoreText/CSSStylesheet.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d1e4b2dfa1743043f26c76e61cebcefc3c2fc7873d0b3bbbe6d4915a8564f6"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextGlyphRun.drawDecoration (cyclomatic 22): CoreTextGlyphRun.drawDecoration has cyclomatic complexity 22 (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/DTCoreText/CoreTextGlyphRun.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa23d2fa1e622d5ccb67726df92cdca95232553af5468b5289621e87c54bbb39"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.dumpCase (cyclomatic 22): main.swift.dumpCase has cyclomatic complexity 22 (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":"Tools/TableInvestigation/main.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"418f289021946ae42fb277ea8305b04c4d1d41f094c7282ed5a51e459409284a"}},{"ruleId":"D1","level":"warning","message":{"text":"BuilderState.applyTagEndHandler (cyclomatic 21): BuilderState.applyTagEndHandler 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/DTCoreText/BuilderState.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"839236d3046cb64f4ab0c45ca5462a72032f01ce40e55f448a8758b278c88ebd"}},{"ruleId":"D1","level":"warning","message":{"text":"NSString.pixelSizeOfCSSMeasure (cyclomatic 21): NSString.pixelSizeOfCSSMeasure 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/DTCoreText/NSString\u002BCSS.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a3cc4464c9307e015322322b4d64d3ab0504a0cee2261f474dc4e158390b4e"}},{"ruleId":"D1","level":"warning","message":{"text":"NSString.stringByDecodingCSSContentAttribute (cyclomatic 21): NSString.stringByDecodingCSSContentAttribute 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/DTCoreText/NSString\u002BCSS.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b355b3142f2eb0b11390229a7b979228351fbf2d553cb675baf0c06d021233"}},{"ruleId":"D1","level":"warning","message":{"text":"CSSStylesheet.mergedStyles (cyclomatic 20): CSSStylesheet.mergedStyles has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CSSStylesheet.swift"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb75e9ffd6dec84ed1e5f42a7493f9e2ad4812f37c3b090491c03b0dbc4873db"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextLayoutFrame._layoutFlow (cyclomatic 20): CoreTextLayoutFrame._layoutFlow has cyclomatic complexity 20 (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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":2709}}}],"partialFingerprints":{"codehealthFindingId/v1":"173bab60b4e2909f51d7ded175a395bd007ca4678c150f2127268355c9fb2586"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextParagraphStyle.isEqual (cyclomatic 20): CoreTextParagraphStyle.isEqual has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextParagraphStyle.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd30f1b3915e8dd10017cde1591d821d960e6d738cdbdb2359ff1266ebf03470"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLElement._finishAttributedString (cyclomatic 20): HTMLElement._finishAttributedString has cyclomatic complexity 20 (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/DTCoreText/HTMLElement.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"61424c50c5ecb3b93adc9acd6332bc1b7fd4566fce424fb62f9ec878d3ca7bdc"}},{"ruleId":"D1","level":"warning","message":{"text":"DTTextList.formattedMarker (cyclomatic 19): DTTextList.formattedMarker has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/DTTextList.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"1147d2a8be4986669fcfb3ca547bbaf525f6db541356d3b2fea8c642f2c0943c"}},{"ruleId":"D1","level":"warning","message":{"text":"BuilderState.handleTableStart (cyclomatic 18): BuilderState.handleTableStart has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/BuilderState\u002BTables.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"de75eb80d9b05992728e48c9f6db58e6e23e4498c5470b2d513319deb8de54e4"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLElement.attributedString (cyclomatic 18): HTMLElement.attributedString has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/HTMLElement.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56634af5549a75cb0656ff846fa618fa3389a01c1ddf083573f47f1fa38534b"}},{"ruleId":"D1","level":"warning","message":{"text":"NSString.arrayOfCSSShadows (cyclomatic 18): NSString.arrayOfCSSShadows has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/NSString\u002BCSS.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b9f287f404600afc477367da0da070001c57777766d549165f74bb26246d9e"}},{"ruleId":"D1","level":"warning","message":{"text":"String.replacingHTMLEntities (cyclomatic 18): String.replacingHTMLEntities has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/NSString\u002BHTML.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"063563eec456090e74569a2bb5b357b445f6647b3a21c40181c3d935be3bffa0"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.describeBlockProperties (cyclomatic 18): main.swift.describeBlockProperties has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tools/TableInvestigation/main.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e086b257d925d3907e7ebdf0c4855d3218ff27a6dc7c624b22302a1075fc19"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextLayoutFrame._algorithmLegacy_BaselineOrigin (cyclomatic 17): CoreTextLayoutFrame._algorithmLegacy_BaselineOrigin has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7ee7c7d5b1cc0aa1689366a7f7c3a991137e0a492f05fdb6d3a9bd0e3f7370"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLElement._parseEdgeInsets (cyclomatic 17): HTMLElement._parseEdgeInsets has cyclomatic complexity 17 (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/DTCoreText/HTMLElement.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c0c5671804976f236c0d3bbdb92611dc4ff0b928e5f1eec3d6c12e74299eba"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextParagraphStyle.cssStyleRepresentation (cyclomatic 16): CoreTextParagraphStyle.cssStyleRepresentation has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextParagraphStyle.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e31818f486e8da59f24868355d5ec87090c29adfa8253aa065908105133283"}},{"ruleId":"D1","level":"warning","message":{"text":"ListItemHTMLElement._listPrefix (cyclomatic 16): ListItemHTMLElement._listPrefix has cyclomatic complexity 16 (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/DTCoreText/ListItemHTMLElement.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a916c4193734a6c66d30bfbbc9a1d4b09f690275284ada566ebaeed3f908d71"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLWriter._buildOutput (cognitive 374): HTMLWriter._buildOutput has cognitive complexity 374 (threshold 15). Drivers by points: if/else 115 (282 pts), loops 18 (48 pts), boolean chains 28, match/switch 4 (13 pts), ternaries 1 (3 pts) (nesting depth added 208). 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/DTCoreText/HTMLWriter.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bc18c91b3dae00dc8bbf913688c6015965b202fb39403034ced4a39732280f"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextLayoutFrame._buildLinesWithTypesetter (cognitive 202): CoreTextLayoutFrame._buildLinesWithTypesetter has cognitive complexity 202 (threshold 15). Drivers by points: if/else 59 (162 pts), boolean chains 21, loops 5 (11 pts), ternaries 2 (5 pts), match/switch 1 (3 pts) (nesting depth added 114). 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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3d7e83bd6468602d71a0cacf39b5eeb988c1174b3b51fa279c69de4e4ddaaf"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLElement.applyStyles (cognitive 154): HTMLElement.applyStyles has cognitive complexity 154 (threshold 15). Drivers by points: if/else 79 (113 pts), match/switch 10 (20 pts), boolean chains 18, loops 1 (3 pts) (nesting depth added 46). 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/DTCoreText/HTMLElement.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"53971c8be7b722022ac12b43d39f7342b4af2a4cac97fbfc426bd31c03c2f80e"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageTextAttachment._decodeImage (cognitive 117): ImageTextAttachment._decodeImage has cognitive complexity 117 (threshold 15). Drivers by points: if/else 31 (101 pts), boolean chains 16 (nesting depth added 70). 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/DTCoreText/ImageTextAttachment.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68af22e5c321a5c72c770842fa6e353eb0c2a73a78fa6bf7ee702df12bf51d5"}},{"ruleId":"D2","level":"warning","message":{"text":"AttributedTextContentView.layoutSubviews (cognitive 112): AttributedTextContentView.layoutSubviews has cognitive complexity 112 (threshold 15). Drivers by points: if/else 34 (95 pts), loops 4 (9 pts), boolean chains 8 (nesting depth added 66). 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/DTCoreText/AttributedTextContentView.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d632c2d08a3acc6c6811bd3784fb5c70d5c3dc5bcb8f4ed72ad90f9419a5415e"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextLayoutFrame._layoutTable (cognitive 103): CoreTextLayoutFrame._layoutTable has cognitive complexity 103 (threshold 15). Drivers by points: if/else 26 (49 pts), loops 19 (37 pts), boolean chains 13, match/switch 1 (2 pts), ternaries 2 (nesting depth added 42). Of this number, 96 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1931}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc642682c78e01dce7c23e7362f6063e8932a77582df7fa4082db3dea843027"}},{"ruleId":"D2","level":"warning","message":{"text":"CSSStylesheet.uncompressShorthands (cognitive 97): CSSStylesheet.uncompressShorthands has cognitive complexity 97 (threshold 15). Drivers by points: if/else 35 (80 pts), boolean chains 7, loops 3 (6 pts), match/switch 2 (4 pts) (nesting depth added 50). 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/DTCoreText/CSSStylesheet.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"affa17cf9dbf858ebbbc04b935a5ca69097904e1eeb1ae76eab7fa97f1e5f88e"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextFontDescriptor._findOrMakeMatchingFont (cognitive 77): CoreTextFontDescriptor._findOrMakeMatchingFont has cognitive complexity 77 (threshold 15). Drivers by points: if/else 25 (59 pts), boolean chains 9, loops 2 (9 pts) (nesting depth added 41). 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/DTCoreText/CoreTextFontDescriptor.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2f56405bbe0d297c7b1dd106ca35c17e407ac5f4aae3518b9f5ae306ed3999"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextLayoutFrame._resolveColumnWidths (cognitive 77): CoreTextLayoutFrame._resolveColumnWidths has cognitive complexity 77 (threshold 15). Drivers by points: if/else 23 (41 pts), loops 10 (19 pts), boolean chains 6, ternaries 3 (6 pts), match/switch 2 (5 pts) (nesting depth added 33). 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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1749}}}],"partialFingerprints":{"codehealthFindingId/v1":"265d3e92b643f9fdb2d237eb1150b1b570ba4db2046e341118442e539471f141"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextLayoutFrame.draw (cognitive 69): CoreTextLayoutFrame.draw has cognitive complexity 69 (threshold 15). Drivers by points: if/else 22 (53 pts), loops 5 (9 pts), boolean chains 4, match/switch 1 (3 pts) (nesting depth added 37). 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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bf4d3031aba8fbf9966a1d405e5eb965686d9d98c23ae2c0836d40c90bac87"}},{"ruleId":"D2","level":"warning","message":{"text":"CSSStylesheet.matchingComplexCascadingSelectors (cognitive 62): CSSStylesheet.matchingComplexCascadingSelectors has cognitive complexity 62 (threshold 15). Drivers by points: if/else 12 (44 pts), loops 4 (13 pts), boolean chains 5 (nesting depth added 41). 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/DTCoreText/CSSStylesheet.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"212d8dcb3b91d118439256386a5a7c7b7540d3f9f52757389bf9c92a08c80aeb"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLElement.attributedString (cognitive 53): HTMLElement.attributedString has cognitive complexity 53 (threshold 15). Drivers by points: if/else 11 (37 pts), loops 3 (12 pts), boolean chains 4 (nesting depth added 35). 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/DTCoreText/HTMLElement.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f79cbf1dfbfaf64e8a1b733397c94d186f539f2a5c8d8a8b5d8a41e4e4e460"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.dumpCase (cognitive 51): main.swift.dumpCase has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (42 pts), loops 3 (5 pts), ternaries 1 (4 pts) (nesting depth added 29). 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":"Tools/TableInvestigation/main.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cb933d821ae827722a577b7302f47fd77c602dbdd0c5693e880a05941c4fa1"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextGlyphRun.drawDecoration (cognitive 48): CoreTextGlyphRun.drawDecoration has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (41 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 25). 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/DTCoreText/CoreTextGlyphRun.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cccb69a714e0426fa4b2600fdfe07a1042f893ab3ed6a01daf6b480b148f455"}},{"ruleId":"D2","level":"warning","message":{"text":"NSString.arrayOfCSSShadows (cognitive 47): NSString.arrayOfCSSShadows has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (34 pts), ternaries 3 (9 pts), boolean chains 3, loops 1 (nesting depth added 28). 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/DTCoreText/NSString\u002BCSS.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ae871bdbe5d864f53d205083935e25cc9a08cfc13a96896a6d581ad6ac1688"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner.scanCSSAttribute (cognitive 46): Scanner.scanCSSAttribute has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (37 pts), boolean chains 7, loops 1, match/switch 1 (nesting depth added 19). 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/DTCoreText/NSScanner\u002BHTML.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca63bce874f736aea2a50c46dcd255cee4401b4b4772ecc14dcae068a3bf979"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLElement.attributesForAttributedStringRepresentation (cognitive 45): HTMLElement.attributesForAttributedStringRepresentation has cognitive complexity 45 (threshold 15). Drivers by points: if/else 28 (41 pts), boolean chains 4 (nesting depth added 13). 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/DTCoreText/HTMLElement.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"951a2c890b1b5b1c0494c2e980b234b035dcf436baf57adcb3078cfaa2d1d341"}},{"ruleId":"D2","level":"warning","message":{"text":"BuilderState.configure (cognitive 37): BuilderState.configure has cognitive complexity 37 (threshold 15). Drivers by points: if/else 26 (33 pts), boolean chains 4 (nesting depth added 7). 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/DTCoreText/BuilderState.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb9e56e9e7815678d364af01dda2acbe489c1e9eec8c20fe984a82a119055a0"}},{"ruleId":"D2","level":"warning","message":{"text":"BuilderState.applyCSSBorders (cognitive 36): BuilderState.applyCSSBorders has cognitive complexity 36 (threshold 15). Drivers by points: if/else 23 (44 pts), loops 6 (9 pts), boolean chains 4 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (BuilderState.applyCSSBorders::applyShorthand) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/BuilderState\u002BTables.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"33638232f2870c5784450c66dfebd85c7b3f2cb584e7a2b24b8ffa8c63fabc1d"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextLayoutFrame._layoutFlow (cognitive 36): CoreTextLayoutFrame._layoutFlow has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (nesting depth added 17). 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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":2709}}}],"partialFingerprints":{"codehealthFindingId/v1":"277b4d4d5f9c90023636d03def59c6adec6e1717e8282d591aff148f35773d2a"}},{"ruleId":"D2","level":"warning","message":{"text":"CSSStylesheet.mergedStyles (cognitive 35): CSSStylesheet.mergedStyles has cognitive complexity 35 (threshold 15). Drivers by points: loops 8 (19 pts), if/else 9 (14 pts), boolean chains 1, ternaries 1 (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CSSStylesheet.swift"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08e4ff5825f29992fdab0f59e78674911a489092cfb091c3518f6d64f7d83fc"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLElement._finishAttributedString (cognitive 35): HTMLElement._finishAttributedString has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/HTMLElement.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd65e74e9397e97369f438f64a783497cff43cf6e587b24847e53ed0dfff3ba"}},{"ruleId":"D2","level":"warning","message":{"text":"NSAttributedString.prefixForListItem (cognitive 35): NSAttributedString.prefixForListItem has cognitive complexity 35 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/NSAttributedString\u002BDTCoreText.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"869660a9c28e0c06935d863b374b3144cf95be2e732443d1de35d9610c173e5a"}},{"ruleId":"D2","level":"warning","message":{"text":"NSString.stringByDecodingCSSContentAttribute (cognitive 33): NSString.stringByDecodingCSSContentAttribute has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 9, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/NSString\u002BCSS.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe30700d57cb7680e29b49302a079bf60a6916d138cb4f1bdb862e70a95d9934"}},{"ruleId":"D2","level":"warning","message":{"text":"NSString.pixelSizeOfCSSMeasure (cognitive 32): NSString.pixelSizeOfCSSMeasure has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 3, loops 2 (nesting depth added 11). 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/DTCoreText/NSString\u002BCSS.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c84a18f05be79fce99d86a8d3f1d2b458ed32f00de73e77aa47a90e4afe727"}},{"ruleId":"D2","level":"warning","message":{"text":"CSSStylesheet.addStyleRule (cognitive 31): CSSStylesheet.addStyleRule has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 5 (13 pts) (nesting depth added 19). 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/DTCoreText/CSSStylesheet.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"afeddf0a97f203cfc3fb43b0cd29ed867f56659392d75d7a0535883771bb35d4"}},{"ruleId":"D2","level":"warning","message":{"text":"CSSStylesheet.parseStyleBlock (cognitive 31): CSSStylesheet.parseStyleBlock has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 18). 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/DTCoreText/CSSStylesheet.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec9c5d37396ea5068afd107dbf126682e0c9df8b6a1a7047fbbffc1cf34abb3"}},{"ruleId":"D2","level":"warning","message":{"text":"BuilderState.applyTagEndHandler (cognitive 30): BuilderState.applyTagEndHandler has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 6, loops 1 (3 pts), ternaries 1 (3 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/DTCoreText/BuilderState.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97a076185e90f380c8b2f1ab33a78618da63bda4df0852cadcb04fd5680eba2"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextLayoutFrame._drawTextBlock (cognitive 30): CoreTextLayoutFrame._drawTextBlock has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 2 (7 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 17). 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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"4090b0c7bee79815aadbf22745f7ef11c4534aa21e202bf9a3e04cf740ec88c5"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextFontDescriptor.supportsNativeSmallCaps (cognitive 29): CoreTextFontDescriptor.supportsNativeSmallCaps has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (20 pts), loops 2 (9 pts) (nesting depth added 21). 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/DTCoreText/CoreTextFontDescriptor.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8140e387c0698648cce18ba35bb865f7df8866a3e8a5f60d0c6c0445e8ce362"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextLayoutFrame._layoutFloat (cognitive 29): CoreTextLayoutFrame._layoutFloat has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 8, loops 2 (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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":2534}}}],"partialFingerprints":{"codehealthFindingId/v1":"8344673cd1313cdd1e65f4bfd5d58712c149ca5d4f15d0e0acf4dffdb8f45cac"}},{"ruleId":"D2","level":"warning","message":{"text":"String.replacingHTMLEntities (cognitive 29): String.replacingHTMLEntities has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 8, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/NSString\u002BHTML.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"608a9a7b6c7f9937998d66878a51beddb972594048e10f2ba2f438cece83dc66"}},{"ruleId":"D2","level":"warning","message":{"text":"DTTextList.parseStyles (cognitive 27): DTTextList.parseStyles has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/DTTextList.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa5aad888214657b8faa018272a949e8c970e578625bdfc335a9bacb88111c4"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextLayoutFrame._algorithmWebKit_BaselineOrigin (cognitive 26): CoreTextLayoutFrame._algorithmWebKit_BaselineOrigin has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (24 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"06cce11b8cdb343656e52bd26d690c39d438cb737361cdf722053615a7ba4f5f"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLElement._parseEdgeInsets (cognitive 24): HTMLElement._parseEdgeInsets has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 4 (6 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/HTMLElement.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9f801bfcbaf5d411adbb730480651236a4262cf5f179b62493b194fcd1bb87"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.describeBlockProperties (cognitive 23): main.swift.describeBlockProperties has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, loops 4 (5 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tools/TableInvestigation/main.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc69518b470cd2dd87c8bfd8f0947109db6ed93c60ec9b9ebccef11097c4d0a"}},{"ruleId":"D2","level":"warning","message":{"text":"BuilderState.handleStartElement (cognitive 22): BuilderState.handleStartElement has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/BuilderState.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4cc2e9c5e9e7a168eecf5c692f9ea076ab1cb3f7a66bd567c554100096dd13"}},{"ruleId":"D2","level":"warning","message":{"text":"ListItemHTMLElement._listPrefix (cognitive 22): ListItemHTMLElement._listPrefix has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (22 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/ListItemHTMLElement.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5740d5644ca2bfb4518fa85b37c98aabbe3a538890d8d28e6c6c1ac775b65e"}},{"ruleId":"D2","level":"warning","message":{"text":"BuilderState.applyCSSBorders::applyShorthand (cognitive 21): BuilderState.applyCSSBorders::applyShorthand has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (BuilderState.applyCSSBorders) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/BuilderState\u002BTables.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d8c14d5d04405d91dca74d85efd0ae3a60ac8f56fe9ac78b762671d2fbfd0a"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextLayoutFrame._algorithmLegacy_BaselineOrigin (cognitive 21): CoreTextLayoutFrame._algorithmLegacy_BaselineOrigin has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3 (nesting depth added 4). 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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54ed76655473d478bec52a647640e2a70bc761236ac1ddb6aebb46f1405aa00"}},{"ruleId":"D2","level":"warning","message":{"text":"TextBlock.encode (cognitive 20): TextBlock.encode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/TextBlock.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa31456ac678dfbd57d70817f3c7c00c5b0ea0ceb76c32d9f1578249018a454"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextParagraphStyle.isEqual (cognitive 19): CoreTextParagraphStyle.isEqual has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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/DTCoreText/CoreTextParagraphStyle.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"c656c544ef529392945a67f44289f27ad104a02fbfe2f01e5a0ab771eb69ff54"}},{"ruleId":"D2","level":"warning","message":{"text":"NSAttributedString.convertToData (cognitive 19): NSAttributedString.convertToData has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 2, error handling 1 (nesting depth added 9). 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/DTCoreText/NSAttributedString\u002BHTMLArchiving.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a082bab7de0f2965cfaf96daf9147b1d64b0b45c3cd42eef7736e0007f7566"}},{"ruleId":"D2","level":"warning","message":{"text":"BuilderState.handleTableStart (cognitive 18): BuilderState.handleTableStart has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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/DTCoreText/BuilderState\u002BTables.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e46e983cfc6025ef22e736731124237ffe3a94f58f470a3a3d4a0a6a50ff24e"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextLayoutFrame._naturalTableWidth (cognitive 18): CoreTextLayoutFrame._naturalTableWidth has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, loops 2 (nesting depth added 3). 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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1683}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc915bf02bcddea6568793902e5405eb3198a1d35e9b10e8b3a1f4ee85ca68d"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextLayoutFrame.closestCursorIndex (cognitive 18): CoreTextLayoutFrame.closestCursorIndex has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/DTCoreTextLayoutFrame\u002BCursor.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1437c9d9573170e0c639c143a5e81731ecfa2225c589f7cba1f88b892ef87aab"}},{"ruleId":"D2","level":"warning","message":{"text":"NSAttributedString.attributedString (cognitive 18): NSAttributedString.attributedString has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/NSAttributedString\u002BHTMLArchiving.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f9dd5c1820c008a85ffc2e666d62410deef33dae8674d2ff546f48058df4f6"}},{"ruleId":"D2","level":"warning","message":{"text":"String.addingAppleConvertedSpace (cognitive 18): String.addingAppleConvertedSpace has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (5 pts) (nesting depth added 11). 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/DTCoreText/NSString\u002BHTML.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"586af7021762187b2ee08b91016126dc9e4b156575d2431b73dfc23fd6a27e1e"}},{"ruleId":"D2","level":"warning","message":{"text":"BuilderState.handleFoundCharacters (cognitive 17): BuilderState.handleFoundCharacters has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3 (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/DTCoreText/BuilderState.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72b40d869ac50efc1e1a0659a82b3e112c3d9a6084822351a8e4d998cc0b1d5"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageTextAttachment.stringByEncodingAsHTML (cognitive 17): ImageTextAttachment.stringByEncodingAsHTML has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 4). 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/DTCoreText/ImageTextAttachment.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ca2358fa447099240456f6ed84557269214aeb3747b265fa4fae8171227aee"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextLayoutFrame._blockFrame (cognitive 16): CoreTextLayoutFrame._blockFrame has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, loops 3 (6 pts), boolean chains 3 (nesting depth added 3). 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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"be26e683b6bb45f00229e89b1ed33ef95dedf234464792d92663bcdd6f61b102"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLWriter._tagRepresentation (cognitive 16): HTMLWriter._tagRepresentation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (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/DTCoreText/HTMLWriter.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8809cb538802602ee1ec850776b2f147bbfd2ce70d10e16dcf96fc7729a8cd0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTMLWriter._buildOutput: MethodTooLong \u2014 _buildOutput runs 444 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 344 over it, 4.44\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/DTCoreText/HTMLWriter.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccfac2fe287dddd3bd6e5aba52bdc99b4e7af8187b482a0d519ea40a63c580e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DTCoreText/CoreTextLayoutFrame.swift: FileTooLong \u2014 1768 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1268 over it, 3.54\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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d8e4569d7a229b7c1f10a4f702023c9ceedeef762b3ea7f3505ac1a60d90b46"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextLayoutFrame._buildLinesWithTypesetter: MethodTooLong \u2014 _buildLinesWithTypesetter runs 316 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 216 over it, 3.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"de452b9b33da452bb9d8249618733287ac69b1b462e77a1fd6326a48921e5e98"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTMLElement.applyStyles: MethodTooLong \u2014 applyStyles runs 258 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 158 over it, 2.58\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/DTCoreText/HTMLElement.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc479bd92f2d5356887359cd8d0e005219839fd0fe03ea558e62f0312de53665"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextLayoutFrame._layoutTable: MethodTooLong \u2014 _layoutTable runs 249 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 149 over it, 2.49\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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1931}}}],"partialFingerprints":{"codehealthFindingId/v1":"295d14c49cb31d1dee01f6337278bca86bd3f965aa629797806234baa6f236db"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreTextLayoutFrame: ClassTooLong \u2014 964 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 400 significant lines; this is 564 over it, 2.41\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb5d716a349d44b1619dca78b60529bf6f9e0b284a7f0c88bb9d1f3d0c9f4a4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HTMLElement: ClassTooLong \u2014 772 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 372 over it, 1.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/HTMLElement.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"916979b0fbf80121caaaa815446ee5dd77ec3e89a8cd6deda960e61eb905358e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CoreTextLayoutFrame: TooManyMethods \u2014 57 methods, declared across 2 files: DTCoreText/CoreTextLayoutFrame.swift (55), DTCoreText/DTCoreTextLayoutFrame\u002BCursor.swift (2). The bar is 30 methods; this is 27 over it, 1.90\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd68163c21ca72bfdbdd887a387bd56a960cf46c2c23fca96b1bd0432d66cde0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CSSStylesheet.uncompressShorthands: MethodTooLong \u2014 uncompressShorthands runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\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/DTCoreText/CSSStylesheet.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44bb2dc7454bdd8e3abc49e9c5dcd92a5c138955bb74a4d4a0f91972d4b0e35"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HTMLWriter: ClassTooLong \u2014 627 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 227 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/HTMLWriter.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3d631329774c76a20067316f924f45e0b18f525beb24c75ed6daf38571f514"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DTCoreText/HTMLElement.swift: FileTooLong \u2014 780 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: HTMLElement (14-1302). The bar is 500 significant lines; this is 280 over it, 1.56\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/HTMLElement.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0084f71daa415ac48a7352e902864c954710394994397eec22ab6dd52ac1563f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AttributedTextContentView: ClassTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 221 over it, 1.55\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/AttributedTextContentView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b138362653353d616e2a4c607376e406136bba151ae7c52647a910c4645e65"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AttributedTextContentView.layoutSubviews: MethodTooLong \u2014 layoutSubviews runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\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/DTCoreText/AttributedTextContentView.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdbb0402482465aa50a4afa6e8444c2e8f6ac01c0a2f63d70db2e79c630edba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DTCoreText/AttributedTextContentView.swift: FileTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: AttributedTextContentView (52-1151). The bar is 500 significant lines; this is 141 over it, 1.28\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/AttributedTextContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ff76c78596241fa5d0c8a7db9c8753d284cb3ee2e9a2d3ad310bbe2dcea420"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DTCoreText/HTMLWriter.swift: FileTooLong \u2014 637 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: HTMLWriter (26-1169). The bar is 500 significant lines; this is 137 over it, 1.27\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/HTMLWriter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94171ce379d82e45f702eaa1376501d46e655c673b44120a138f3fff1c68fdf9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextLayoutFrame._layoutFloat: MethodTooLong \u2014 _layoutFloat runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":2534}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f4444d8c8fba2a21c87474c58244bc85fa5753c2459d7f0b3c5e8a63c6bf15"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextLayoutFrame.draw: MethodTooLong \u2014 draw runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5feb670ba6fd4adad085a94d2cb29188e71d0a94eea4b169943b3579fadb32"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextLayoutFrame._resolveColumnWidths: MethodTooLong \u2014 _resolveColumnWidths runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1749}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1f689a4db1fe61b31506b802fc01852f01f2d38c86649ef98bc883ad9d6c5e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreTextFontDescriptor: ClassTooLong \u2014 424 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 24 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextFontDescriptor.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de1de32150a0779be4eed77a30fb496ec56e89ca95c00badafaeb581b5d3aff"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/DTCoreText/IframeTextAttachment.swift:35-87 | Sources/DTCoreText/ImageTextAttachment.swift:345-419 | Sources/DTCoreText/ObjectTextAttachment.swift:43-105 | Sources/DTCoreText/VideoTextAttachment.swift:24-76 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/IframeTextAttachment.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2c915c09681006098e96144a8acff59e5701ce9514c4d0c99060d63a966555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Sources/DTCoreText/CSSStylesheet.swift:233-264 | Sources/DTCoreText/CSSStylesheet.swift:272-303 \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/DTCoreText/CSSStylesheet.swift:233\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CSSStylesheet.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cecad1f3db06490b1618578e84b01670ada547b283279db581f8f34ba67292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Sources/DTCoreText/CoreTextFontDescriptor.swift:780-805 | Sources/DTCoreText/CoreTextFontDescriptor.swift:826-851 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextFontDescriptor.swift"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"144d1fe89d049d5cb1f59de6409acc900d8a2237a0a1893220f26e6f733e4f91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): Sources/DTCoreText/NSString\u002BCSS.swift:189-213 | Sources/DTCoreText/NSString\u002BCSS.swift:234-259 \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/DTCoreText/NSString\u002BCSS.swift:189\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/NSString\u002BCSS.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cecca484cb3909e48e502bd3fc1ea5d49e81000f65e84b5fd81d6969ed5db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 4): Sources/DTCoreText/IframeTextAttachment.swift:43-66 | Sources/DTCoreText/ImageTextAttachment.swift:369-393 | Sources/DTCoreText/ObjectTextAttachment.swift:51-74 | Sources/DTCoreText/VideoTextAttachment.swift:32-55 \u2014 before extracting anything, compare \u0060Sources/DTCoreText/ObjectTextAttachment.swift\u0060 and \u0060Sources/DTCoreText/VideoTextAttachment.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/IframeTextAttachment.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1123d64d103a7915b0f7f0c18e8f6db593eb778e0d508bb343b46a7b29be98f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/DTCoreText/CoreTextLayoutFrame.swift:835-853 | Sources/DTCoreText/CoreTextLayoutFrame.swift:866-884 \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/DTCoreText/CoreTextLayoutFrame.swift:835\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a75a6e0cfe9bee3389adfcc97851fc2a799c2e0c91a737c049507e7afd35bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): Sources/DTCoreText/IframeTextAttachment.swift:65-82 | Sources/DTCoreText/ImageTextAttachment.swift:396-413 | Sources/DTCoreText/ObjectTextAttachment.swift:73-90 | Sources/DTCoreText/VideoTextAttachment.swift:54-71 \u2014 before extracting anything, compare \u0060Sources/DTCoreText/ObjectTextAttachment.swift\u0060 and \u0060Sources/DTCoreText/VideoTextAttachment.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 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/DTCoreText/IframeTextAttachment.swift:65\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/DTCoreText/IframeTextAttachment.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"315a5528927756d581c62e2c903793ba9de5f5f7887af9eaddb9cb6a0699e488"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/DTCoreText/CoreTextGlyphRun.swift:109-124 | Sources/DTCoreText/CoreTextGlyphRun.swift:129-143 \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/DTCoreText/CoreTextGlyphRun.swift:109\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/DTCoreText/CoreTextGlyphRun.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf1f915f113d7d1599eb02661fb9a3137d7bf2bf22369ca3f5fd631977e5f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/DTCoreText/AttributedTextContentView.swift:381-394 | Sources/DTCoreText/AttributedTextContentView.swift:436-449 \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/DTCoreText/AttributedTextContentView.swift:381\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/DTCoreText/AttributedTextContentView.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd52f866e86c07efac13fffb6ef3a4592b9d7dcfa7ba5af0f6e6abdd2a2d8d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/DTCoreText/ObjectTextAttachment.swift:26-39 | Sources/DTCoreText/VideoTextAttachment.swift:7-20 \u2014 before extracting anything, compare \u0060Sources/DTCoreText/ObjectTextAttachment.swift\u0060 and \u0060Sources/DTCoreText/VideoTextAttachment.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/ObjectTextAttachment.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"de80de3c40de83bb3acb21618d74b913f550d2023a280a44c7fbc391a615d376"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/DTCoreText/HTMLWriter.swift:655-667 | Sources/DTCoreText/HTMLWriter.swift:943-956 \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/DTCoreText/HTMLWriter.swift:655\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/DTCoreText/HTMLWriter.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eab28527c62d4018fb2ff4bea02d86a5ddec606ff92a251a7c0800e3e6a3931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/DTCoreText/AttributedTextContentView.swift:580-589 | Sources/DTCoreText/AttributedTextContentView.swift:953-962 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/AttributedTextContentView.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a611f96fdef01f9070a80852a3b2041a839f546cff226fa218628e31711710"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/DTCoreText/NSAttributedString\u002BDTCoreText.swift:215-223 | Sources/DTCoreText/NSAttributedString\u002BDTCoreText.swift:252-260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/NSAttributedString\u002BDTCoreText.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba1c08afc05835e635344ffcf068e76b259adab3ec993e469d2f17cfdee249a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/DTCoreText/NSAttributedString\u002BSmallCaps.swift:37-45 | Sources/DTCoreText/NSMutableAttributedString\u002BHTML.swift:120-128 \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/DTCoreText/NSAttributedString\u002BSmallCaps.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"16319b6b37974939cc7ae13b6f620a7b05b20211700b615ddd9f2c72e5038e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/DTCoreText/CSSStylesheet.swift:265-272 | Sources/DTCoreText/CSSStylesheet.swift:304-311 \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/DTCoreText/CSSStylesheet.swift:265\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/DTCoreText/CSSStylesheet.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a6e11d35ee1134a7543e015c5ef086669074e2a4742c574ab994f7a08f6f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/DTCoreText/CoreTextLayoutFrame.swift:1695-1701 | Sources/DTCoreText/CoreTextLayoutFrame.swift:1947-1953 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1695}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbc08635e69a1405b3fada5c103ad695442787f49117887052916c79433ff5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/DTCoreText/DTColorFunctions.swift:63-69 | Sources/DTCoreText/DTColorFunctions.swift:83-89 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/DTColorFunctions.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aeac2678a4cf67fd9d541c37d385c7f0ff6ffc955a528e128dcaa2f83c4bc7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/DTCoreText/NSString\u002BCSS.swift:126-130 | Sources/DTCoreText/NSString\u002BCSS.swift:135-139 \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/DTCoreText/NSString\u002BCSS.swift:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/NSString\u002BCSS.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"778c858d26d448dab55f2e00b6c5ae39f5cc1322cad1a2b2a0f0a7e20d1350e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/DTCoreText/CoreTextLayoutFrame.swift:1978-1983 | Sources/DTCoreText/CoreTextLayoutFrame.swift:2027-2032 \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/DTCoreText/CoreTextLayoutFrame.swift:1978\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":1978}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa55d11f9de069ed7742034660baf89df3f6c94945ad402e1d388cf731b679ed"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NSAttributedString (LCOM4 12): NSAttributedString\u0027s methods fall into 12 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 12 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/DTCoreText/NSAttributedString\u002BDTCoreText.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba1d7dcc07782e9101f1157472de3756de245680f4ee28ba7604f3300bd3a60"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 6): String\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/DTCoreText/NSString\u002BHTML.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"209b9369267126e495d44a3e87ea02b6ed64333e762d15321c52bd373422c2f9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AttributedTextView (LCOM4 4): AttributedTextView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/AttributedTextView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41314967570e0819645ee9a5d47f2b47b29040550f0127be867573f56f12918"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: simpleListRoundTrip: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/DTCoreTextTests/HTMLWriterTests.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f272bcd16101f4595a1bad06c63dfba09d27a695163faa19eeabff28bc95117d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nestedListRoundTrip: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/DTCoreTextTests/HTMLWriterTests.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77b5652f657cf2216a8058cd48bad10527bf73440e0bfd04f85f75ee37a68f1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nestedListRoundTripWithPrecedingElement: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/DTCoreTextTests/HTMLWriterTests.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a1044f3e8197299d0e9acc1ee32fe3784d5031b730110774d871ef91f04d83"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nestedListWithPaddingRoundTrip: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/DTCoreTextTests/HTMLWriterTests.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7cf2233f9b03446a5abc53496f36453de8b05a55673f25d41dd530a1cfd97d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nestedListOutputWithoutTextNodeRoundTrip: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/DTCoreTextTests/HTMLWriterTests.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfe7fe581118bf2eb55306a6cd73e2a1077bb127c3ec7a75b26287f5ac2fe11"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: dimensionRawValues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/DTCoreTextTests/TextBlockAppKitParityTests.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"522915987d80a9c78676fc46283906aecfd96c00bb24e0f6852f0be1fd358ff3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: valueTypeRawValues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/DTCoreTextTests/TextBlockAppKitParityTests.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c565cbfa8e43c6310f4765e222d5017b4a43a6a076224187b96dcb777fbed90d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: layerRawValues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/DTCoreTextTests/TextBlockAppKitParityTests.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd014308414c95455ce589ec72cf3466e012ae24251c70fb049e4f80fb56cba"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: verticalAlignmentRawValues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/DTCoreTextTests/TextBlockAppKitParityTests.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2e07a8ee78be929459255b97153a9fb3c6293d81490b29d1b0f84cef3f043a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: layoutAlgorithmRawValues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/DTCoreTextTests/TextBlockAppKitParityTests.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e350b9415761145e9e74925083021582daa7006d6e792a754f920052dffe807c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: enumRawValues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/DTCoreTextTests/TextBlockUIKitParityTests.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3854f15af789325b55aa3ddbaea76a6d0bcb70a8c2fb8733e2e87830b110c5ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/HTMLElement.swift: Sources/DTCoreText/HTMLElement.swift changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 131 in HTMLElement.applyStyles at line 594. 1 of those changes was a fix/bug commit, and the other 18 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-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/HTMLElement.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/DTCoreText/HTMLElement.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb3265479b175810912051ffd892ec371333a97b26bcf61b8291cd9b68be617"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/HTMLWriter.swift: Sources/DTCoreText/HTMLWriter.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 157 in HTMLWriter._buildOutput at line 299. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/HTMLWriter.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/DTCoreText/HTMLWriter.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"6110ee896397fb45ee6c59176d75a62760fec071e67a0c89df891fb0827f64bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/CoreTextLayoutFrame.swift: Sources/DTCoreText/CoreTextLayoutFrame.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 81 in CoreTextLayoutFrame._buildLinesWithTypesetter at line 354. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/CoreTextLayoutFrame.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/DTCoreText/CoreTextLayoutFrame.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"265ee79ee909ac482b3ddd6b2d15d47e74d9a17d3f6fd3f61e180f97a6459e9d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/AttributedTextContentView.swift: Sources/DTCoreText/AttributedTextContentView.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in AttributedTextContentView.layoutSubviews at line 229. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/AttributedTextContentView.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/DTCoreText/AttributedTextContentView.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c1de8f995e89672580813d9533e0c2ee0645051c0618ab2ee702618cb6022c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/CSSStylesheet.swift: Sources/DTCoreText/CSSStylesheet.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in CSSStylesheet.uncompressShorthands at line 96. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/CSSStylesheet.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/DTCoreText/CSSStylesheet.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9598d89f0dee062fde60fb523d93587c63990703f7a2240661c55978aa290ea8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/ImageTextAttachment.swift: Sources/DTCoreText/ImageTextAttachment.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in ImageTextAttachment._decodeImage at line 117. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/ImageTextAttachment.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/DTCoreText/ImageTextAttachment.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f3aefb408a16cb38e1876a2bfd60529e38dce5120350f5ee0a4ab7cf8bcc54"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/NSAttributedString\u002BDTCoreText.swift: Sources/DTCoreText/NSAttributedString\u002BDTCoreText.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in NSAttributedString.prefixForListItem at line 420. 2 of those changes were fix/bug commits, and the other 7 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-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/NSAttributedString\u002BDTCoreText.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/DTCoreText/NSAttributedString\u002BDTCoreText.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5919f86e6f7e05628a6f67f217597b7e27cdb4553c3b0e7895b4d5812248c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/CoreTextGlyphRun.swift: Sources/DTCoreText/CoreTextGlyphRun.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in CoreTextGlyphRun.drawDecoration at line 146. 1 of those changes was a fix/bug commit, and the other 8 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-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/CoreTextGlyphRun.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/DTCoreText/CoreTextGlyphRun.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"850801f7685a1114c4d4e1078d3f2d28a9f24e233abeaabb029c863014b39df3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/CoreTextFontDescriptor.swift: Sources/DTCoreText/CoreTextFontDescriptor.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in CoreTextFontDescriptor._findOrMakeMatchingFont at line 722. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/CoreTextFontDescriptor.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/DTCoreText/CoreTextFontDescriptor.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06b21884c913a8a179e78a76854684974c405dafc552e49350f64b96c7bd4e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/NSScanner\u002BHTML.swift: Sources/DTCoreText/NSScanner\u002BHTML.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in Scanner.scanCSSAttribute at line 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/NSScanner\u002BHTML.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/DTCoreText/NSScanner\u002BHTML.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"87365c03e715b709881d649abcae03007bcb6d13174b1fa77c12024d779f7333"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/ListItemHTMLElement.swift: Sources/DTCoreText/ListItemHTMLElement.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ListItemHTMLElement._listPrefix at line 67. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/ListItemHTMLElement.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/DTCoreText/ListItemHTMLElement.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9d23a8a9034973b159f8acee9c5c7031d4c8efb150fb20f2ed61b8cac8aa51"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/NSString\u002BCSS.swift: Sources/DTCoreText/NSString\u002BCSS.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in NSString.arrayOfCSSShadows at line 160. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/NSString\u002BCSS.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/DTCoreText/NSString\u002BCSS.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"70922fd8b431d11b5d369391fe84d36ebdaee8d1a7536044eda1adef84476a18"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/BuilderState.swift: Sources/DTCoreText/BuilderState.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in BuilderState.configure at line 51. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/BuilderState.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/DTCoreText/BuilderState.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd84a29eec559168d108184eede8da224f2335f27ca3100addf33ba5565e87f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DTCoreText/NSString\u002BHTML.swift: Sources/DTCoreText/NSString\u002BHTML.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in String.replacingHTMLEntities at line 245. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-04-16..2026-07-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-16 10:18:39 \u002B02:00\u0027 --until=\u00272026-07-15 10:18:39 \u002B02:00\u0027 --full-history --no-merges -- Sources/DTCoreText/NSString\u002BHTML.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/DTCoreText/NSString\u002BHTML.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"142753d09b7496d1c0961d3258a8a8e82ae535e63cf6bb399af7556efe4b9c3c"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"47e9d91384bf96285ebed2bcc9af22c39c5766620aef7d61dd5fdd94f4fab967"},"properties":{"commitSha":"b1e476ad3d7c8b6c3752845964adcea95ffba9bb"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"44ce469229cd3281ee712a583bfcee57861b03fc322dda9145636c87ebc49dda"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"befb08b56db007a0e29ef0da736623121ae6e5b9d76f719cc434e4f327f6277b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"665aba25156693c1611c49a58ccc3ff51be49389901f663d397e7fabd8031adc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ff7161c34f7b982f93efde2db24612bd64d705c05cb7460b13ee8ca9ad28883d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"7a7f7e4b742f9887fb9f1d2ff38e04b3fe2e531d59604b707b04df0774a2cf82"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"e3c1e98cac7c4eb89c71d71b69c0beb3d35b15c7f322db2cd37a35c63466ed53"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"10338631ae7e6682850420b6e3dab5ca84d5ee7fc53116046785e37b89dda957"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"dd836b7dfdc3fa0795b147982a554909d3f98f6521dd528c824d7749042e5e00"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"5f494e31d8884af55e9cadf7ffc2c89c73ba744f585e98af5e9dd844c73cc44f"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"d1632e8481d0a7ed593e75e4ffd4b4f0be78219b1e30144e4cdecfdb7b0628fa"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"c28ffc9e448f2d36333f91397a94faddc2850b95afd5e5dd63e0f4fb650281df"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"174dbfb11b1732b42f499c2c89ea28bb1670f14566ff2cfc84de48cfcff5363a"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"c5c9a6fe990e9f037a74dc5929e48a0fdb4c9f3c9c2789a1c5f034453c84d683"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"48122100c4910be1d39219926c60e37da1fe185e882b7d79e88e7961b86cabdc"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"d72814a31bd0d7e586eff56da33f7efe4a483008cd795619c43b4547c17b141e"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"91aedaf8d4c408eb4ab88cc64b0868b9eb30b1839cc72ae93008adaeea653368"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"3ec97629fc1b8494cc780295be348d6f46dd0bbdfb5e252ac4c90d71f83e8e12"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"bcacf1efdbed65dcda62a455737b88f5fe778a83a1423a0bd29271d0f0522404"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"50fb0bcc040fe5354fc25b00f6b60f18ba6d8c695094782421f7e9850ecf7e56"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"68c92b814135937264c4b144ed5eb2d6e7802a9394e14fc743be54947e6d1b90"},"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":"M1","level":"warning","message":{"text":"README may be stale: 20 code files changed in the last 6 months but the README was not touched \u2014 it may no longer reflect the system."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e973e7a8d5d866995cbf78b120250fe7f132bf928812d48ca62e69aba11b9910"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P10","level":"note","message":{"text":"Large public API surface: 82/111 types (74%) declared in the published library are public. For a library, every public type is a stability contract \u2014 keep implementation types off the surface and expose only the intended API."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ed2ba843444ae377c17142f58f714e281e4bd3f183ab100ee1fbef389875d3e6"}},{"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 2397 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c == 0x20 || c == 0x09 || c == 0x0A || c == 0x0B || c == 0x0C || c == 0x0D || c == 0x85\u0060 appears character-identically in 4 files \u2014 Sources/DTCoreText/DTCoreTextConstants.swift, Sources/DTCoreText/NSMutableString\u002BHTML.swift, Sources/DTCoreText/NSString\u002BCSS.swift, Sources/DTCoreText/NSString\u002BHTML.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/DTCoreTextConstants.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"b389e3d3548e0de79b170f30a3f463c6f79663bf20112adf44770b019783bb18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060displaySize.width == 0 || displaySize.height == 0\u0060 appears character-identically in 2 files \u2014 Sources/DTCoreText/ImageTextAttachment.swift, Sources/DTCoreText/TextAttachment.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/ImageTextAttachment.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d659801c11ee67d884f8800564a26a0ba553f48a8617dea7933e45721c8a5266"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/NSAttributedString\u002BHTMLArchiving.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d23928b5a9ff7a1f6fb2c66323f40328eaad46ae08561c62d4f6085f9121bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DTCoreText/NSAttributedString\u002BHTMLArchiving.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58923666fc3f416dbb929a3854be9b1db18046b59b9c7654b2bb960207abb7b"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":23,"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."]}]}