{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"PrettyPrinter.printToken (cyclomatic 103): PrettyPrinter.printToken has cyclomatic complexity 103 (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/SwiftFormat/PrettyPrint/PrettyPrint.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"1816ed5d759c901185f0bd44dd3295ec3b7bfd3e897a28c0cd542741b29867c5"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenStreamCreator.extractLeadingTrivia (cyclomatic 72): TokenStreamCreator.extractLeadingTrivia has cyclomatic complexity 72 (threshold 15). Of this number, 51 points are the body\u0027s own statements and 21 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":3667}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6ecc4edcd23c86ce2d80b0c89ddb02c9ad72e3be84f8490cd4c55f32250806"}},{"ruleId":"D1","level":"warning","message":{"text":"Comment.printReflowedBlockComment (cyclomatic 58): Comment.printReflowedBlockComment has cyclomatic complexity 58 (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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c45b81ce881f04e6566e5fe2419c3b0b2de06e73be9f07703ed510d6fea510"}},{"ruleId":"D1","level":"warning","message":{"text":"InlineWordCollector.collectInline (cyclomatic 50): InlineWordCollector.collectInline has cyclomatic complexity 50 (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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":2157}}}],"partialFingerprints":{"codehealthFindingId/v1":"859add419abee57f610a6ac081a242081e7b2beebb842cf3c7ecd08e63621a3a"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownReflower.visitParagraph (cyclomatic 47): MarkdownReflower.visitParagraph has cyclomatic complexity 47 (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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"c450e3035b92e631b4f97418b061808c2af534507be2d3e7a1fddd86a744f5b4"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownReflower.visitBlockChildren (cyclomatic 39): MarkdownReflower.visitBlockChildren has cyclomatic complexity 39 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 15 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc6f8e74cf36f10cba0ab03e40fc4e6095d19aed21c9310e64197cf12e6f74a"}},{"ruleId":"D1","level":"warning","message":{"text":"InlineWordCollector.collectBracketedInline (cyclomatic 31): InlineWordCollector.collectBracketedInline 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":2336}}}],"partialFingerprints":{"codehealthFindingId/v1":"66788e3e91d030d2f508543d45d59f5be31207e0a97003de0177334fdc7d8c86"}},{"ruleId":"D1","level":"warning","message":{"text":"PrettyPrinter.prettyPrint (cyclomatic 30): PrettyPrinter.prettyPrint has cyclomatic complexity 30 (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/SwiftFormat/PrettyPrint/PrettyPrint.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"339c9f4730350997b61054f19354dff868cc440690ec145158da8ac094f1cb72"}},{"ruleId":"D1","level":"warning","message":{"text":"OrderedImports.orderImportsInSlice (cyclomatic 28): OrderedImports.orderImportsInSlice has cyclomatic complexity 28 (threshold 15). Of this number, 24 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/SwiftFormat/Rules/OrderedImports.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b698ee3b06e2e591d5038abdf349036f322f358cadecb3930c639a67db7c05a8"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownReflower.extractListMarker (cyclomatic 23): MarkdownReflower.extractListMarker 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"897ca7dc899bafb046b5e95550cee8607a538a614976e5c7d82da8967d1d076d"}},{"ruleId":"D1","level":"warning","message":{"text":"Selection.collectEdits (cyclomatic 20): Selection.collectEdits 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/SwiftFormat/API/Selection.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30c84ae5543b1411bdf306db535185b4339cb12f40ca11c288216c3c6745bea"}},{"ruleId":"D1","level":"warning","message":{"text":"Comment.exceedsMaxLineLength (cyclomatic 20): Comment.exceedsMaxLineLength 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddfcc43d0f9ed8c7184ce9eea75cef2c8c6c9e195abbf2106efbf882c60f74b"}},{"ruleId":"D1","level":"warning","message":{"text":"Comment.printReflowedLineComment (cyclomatic 19): Comment.printReflowedLineComment has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to one function item inside it that branches (flushSegment). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dac2f0631fe2654225e32d028a934e9d0c3c59c64f983cdeb74fb36d330cdac"}},{"ruleId":"D1","level":"warning","message":{"text":"OverlongLineReflower.reflow (cyclomatic 19): OverlongLineReflower.reflow has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7d423eceabedc380041f1913fcc7dce90b8b59be91efa0f0831f9c1e54eccd"}},{"ruleId":"D1","level":"warning","message":{"text":"InlineWordCollector.appendBreakableText (cyclomatic 19): InlineWordCollector.appendBreakableText has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a7ceb5f13e9e0221c90f0856cd8d101c8890c8300c20c9af6902c293c4cc92"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenStreamCreator.insertContextualBreaks (cyclomatic 19): TokenStreamCreator.insertContextualBreaks has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":4634}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7649f730ff6d2539ca20597131c121d22877d2c8cb97212c061f1d03e2158d"}},{"ruleId":"D1","level":"warning","message":{"text":"WhitespaceLinter.checkForLineLengthErrors (cyclomatic 18): WhitespaceLinter.checkForLineLengthErrors 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/SwiftFormat/PrettyPrint/WhitespaceLinter.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbd248a75e9c89773e0dc224d098b9d359f43ac6567618a84ac8d192dd8c7db"}},{"ruleId":"D1","level":"warning","message":{"text":"DoNotUseSemicolons.nodeByRemovingSemicolons (cyclomatic 18): DoNotUseSemicolons.nodeByRemovingSemicolons 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/SwiftFormat/Rules/DoNotUseSemicolons.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ded0333ee692320c56c47f1510998a2a3953b4c013d9a73b65dc8e006161eb9"}},{"ruleId":"D1","level":"warning","message":{"text":"OrderedImports.formatImports (cyclomatic 18): OrderedImports.formatImports 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/SwiftFormat/Rules/OrderedImports.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5feeb221526856aaea3b8f248f436ca8f569818dc9226f30cb86fae5c9a9d26"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenStreamCreator.appendAfterTokensAndTrailingComments (cyclomatic 17): TokenStreamCreator.appendAfterTokensAndTrailingComments has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":3139}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbcd8f5686542cb5ff8a4c53985825c6e0765db0855d04ab9ecc22aa0649395"}},{"ruleId":"D1","level":"warning","message":{"text":"WhitespaceLinter.compareWhitespace (cyclomatic 17): WhitespaceLinter.compareWhitespace 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/SwiftFormat/PrettyPrint/WhitespaceLinter.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"4338469fa695b5cb2be6bcec15e7489f9051aced59c3b7deb65ae54cb552203d"}},{"ruleId":"D1","level":"warning","message":{"text":"LintFormatOptions.validate (cyclomatic 17): LintFormatOptions.validate 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/swift-format/Subcommands/LintFormatOptions.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3ce02d02090f01e47645e33cde2f5039123e6dcfc8ac4df87ab1fbcc52f6a0"}},{"ruleId":"D1","level":"warning","message":{"text":"DocumentationCommentText.init (cyclomatic 16): DocumentationCommentText.init has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 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/SwiftFormat/Core/DocumentationCommentText.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9bc731aff0a03d9096e043c7bc7bb3eac145fae30647d7756fd7ed0ae4776c"}},{"ruleId":"D1","level":"warning","message":{"text":"Comment.reflowBlockBodyLines (cyclomatic 16): Comment.reflowBlockBodyLines has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (flushSegment). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"66eeb49f7197cbfc5f80fc628c99c6d975af70d78eba5827fe6e1d13849cdaab"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownReflower.visitBlock (cyclomatic 16): MarkdownReflower.visitBlock 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc14202d1b6a148c3520718d0e8e3d189fefe36d55a7a0b15eff7d1b8d80d220"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenStreamCreator.arrangeAttributeList (cyclomatic 16): TokenStreamCreator.arrangeAttributeList 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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":3242}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1c7682ecaaa4f6a0e0788b82fd4c7fc56eb7e91ef5e2ebc388805f46f58e05"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenStreamCreator.stackedIndentationBehavior (cyclomatic 16): TokenStreamCreator.stackedIndentationBehavior 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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":4414}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdeb2a84556e44d4e64137095fd08c67ce7fe98db1c73704fe695ae65033a46"}},{"ruleId":"D1","level":"warning","message":{"text":"GitIgnorePattern.doubleAsteriskMatch (cyclomatic 16): GitIgnorePattern.doubleAsteriskMatch 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/SwiftFormat/Utilities/GitIgnorePattern.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacfba253c0af960649d0a18370ef5b40f8d443d58c03f4166c5e497b7343c67"}},{"ruleId":"D2","level":"warning","message":{"text":"PrettyPrinter.printToken (cognitive 150): PrettyPrinter.printToken has cognitive complexity 150 (threshold 15). Drivers by points: if/else 39 (88 pts), boolean chains 36, match/switch 6 (13 pts), ternaries 4 (13 pts) (nesting depth added 65). 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/SwiftFormat/PrettyPrint/PrettyPrint.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f444c6a53c580a5dffc4e0a06fe9a8ed746ffaef2e9382503379c7be7bdc15"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenStreamCreator.extractLeadingTrivia (cognitive 136): TokenStreamCreator.extractLeadingTrivia has cognitive complexity 136 (threshold 15). Drivers by points: if/else 40 (92 pts), boolean chains 17, match/switch 6 (14 pts), loops 6 (9 pts), ternaries 2 (4 pts) (nesting depth added 65). Of this number, 96 points are the body\u0027s own statements and 40 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":3667}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad66c645d170f6337851dd29698bbdd56df22f74c80fc73f85dbcb2a0fbf6352"}},{"ruleId":"D2","level":"warning","message":{"text":"Comment.printReflowedBlockComment (cognitive 93): Comment.printReflowedBlockComment has cognitive complexity 93 (threshold 15). Drivers by points: if/else 35 (49 pts), ternaries 13 (23 pts), boolean chains 13, loops 5 (8 pts) (nesting depth added 27). 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89d7c52e9852da46af950361477d4e0e38c4bf08cfdf643fef1d8aca4d4098e"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownReflower.visitParagraph (cognitive 77): MarkdownReflower.visitParagraph has cognitive complexity 77 (threshold 15). Drivers by points: if/else 16 (27 pts), ternaries 9 (24 pts), boolean chains 20, loops 4 (6 pts) (nesting depth added 28). 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"7029b54c479430fd2db16f389268c82222b0bd975992bd42fe552ad673a72b31"}},{"ruleId":"D2","level":"warning","message":{"text":"InlineWordCollector.collectInline (cognitive 67): InlineWordCollector.collectInline has cognitive complexity 67 (threshold 15). Drivers by points: if/else 17 (40 pts), boolean chains 21, loops 1 (3 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 26). 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":2157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86183cb924fb88fe0bed130f0a33c654d251b4cc8594f89d27f29173b5a2b31"}},{"ruleId":"D2","level":"warning","message":{"text":"InlineWordCollector.collectBracketedInline (cognitive 50): InlineWordCollector.collectBracketedInline has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (35 pts), boolean chains 11, loops 3 (4 pts) (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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":2336}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ae5c17f49b3f465140025396736dbdc8e31d620ad1b05e4599c4ebf6a9ae87"}},{"ruleId":"D2","level":"warning","message":{"text":"PrettyPrinter.prettyPrint (cognitive 43): PrettyPrinter.prettyPrint has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (27 pts), ternaries 2 (7 pts), match/switch 2 (5 pts), boolean chains 2, loops 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f648ffd5d82bf9e2240fa10cc58592ae69ca285e6478a4381151c0a538d190"}},{"ruleId":"D2","level":"warning","message":{"text":"Comment.exceedsMaxLineLength (cognitive 40): Comment.exceedsMaxLineLength has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (25 pts), ternaries 2 (8 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 22). 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a21508f87871b18e5beccaa483c8ca4d07e5b72a4dbe576340518df1d91903"}},{"ruleId":"D2","level":"warning","message":{"text":"Selection.collectEdits (cognitive 38): Selection.collectEdits has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (10 pts), boolean chains 6 (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/SwiftFormat/API/Selection.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aef7903bfb04ce6196e90a893396bdd342d87d3eaa6b0e2e4d9fca5d661e2b4"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenStreamCreator.visit (cognitive 38): TokenStreamCreator.visit has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (34 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 19). 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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":2171}}}],"partialFingerprints":{"codehealthFindingId/v1":"b680574127bbfc2dfc9f1409bb7d8f00de2f65cb0726bbd3fdf22aec04946204"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderedImports.orderImportsInSlice (cognitive 37): OrderedImports.orderImportsInSlice has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (21 pts), match/switch 3 (9 pts), boolean chains 6, loops 1 (nesting depth added 15). Of this number, 33 points are the body\u0027s own statements and 4 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/SwiftFormat/Rules/OrderedImports.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7642b7028b22cd713199b511384e59b6a58edd45a8f4ff46541f4b79f75a2b"}},{"ruleId":"D2","level":"warning","message":{"text":"OverlongLineReflower.reflow (cognitive 35): OverlongLineReflower.reflow has cognitive complexity 35 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 5 (13 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 16). 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f16edceb236970a943926ab2ca14216bdc199640ea08bbc0846fb362c81c4e8"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownReflower.extractListMarker (cognitive 35): MarkdownReflower.extractListMarker has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 9 (12 pts), boolean chains 10 (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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b9f265cd6b24cbb8fddf883a18c13bdd0fe69b614e4357f32ef7536ebcf4fc"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenStreamCreator.insertContextualBreaks (cognitive 34): TokenStreamCreator.insertContextualBreaks has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 5, ternaries 2 (4 pts), loops 1 (2 pts) (nesting depth added 14). 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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":4634}}}],"partialFingerprints":{"codehealthFindingId/v1":"b912d2d7a9246e8c9d3be8f05b803c3893bbba5f82e5d19da4d0a491b90fcef3"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownReflower.visitBlockChildren (cognitive 33): MarkdownReflower.visitBlockChildren has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22 (35 pts), boolean chains 12, ternaries 2 (5 pts), loops 4 (nesting depth added 16). 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 (MarkdownReflower.visitBlockChildren::emitUnvisitedGap) 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"c043b64a04451d310d5a0079398cf61fec106113e1df0819cd396fedb0995be3"}},{"ruleId":"D2","level":"warning","message":{"text":"InlineWordCollector.appendBreakableText (cognitive 33): InlineWordCollector.appendBreakableText has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 11, loops 3 (7 pts) (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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a818b8c533ee8d21137f5e5009f132a00117d232817d5166f9cdcc1dc708d2"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenStreamCreator.appendAfterTokensAndTrailingComments (cognitive 32): TokenStreamCreator.appendAfterTokensAndTrailingComments has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 3 (4 pts), match/switch 1 (4 pts), boolean chains 3 (nesting depth added 15). Of this number, 28 points are the body\u0027s own statements and 4 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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":3139}}}],"partialFingerprints":{"codehealthFindingId/v1":"44be677b9c77fcbc9780d43b20bcabcde8b0648b51d72b1b9c4177eae8f6c8d4"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenStreamCreator.arrangeAttributeList (cognitive 31): TokenStreamCreator.arrangeAttributeList has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3 (8 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 14). 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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":3242}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bf24c99941e4868b62d984bac308b71e7b3329d981c5098eb75c4c5cf4d485"}},{"ruleId":"D2","level":"warning","message":{"text":"GitIgnorePattern.doubleAsteriskMatch (cognitive 31): GitIgnorePattern.doubleAsteriskMatch has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 4 (10 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 16). 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/SwiftFormat/Utilities/GitIgnorePattern.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"5819bc255bfd77e84b7a00043a58dd1c551436704e8ff841216abfd893597d63"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderedImports.swift.generateLines (cognitive 31): OrderedImports.swift.generateLines has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (9 pts), match/switch 2 (7 pts) (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/SwiftFormat/Rules/OrderedImports.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e12fcc00a90e6f334271cca10181931450fb32dd21c62498ff25745375b5a9"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderedImports.checkGrouping (cognitive 30): OrderedImports.checkGrouping has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 5 (14 pts), loops 1 (nesting depth added 14). 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/SwiftFormat/Rules/OrderedImports.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"86fda03f11bc3ccbbb4492cf9fd25364e9cb8762e36e73f49b3bd8e4bceef24c"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderedImports.formatImports (cognitive 30): OrderedImports.formatImports has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 7, loops 3 (4 pts), match/switch 1 (2 pts) (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/SwiftFormat/Rules/OrderedImports.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42bf9d62f0fd2771b11e07ff1ae6ceeeaaade2363aeca68213d47ab13de37dc"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentationCommentText.init (cognitive 29): DocumentationCommentText.init has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (5 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 13). Of this number, 26 points are the body\u0027s own statements and 3 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/SwiftFormat/Core/DocumentationCommentText.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c7c9f1a259ebd596d9dc2ec9cb14b3cdd59a1ddfc5ca3399cac0b1297c8559"}},{"ruleId":"D2","level":"warning","message":{"text":"Comment.printReflowedLineComment (cognitive 27): Comment.printReflowedLineComment has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 5 (6 pts), ternaries 3 (5 pts), boolean chains 3 (nesting depth added 5). Most of this is not in the body itself: 13 of the 27 points are its own statements and the rest belongs to one function item inside it that branches (flushSegment). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d457394edb708467d2beca403a40f9ebfba810b8d5607d591745facc722d00"}},{"ruleId":"D2","level":"warning","message":{"text":"DoNotUseSemicolons.nodeByRemovingSemicolons (cognitive 27): DoNotUseSemicolons.nodeByRemovingSemicolons has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 10, loops 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/SwiftFormat/Rules/DoNotUseSemicolons.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f857e82997d058dd0888e876d37e169e4a57112877376516e628495d9b77d67a"}},{"ruleId":"D2","level":"warning","message":{"text":"WhitespaceLinter.compareWhitespace (cognitive 26): WhitespaceLinter.compareWhitespace has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 5, loops 2 (4 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/SwiftFormat/PrettyPrint/WhitespaceLinter.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"dffb67da0480ff7c96b67a6adac53fe2395577e4d8b7628e857a1d90ba326700"}},{"ruleId":"D2","level":"warning","message":{"text":"Line.description (cognitive 26): Line.description has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (5 pts), loops 2 (4 pts), ternaries 1 (4 pts) (nesting depth added 14). 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/SwiftFormat/Rules/OrderedImports.swift"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5a2c36d58c084a9caea44c62cd6bcbfd2a4fa506c1077d346d23d50d06c83b"}},{"ruleId":"D2","level":"warning","message":{"text":"FileIterator.next (cognitive 26): FileIterator.next has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 14). 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/SwiftFormat/Utilities/FileIterator.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"325084e3331341bf4a897e71d554d54fa8a263c1fed1a4c296e6dd018142bf44"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportsAnyTestingLibrary.swift.statementsImportAnyTestLibrary (cognitive 26): ImportsAnyTestingLibrary.swift.statementsImportAnyTestLibrary has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (5 pts), match/switch 2 (5 pts) (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/SwiftFormat/Core/ImportsAnyTestingLibrary.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8562493c1e90c258778ae8f423f351939a09c6a0ba09779c6452c1d8ee04543d"}},{"ruleId":"D2","level":"warning","message":{"text":"Comment.pragmaLineIndices (cognitive 25): Comment.pragmaLineIndices has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 5 (10 pts), boolean chains 4 (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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17dadac80e99d7aa33f202a5e1fd4c659deb9897978a751d336d98b02520051"}},{"ruleId":"D2","level":"warning","message":{"text":"OverlongLineReflower.splitAtLastWhitespace (cognitive 25): OverlongLineReflower.splitAtLastWhitespace has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (7 pts), boolean chains 5 (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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"73af56549d4cac2e9865206327c2ae078969a550f28ce0157c606f8e1e9b0f9b"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleCollector.detectedRule (cognitive 25): RuleCollector.detectedRule has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 2 (3 pts), match/switch 1 (2 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/_GenerateSwiftFormat/RuleCollector.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cef83e0262450bc897cea1cd63cd68cb56566de92778f16cfd1052c52b064d"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownReflower.visitListItems (cognitive 24): MarkdownReflower.visitListItems has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (17 pts), ternaries 2 (4 pts), boolean chains 2, 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc27ec8156282c503014393c349d5adc14c9aefebbdc0f8900f90b841c320343"}},{"ruleId":"D2","level":"warning","message":{"text":"GitIgnorePattern.globMatchRecursive (cognitive 24): GitIgnorePattern.globMatchRecursive has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 2 (4 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/SwiftFormat/Utilities/GitIgnorePattern.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26b84a6b16b421fdb8e481db2d6e1e05180d38e16525a623f2dce5e3855d27c"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownReflower.visitBlock (cognitive 23): MarkdownReflower.visitBlock has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5, loops 1 (3 pts), ternaries 1 (3 pts), match/switch 1 (nesting depth added 10). 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de5470dba13d1639c473d9e5b80e2cec1f4b2be47d81f7db5efa41786c2a973"}},{"ruleId":"D2","level":"warning","message":{"text":"UseSynthesizedInitializer.matchesAssignmentBody (cognitive 23): UseSynthesizedInitializer.matchesAssignmentBody has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 2, loops 2 (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/SwiftFormat/Rules/UseSynthesizedInitializer.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"041b614daa856b090f5db228d269d0d1d105da9797e931c252f4dac95b89e9ca"}},{"ruleId":"D2","level":"warning","message":{"text":"Trivia.trimmingSuperfluousNewlines (cognitive 23): Trivia.trimmingSuperfluousNewlines has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 5 (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/SwiftFormat/Core/Trivia\u002BConvenience.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7bf93115fa5e592855ee1e636d4bad96bc22745597d23da1a10312f3c71beb"}},{"ruleId":"D2","level":"warning","message":{"text":"UseShorthandTypeNames.visit (cognitive 22): UseShorthandTypeNames.visit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2, match/switch 1 (2 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/SwiftFormat/Rules/UseShorthandTypeNames.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce47e6d2f3d62108513c0c05087547a0a7d87f4e3b02ed8158804e47078962d7"}},{"ruleId":"D2","level":"warning","message":{"text":"UseSynthesizedInitializer.visit (cognitive 22): UseSynthesizedInitializer.visit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (4 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/SwiftFormat/Rules/UseSynthesizedInitializer.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c0948966ce4e41226c2a66ac02484f0e1fd62748c4ea04a7f6b70efed86231"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenStreamCreator.visit (cognitive 21): TokenStreamCreator.visit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3, match/switch 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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":2341}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2757c35708428ea9f5f7163663c35fc6a095f236803019d92baf5f5a4bd836"}},{"ruleId":"D2","level":"warning","message":{"text":"WhitespaceLinter.checkForLineLengthErrors (cognitive 21): WhitespaceLinter.checkForLineLengthErrors has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, loops 4 (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/SwiftFormat/PrettyPrint/WhitespaceLinter.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"90af90295e5781c1701ca98e05071a8b3850a42b52187c9909c8d45125f19e13"}},{"ruleId":"D2","level":"warning","message":{"text":"OneCasePerLine.visit (cognitive 21): OneCasePerLine.visit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 4, loops 2 (3 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/SwiftFormat/Rules/OneCasePerLine.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"364ad02d0349859961c220875a4a5234393e9fb79d90d2811e8211a31a5f8629"}},{"ruleId":"D2","level":"warning","message":{"text":"FileIterator.nextInDirectory (cognitive 21): FileIterator.nextInDirectory has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, match/switch 1 (2 pts), loops 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/SwiftFormat/Utilities/FileIterator.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b4ebd20e9103dcc991926ba5d95fc94704ea3eb164c02ead8a4f149fe35abc"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.indentationError (cognitive 20): Message.indentationError has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 2 (8 pts), boolean chains 3, match/switch 1 (nesting depth added 11). 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/SwiftFormat/PrettyPrint/WhitespaceLinter.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"3234532700f892993c70b2fad17df02c56befa189ed08f2ee061c7f024bb3645"}},{"ruleId":"D2","level":"warning","message":{"text":"Comment.reflowBlockBodyLines (cognitive 20): Comment.reflowBlockBodyLines has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 4 (5 pts), boolean chains 4, ternaries 2 (nesting depth added 3). Most of this is not in the body itself: 8 of the 20 points are its own statements and the rest belongs to one function item inside it that branches (flushSegment). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"970e73a942c5ff52b1dff9c18e0bda7258e8df3325e60385a16531896872b2ef"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenStreamCreator.appendToken (cognitive 20): TokenStreamCreator.appendToken has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (7 pts), match/switch 3 (7 pts), boolean chains 6 (nesting depth added 6). Of this number, 18 points are the body\u0027s own statements and 2 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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":4099}}}],"partialFingerprints":{"codehealthFindingId/v1":"4721241a6b8bce1346d848da5938021fc84063406a2941aa38b59f50aa75d353"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenStreamCreator.stackedIndentationBehavior (cognitive 20): TokenStreamCreator.stackedIndentationBehavior has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6 (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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":4414}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fac82800b6783ca032074cc58228c6909138701d374479ee171e49d1291199"}},{"ruleId":"D2","level":"warning","message":{"text":"UseShorthandTypeNames.visit (cognitive 19): UseShorthandTypeNames.visit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, match/switch 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/SwiftFormat/Rules/UseShorthandTypeNames.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5123f71351db4923a4c43098f3096ce49b9890467acb1a2ad96a693b2afa4b"}},{"ruleId":"D2","level":"warning","message":{"text":"UseSynthesizedInitializer.matchesPropertyList (cognitive 19): UseSynthesizedInitializer.matchesPropertyList has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, loops 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/SwiftFormat/Rules/UseSynthesizedInitializer.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"39046c935e2d72fe7d8ea6f215c169d56a35beb7251ca8fa6d54abaa9f0b1f27"}},{"ruleId":"D2","level":"warning","message":{"text":"LintFormatOptions.validate (cognitive 19): LintFormatOptions.validate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 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/swift-format/Subcommands/LintFormatOptions.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6db01f66a294060ed397f50a7b3782a3c8b9ddaebd9f48689215a33aff5422e"}},{"ruleId":"D2","level":"warning","message":{"text":"Selection.resolved (cognitive 18): Selection.resolved has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, match/switch 1 (nesting depth added 8). 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/SwiftFormat/API/Selection.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f61190745526323756d1b6587cac7d372c24ec1da5207d864e4a6c67f3ba625"}},{"ruleId":"D2","level":"warning","message":{"text":"Comment.print (cognitive 18): Comment.print has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 1 (5 pts), boolean chains 3, match/switch 1 (nesting depth added 10). 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e9be63e162d0606f30765ad0a007ec97b7a2cd85bb2e4c2bd943a8381c6f8c"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownReflower.visitBlockChildren::emitUnvisitedGap (cognitive 18): MarkdownReflower.visitBlockChildren::emitUnvisitedGap has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 1 (3 pts), boolean chains 2, loops 2 (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. This shape REPEATS in the file: one other method here (MarkdownReflower.visitBlockChildren) 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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bb1b7b99dc3922982c3d58c8b2de57cad6cfd741afa25d48369ef0e735497b"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationProvider.provide (cognitive 18): ConfigurationProvider.provide has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 3 (6 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/swift-format/Frontend/Frontend.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0e5fb1b8f7a0ced838667f720622fe42b92b2871db5e7c0586ee5346259e87"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentationComment.extractParameterOutline (cognitive 17): DocumentationComment.extractParameterOutline has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), boolean chains 2 (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/SwiftFormat/Core/DocumentationComment.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08aacc64f0cdefeae39068d43ec7af154967d1605ea56402ce74554ae9bbfbb"}},{"ruleId":"D2","level":"warning","message":{"text":"OmitExplicitReturns.transformAccessorBlock (cognitive 17): OmitExplicitReturns.transformAccessorBlock has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, match/switch 1 (nesting depth added 4). 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/SwiftFormat/Rules/OmitExplicitReturns.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2546635b69131f1ffcfbdfa94a7b5343ccc01bff3ad2ecc47e45b2c74b33f5"}},{"ruleId":"D2","level":"warning","message":{"text":"UseTripleSlashForDocumentationComments.rewrittenDocCommentLeadingTrivia (cognitive 17): UseTripleSlashForDocumentationComments.rewrittenDocCommentLeadingTrivia has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/UseTripleSlashForDocumentationComments.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"320fe9cd8a5846280bf09af5f443883a5c7874288a3eed9466a2291882592f9f"}},{"ruleId":"D2","level":"warning","message":{"text":"AlwaysUseLowerCamelCase.collectTestMethods (cognitive 16): AlwaysUseLowerCamelCase.collectTestMethods has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), boolean chains 2 (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/SwiftFormat/Rules/AlwaysUseLowerCamelCase.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3348436b2eeb1ef67d17b8979266bbfa433138b53b793d53e30e1f91f892ab1"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleCollector.collect (cognitive 16): RuleCollector.collect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (6 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/_GenerateSwiftFormat/RuleCollector.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c369033143a4dfd2de5f191731254ac076956556a2add08ec16e51d2634340"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TokenStreamCreator: TooManyMethods \u2014 263 methods. The bar is 30 methods; this is 233 over it, 8.77\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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca64a98e8ba72d33b09db42ab6815e564c9f957568cf61828c0e6558b4c365e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OverlongLineReflower.mayReflowIntoPreviousLine: MethodTooLong \u2014 mayReflowIntoPreviousLine runs 841 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 741 over it, 8.41\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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"2730cceecc0c7dbdb1a32ece439329d1bee1da0338ddebe3773632275b77b889"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PrettyPrint/TokenStreamCreator.swift: FileTooLong \u2014 2780 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2280 over it, 5.56\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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b672c87edb97ba5749a9c8fba3039cc923fdf5a96f629926959d4952712e76"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MarkdownReflower.visitParagraph: MethodTooLong \u2014 visitParagraph runs 365 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 265 over it, 3.65\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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6b6f34877ded888a591dea3b0188c3e9160e10d324def185eda1f8af2eb123"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PrettyPrint/Comment.swift: FileTooLong \u2014 1621 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: OverlongLineReflower (861-2453). The bar is 500 significant lines; this is 1121 over it, 3.24\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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b472559638d86e56fbbf2f2beeffa98aae7e72fdc6795f084054c3937cec2f0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OverlongLineReflower: ClassTooLong \u2014 1049 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 649 over it, 2.62\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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e09a5ae86b4aa5a372163568d0eed52b0355c343cee6828627c7f20c562b2f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Comment.printReflowedBlockComment: MethodTooLong \u2014 printReflowedBlockComment runs 176 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"238d361cccca8f6f9a65b2235454b8bd5492a71dc9754fb2b5fefc96dc87d1e4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Message: TooManyMethods \u2014 41 methods, declared across 28 files: Rules/ValidateDocumentationComments.swift (5), PrettyPrint/WhitespaceLinter.swift (3), Rules/NoAccessLevelOnExtensionDeclaration.swift (3), API/Finding.swift (2), \u002B24 more file(s). The bar is 30 methods; this is 11 over it, 1.37\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/SwiftFormat/API/Finding.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f80e6bc7bd78516dc8382c444bfeefd29cbdfce5250e8a6417db80cb9d0ef0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Comment: ClassTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 134 over it, 1.34\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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"be32f8b317713335ccdadc5682d48e91b83ea7b3702266694bc59666e2c82dea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OrderedImports.orderImportsInSlice: MethodTooLong \u2014 orderImportsInSlice runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\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/SwiftFormat/Rules/OrderedImports.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86dca37cdf456b38d832c23b38fa7be8a73223348907a2980f57e5759ee104c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Rules/OrderedImports.swift: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 10 over it, 1.02\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/SwiftFormat/Rules/OrderedImports.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fe388573231bf211b2b01b995257ef81530547c5f9f43c0c707b88db1163f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1435-1450 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1452-1466 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1468-1483 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1788-1802 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2518-2528 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6874e773552670aac39d119013bfbf7c2a8544f1e8aad8199823f447da94342"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (89 corresponding lines): Sources/SwiftFormat/Rules/UseShorthandTypeNames.swift:25-113 | Sources/SwiftFormat/Rules/UseShorthandTypeNames.swift:115-208 \u2014 These two members are one piece of code written twice and then edited apart: 89 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/UseShorthandTypeNames.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e213394a3b10d1924ad8c43ef07172e5b6a94726a7b9cc8c5956809758aa39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1649-1677 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2882-2914 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd042479f80a96db0009b6a859d83885cb4defc14da349a05faeca6dd95b875f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:3451-3476 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:3489-3506 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":3451}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e99d3b42de92492a6cf98db1054dfdd34ebd8a2bb7ce92327c52d26a8b5a8e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:370-411 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:413-444 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f35f20e92a45a27cbd82d2a5da8ded2f59f6fbb14f5c17746e86bb9999384da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/SwiftFormat/Rules/ReturnVoidInsteadOfEmptyTuple.swift:25-52 | Sources/SwiftFormat/Rules/ReturnVoidInsteadOfEmptyTuple.swift:54-96 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/ReturnVoidInsteadOfEmptyTuple.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"233b7c2176c2accf5de2bfe7e44a240f0d6b300d025b06aabb2d3e0519566927"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1582-1597 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1719-1734 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ff74c0085863ae51d90be83adf80e41ca81189bc43c05e05f7622699969942"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/SwiftFormat/API/SwiftFormatter.swift:57-77 | Sources/SwiftFormat/API/SwiftLinter.swift:55-73 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/API/SwiftFormatter.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86b05c189583c8eda706f617354367463369e7eef5b4a2a868f639913ecd193"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:85-110 | Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:112-135 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fd33a4a4c9e3ba0c2697c1ce90c5bcf29cdcb2b33860ad8e6d655d605db94f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Sources/SwiftFormat/API/SwiftFormatter.swift:101-129 | Sources/SwiftFormat/API/SwiftLinter.swift:125-151 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/API/SwiftFormatter.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffac84ddbc106f989d74837d6d7e79ae0ddfa5423485e2cd117231a7a1f0d3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/SwiftFormat/Core/LintPipeline.swift:28-45 | Sources/SwiftFormat/Core/LintPipeline.swift:56-73 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Core/LintPipeline.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecf1466ce2e7308a4fc72a0c84a757f0037cd3882ffa22b5e3ed0da19fa8be1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:981-994 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1013-1027 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0234aa9ce27fd5e760220266d62fad2b6b728cb330599cf3a7c3de7f400d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2421-2431 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2736-2746 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":2421}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe40d754f29a3d1f2428529fe8ff891c88b323009651a4da82eaf66ac17b650e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:27-44 | Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:46-63 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a78780cae6e1a034fd434ce345aa7f16531651cee7df12d773217b49e585933"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1827-1843 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1845-1861 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1863-1878 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1827}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c630004c345d57b93bb97b33a5203ce2812aa81e02ce5ac1c83fd033828530b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/SwiftFormat/Rules/OmitExplicitReturns.swift:25-43 | Sources/SwiftFormat/Rules/OmitExplicitReturns.swift:85-101 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/OmitExplicitReturns.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"714ebb0b37433e78eb4f3a0c72f9b447029a55d46efcdfa505c9153f49702b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:3382-3394 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:3403-3415 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:3424-3436 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":3382}}}],"partialFingerprints":{"codehealthFindingId/v1":"997545289074407926df0ce24a379fd7e1a2fc279e332370147fd8dc04f3041a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2006-2015 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2496-2504 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2530-2538 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2775-2783 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d000aff1530d2f9ba25c58da21ce9c3c57ec0b79efb9c478f863c024b6ea3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:137-147 | Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:149-159 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"47057da5455550374ad1668ce99ffaf52adda639ae792ad4dd32a887bc20385f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:973-979 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1000-1011 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d9d454a8669d378173903559c12b0c72ce360dd493a4ecc684054a844d040a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SwiftFormat/Core/RuleMask.swift:80-88 | Sources/SwiftFormat/Core/RuleMask.swift:95-104 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Core/RuleMask.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"726552e06733457fbf022e24a5fba12f32e11005951a62e0a5813d2174dfbd5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2271-2276 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2278-2283 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":2271}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dfe6dec9cdc374066d7bd3e3cd7b493e1ff67a40b52ebed963b2adb84382db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/SwiftFormat/Rules/UseLetInEveryBoundCaseVariable.swift:26-38 | Sources/SwiftFormat/Rules/UseLetInEveryBoundCaseVariable.swift:40-53 | Sources/SwiftFormat/Rules/UseLetInEveryBoundCaseVariable.swift:55-69 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/UseLetInEveryBoundCaseVariable.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bcc2b29debe65877b9c37fe462031476271167af075f8092dd94959642aaf8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/swift-format/Subcommands/LintFormatOptions.swift:155-162 | Sources/swift-format/Subcommands/LintFormatOptions.swift:166-173 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/swift-format/Subcommands/LintFormatOptions.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"06854a0ef307d71ece41c11693c9d084129d6fee89929c3d964f486c687f9215"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/SwiftFormat/Rules/NoParensAroundConditions.swift:68-80 | Sources/SwiftFormat/Rules/NoParensAroundConditions.swift:82-94 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/NoParensAroundConditions.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ad553c642ee9e47c2c63f8e32900462c58c5aed13d97e2a34492e553372c34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 14\u002B corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:189-202 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:204-217 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:219-232 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:234-247 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:249-263 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:265-281 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4f0799575efc5820b3b62c4ca6733cd90c63d13891473c74ae34510b72c3c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/SwiftFormat/Rules/NoParensAroundConditions.swift:29-41 | Sources/SwiftFormat/Rules/NoParensAroundConditions.swift:57-66 | Sources/SwiftFormat/Rules/NoParensAroundConditions.swift:96-105 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/NoParensAroundConditions.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"672bd202b2af47f91d6fe6cbd27e13ea63914fafbe901dd9e4cf948fc0a747a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1633-1642 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2856-2863 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d957fc13a91cc58ac83c4883b51e4fb970dfb3d07397355ebe1bdb75617e07d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1753-1757 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1764-1768 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1992-2004 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec3e7602f720307c515695d0199673d5d8add4ec533b81efb27c11a7db3e4c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1288-1292 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1774-1780 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bcda52ed53222f0c9b74381629994fb01a355424e84171931dde55336ec804f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1617-1625 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1985-1990 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2875-2880 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1617}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb16252488629e296d787fa9d368cbe7e079a04a198a62fae18a420b21f03fcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1782-1786 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1804-1808 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1816-1820 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2942-2946 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1782}}}],"partialFingerprints":{"codehealthFindingId/v1":"395944c06828e96b1aa07559d1dccd3436071614feef2fb9416a089dba477ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/SwiftFormat/Rules/NeverForceUnwrap.swift:45-55 | Sources/SwiftFormat/Rules/NeverUseForceTry.swift:37-46 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/NeverForceUnwrap.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44a0d7fcfaebd3372bf3d7a3dae89692b01287659da4363be6cc2161ac1fe64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/SwiftFormat/Rules/OmitExplicitReturns.swift:45-64 | Sources/SwiftFormat/Rules/OmitExplicitReturns.swift:66-83 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/OmitExplicitReturns.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a4b7df9115adc5f66e1f926a6198ed5a6f9af878e333017649ac5d712eb8f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/SwiftFormat/Core/RuleMask.swift:183-193 | Sources/SwiftFormat/Core/RuleMask.swift:195-201 | Sources/SwiftFormat/Core/RuleMask.swift:203-209 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Core/RuleMask.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"21413db7c0272957975594583f0d3d27f8c23194f7172b98c31276a4deb446ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SwiftFormat/Core/SyntaxProtocol\u002BConvenience.swift:27-37 | Sources/SwiftFormat/Core/SyntaxProtocol\u002BConvenience.swift:50-60 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Core/SyntaxProtocol\u002BConvenience.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd4f375d9dcd1e9da1332825bf017c07669fc8264b8ae5c9625c26232c0f1c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/SwiftFormat/Rules/NoAccessLevelOnExtensionDeclaration.swift:42-57 | Sources/SwiftFormat/Core/SyntaxFormatRule.swift:50-64 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/NoAccessLevelOnExtensionDeclaration.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d483f3286e6978e0c2111f1b67976415bf3d0a9921b7dc46138a9020aa44a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/SwiftFormat/Rules/NoAssignmentInExpressions.swift:106-115 | Sources/SwiftFormat/Rules/NoAssignmentInExpressions.swift:152-159 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/NoAssignmentInExpressions.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec794fe97a945a913baff31ecc25bf59de36f6c561cb879e989176bb0afbc36e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:221-226 | Sources/SwiftFormat/Rules/AlwaysUseLowerCamelCase.swift:231-236 | Sources/SwiftFormat/Rules/DontRepeatTypeInStaticProperties.swift:72-74 | Sources/SwiftFormat/Rules/OrderedImports.swift:866-868 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"32454df57bdf5889ce810144eb29ccd17f333d2d798fc17fe18af4ab934b76b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1083-1104 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1375-1395 \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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1083\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The 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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da487706ad016baebad237928afb00fa020dd3286ef44ae7d2e86fa02f8c29c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:88-103 | Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:115-130 \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/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060type\u0060 to \u0060ArrayTypeSyntax\u0060 in one and \u0060DictionaryTypeSyntax\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"314f8a87bccb64a358feb3c9e2add007795c20b1ad7112e7475ad6076745c11e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/SwiftFormat/Rules/ReturnVoidInsteadOfEmptyTuple.swift:27-42 | Sources/SwiftFormat/Rules/ReturnVoidInsteadOfEmptyTuple.swift:58-73 \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/SwiftFormat/Rules/ReturnVoidInsteadOfEmptyTuple.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2906178f33534ea003da63221fc0242882ec632a186c90158e8605faab890e1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:30-44 | Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:49-63 \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/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:30\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The 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/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"190b382f0ba367c05576def4c165c867ef064c70c7cc7729b35fbf0a30f1475e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1660-1673 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2361-2373 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2897-2910 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1660\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1660}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac56256369492c010bc98b0666f43bc254d06e61acaf38bf70760f009eb857b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1585-1597 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1722-1734 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cc313e02e882595205c48098451205edf469008da5a1ce93792122446df5d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/SwiftFormat/PrettyPrint/WhitespaceLinter.swift:204-215 | Sources/SwiftFormat/PrettyPrint/WhitespaceLinter.swift:229-240 \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/SwiftFormat/PrettyPrint/WhitespaceLinter.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3957a6c62f1288134d1576c60585b8439908ed085593d86046c757f3aa86941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1438-1448 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1454-1464 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1471-1481 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1790-1800 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1437\u0060 calls \u0060arrangeAttributeList\u0060 and \u0060Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1453\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba3b77648a05b3e44d7f92922a46a37a40dabc9e989d1ea73b90ed7e32fa2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:3384-3394 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:3405-3415 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:3426-3436 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:3384\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":3384}}}],"partialFingerprints":{"codehealthFindingId/v1":"697199a904238d80a323c0c5e0503288fd125897563b117753c793f8428895b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 5): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1441-1450 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1457-1466 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1474-1483 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1793-1802 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2521-2528 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1441\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1470\u0060 calls \u0060arrangeAttributeList\u0060 and \u0060Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1454\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1441}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f852846d1542cba68a6975db7c58d35a04801a328506b2c676c9272edf71ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1828-1837 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1846-1855 \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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1828\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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4e11127ecd01071dbad7ebefb18f8aaeecc33ed5aad0d807e92677809a5ce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/SwiftFormat/API/SwiftFormatter.swift:60-68 | Sources/SwiftFormat/API/SwiftLinter.swift:57-65 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftFormat/API/SwiftFormatter.swift:60\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/API/SwiftFormatter.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4af1d18323fedc8c502a8889475c70ae68a0d5694163ad09ed569f9517bf59e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/SwiftFormat/PrettyPrint/Comment.swift:1805-1812 | Sources/SwiftFormat/PrettyPrint/Comment.swift:1868-1875 \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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6cc4cc1503549b264c64ed1f43b658fbad81cf9af6808d07d027f4b85406bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2497-2504 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2531-2538 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2776-2783 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2542\u0060 calls \u0060after\u0060 and \u0060Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2507\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":2497}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f980bbb52145612c3bf6b65076cec9ba3d13d76fb8c43b3dc05261a7b567e79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:682-688 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2885-2891 \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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"d966e2973feb888ca58f1cca385a32eda7b1a7dc333c2a66fa8c3dd1a730343e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:965-971 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1017-1023 \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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:1017\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"c742b1e50a46b57c0e5f547bac08e73a369bf018ea7a9475dfabee485d380d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2426-2431 | Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2741-2746 \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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2426\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2434\u0060 calls \u0060before\u0060, \u0060after\u0060 and \u0060Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift:2749\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":2426}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66ec062361c50df71a3a950b851b6d51c071afc4196e6ae2cd949d08c650c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:140-145 | Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:152-157 \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/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift:140\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/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4631d02731b455255326ca7cb4e177d9e6c8c64524fdaaf7a1a267b1db09142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SwiftFormat/Rules/GroupNumericLiterals.swift:40-44 | Sources/SwiftFormat/Rules/GroupNumericLiterals.swift:46-50 \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/SwiftFormat/Rules/GroupNumericLiterals.swift:40\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/GroupNumericLiterals.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7622354ba06edc2bd14ab8bcf2d1ef1843e7a912b32b1b366ea159010c1492d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): build-script-helper.py:189-204 | build-script-helper.py:208-223 \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":"build-script-helper.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2da74637afb530007c1db1a8262adc60500dade529b4cd3feaec5e089354b81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift:84-160 | Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift:162-209 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee518f91f285ce85ef4bfd918aa510f2bef6c924dd75f2a34d2e70bef858dfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201344 lines \u00D7 2): Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift:88-131 | Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift:166-208 \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/_SwiftFormatTestSupport/DiagnosingTestCase.swift:88\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b218c02f37901f0248138625f8da0026f3187c2d1c0ce3ec6fe72b3c2614dfa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift:60-82 | Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift:138-160 \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/_SwiftFormatTestSupport/DiagnosingTestCase.swift:60\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/_SwiftFormatTestSupport/DiagnosingTestCase.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1cc3d024fe0b4f91718f1ac5bfbd4facfb27ee333ba9b550151cf0fa4533530"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: SwiftFormat (SwiftPM): SwiftFormat (SwiftPM): abstractness 0.05, instability 0.00, distance 0.95 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9d6de81fec9e0d62fa21846cfdc2d356212245bd2f11a7680f2e6a95e2de63cb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TokenStreamCreator (LCOM4 40): TokenStreamCreator\u0027s methods fall into 40 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 40 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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4addcf27328939bf6a7aaa9401698ef5753e2afc9918eefc2900f3f023a69d1f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Trivia (LCOM4 5): Trivia\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Core/Trivia\u002BConvenience.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"862b5130a99cb40db342be6478736c5287200b8d4ea4e623e2c4c307f7f6df2c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMissingConfigurationFile: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/ConfigurationTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a05edf078c5f96d4103c2fdea78dbaa099a840fc7293bc12fe5daf8e12de76e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMissingConfigurationFileInSubdirectory: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/ConfigurationTests.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fe822c2a6d8a2a8659475c5ce08b15bf42892aeae47c6487fea71048991ef9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMissingConfigurationFileMountedDirectory: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/ConfigurationTests.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47b74c64f66a6556e8755bb407423139a8676ab2d5bfe7ba232b6b440a27873"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testConfigurationWithComments: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/ConfigurationTests.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"889eda25b0f16bbb42538114d1c27a2a708ab42681c6ed24456583a607a30c18"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNoFollowSymlinks: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/Utilities/FileIteratorTests.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90a648232f4fe38df9bf59eeaac634bd1e41ce5e20ba15c07d3017dab9bc5d6"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFollowSymlinks: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/Utilities/FileIteratorTests.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b542e1d6627ee2f449b449532aa9515703dadf4d0eabf70e44e6975256979f"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFollowSymlinksToSymlinks: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/Utilities/FileIteratorTests.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fce61f6af8ddf27abb6c5721c8b098699aa179c6af72f52fdf9e0294837de1"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSymlinkCyclesAreIgnored: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/Utilities/FileIteratorTests.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"95aba1fe7134d1ea3b3cda8823ed6f30bdbef9bffa150b7de29e711dbf04a4f7"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTraversesHiddenFilesIfExplicitlySpecified: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/Utilities/FileIteratorTests.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"04decbcd024c3e6f82898910e6e1dc967d793f0a32ef1b243e56b2200f52567d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSingleLineFormatting: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af35eb3f550f7cb3a5eeb65c09bc0a3f878833a28d3c9b4cd218448bae2917c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMultipleLinesFormatting: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e60d691e244898fe629eec72c1ee66746c9fa9d02f473da9edfbcb233b0ed7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDisjointLineRanges: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"070f7f9a8b9be980535cfbb29676cea8c6d59fb1ed51d569b1aa5273502114d2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPartiallyWrappedFunctionSignature: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f82d2c48c0f1cd2a4ee93844d24948b892ce173efd1515454ae9f638ec1429"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testComplexExpressionIndentation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"642bc4d7c40d5e9a5b71217ffb194cf453ff4a9251c9e7914e681a8df3f91d67"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMultipleSpacesInsideLine: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a777b032146fdd19c3bcfa703dc5b67ad674e60b7bc2f8822d3b4044166e6b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAdjacentLongLineNotWrapped: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"39985950fcf9d2af44ec93410408b1d4944d467f013ca786a1829334d1dbda38"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDegenerateSignatureIndentation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37a527fbaf2a96723627db8042c6e463a84bb46bd1ed1b154a148c3df8ffc5f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOutOfBoundsLineRange: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"479f6b842aa84360ba908425123246c106c22b049928a5cdf8233c92d4287596"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEndOfLineCommentAtEndOfSelectionDoesNotLeakFormattingOntoNextLine: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dc371536c700a60783d1025b596ffce1eb8fabcc1fa87e6b86da412cf53a1f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPartialOutOfBoundsLineRange: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"476518d16005a2d264e207762d1389db2fafd10bd93cde5a02fac6dfff0781ca"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testZeroLineRange: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b92a2d877ced302e50387162d1abe367a7250f9e9435b4fc636ddd1177dba8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMultilineStringLiteralWithSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b12d83543c49adb2e3de1332b1234d55fbf8762718863267aad505699c8af8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReflowCommentCompletelyEncompassed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b203d21f62a8b748a90b143aec75e411dc10917e9c4a95b0d5c56c049f1b2168"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCRLFLineEndingsWithSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e60de06622b89be40a82566fbfea212f004420ed2b9fa61585d90bf77aebe0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReflowCommentFunctionHeaderEncompassedButNotDocComment: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"b870d23269e161e56b00fb6a2dc7a79988f0d2379ff362df53e2be822ba5975f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBlankLinesWithSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f476fb7d46b5578820c8b802799da1175eada8a28831cbd849aee276ad22292"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLeadingAndTrailingFileBlankLinesWithSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"56fc969104e2ed266871790abd87975a41419aa24cd7d35dedc2e14b435410e5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIndentBlankLinesWithSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"0772c7523967462abfcd8bb09306e32b0f1aba03357e1a2f5afb35e65fb926b3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReflowCommentFunctionHeaderEncompassedButNotDocBlockComment: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1bd7036c090850ae6bd8dab688e629edbc94726bdc4a12896fa9fa9578092b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReflowMultilineLineCommentPartiallyEncompassedFirstLine: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9e1379e0e6619223372dba7de5012a208f66c7c1dee8d37902118518422980"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReflowMultilineLineCommentPartiallyEncompassedMiddleLine: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ab35b0a49e13410d19f54a41a48be85a6bcb86a040a52beaed907cbf8e764b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReflowMultilineLineCommentPartiallyEncompassedLastLine: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04c8d0f58e9a408f0fcc500264c465fa5750ed850a5322dc82d67345212e8c7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReflowMultilineLineCommentPartiallyEncompassedAndFunctionHeader: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c48f46417fc5d400fdc5aca5a203da1952fda6c29ff01ffcea1e289a74cab9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReflowBlockCommentPartiallyEncompassed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2efabbab65b41e891c299218150f84e507ca18f54d1003ead8b167ad0c77ad9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReflowCommentPartiallyEncompassedInsideFencedCodeBlock: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccc792dce3b70a9224929c90a335c0929d5ed876f550cc488b51d3527d37177"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReflowOnlyTouchedCommentAmongMultipleComments: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc010e786156d123db7c56528f25f8e9782750539a01d99fe5e77f507d0b8015"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMultilineCollectionTrailingCommaWithSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"e409d5c36526d342ac96852a2c6987fa83cab9b45e00abc895dafda18aceedd4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSyntaxFormatRulesWithSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"b564f44d576ab42b5634d725b7ea13400aabe458ee2ac27fc4251c41247eb1d9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOrderedImportsWithSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a2382486ae64d60ddcc05b5decb3cb759c88d0eca797e4a1bbacf0bd5497b1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDocBlockCommentsWithSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d894899b0674ea4b4fa918a2f53d0b620c5dbcdc7b2ab2e2db2c867f4e2259"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNoEmptyLinesOpeningClosingBracesWithSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e49835a453af88fdc7de01b76863c84599541ca4fe7157c1159bfb38a24e475"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDeclarationAndByteOffsetShiftingSyntaxRulesWithSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e3a310032c2d11ad49463487609423178ef0106ec562e64e927d2ee86abb8c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFormatterIgnoredNodeOverlappingEndOfSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b42b70346a35606b3ef663ab891c03b4f2fd75e24f0c04fd043134bfe1608e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCommentMovingRewriterInsideNestedSelection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/API/SwiftFormatterSelectionTests.swift"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f9e4338e6e3f49d571899e0ecaf0263964fe01b8660aa72a2879bb46e385d4"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: swift-syntax: Dependency \u0060swift-syntax\u0060 is declared in Package.swift against branch \u0060main\u0060 \u2014 the declaration pins no immutable point, so \u0060swift package update\u0060 moves this dependency to whatever that branch holds at the time, which is code nobody reviewed. Pin it to a version requirement (\u0060from:\u0060, \u0060.upToNextMajor(from:)\u0060, \u0060exact:\u0060) or to a \u0060revision:\u0060 commit SHA."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ca17789eaa80ea178752ee54ac760540efae3f9e3d4561996e6f68742edf7205"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift: Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in TokenStreamCreator.extractLeadingTrivia at line 3667. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:33:18 -05:00\u0027 --until=\u00272026-11-11 12:33:18 -05:00\u0027 --full-history --no-merges -- Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.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/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":3667}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c1566baba3fda868c3c9538a524dc3d369cc9fa9fafd0693abb83be23079cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift: Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 103 in PrettyPrinter.printToken at line 227. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:33:18 -05:00\u0027 --until=\u00272026-11-11 12:33:18 -05:00\u0027 --full-history --no-merges -- Sources/SwiftFormat/PrettyPrint/PrettyPrint.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/SwiftFormat/PrettyPrint/PrettyPrint.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d0f144ebe7248b53c9119fc361eabe0d46fda8c0a5b0f7b7e52d85858ab9db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftFormat/PrettyPrint/Comment.swift: Sources/SwiftFormat/PrettyPrint/Comment.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in Comment.printReflowedBlockComment at line 476. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:33:18 -05:00\u0027 --until=\u00272026-11-11 12:33:18 -05:00\u0027 --full-history --no-merges -- Sources/SwiftFormat/PrettyPrint/Comment.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/SwiftFormat/PrettyPrint/Comment.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"97808078bd3c071b325d45731073f0b1bf7890577abe5746a15041fff9c20374"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: Sources/SwiftFormat/PrettyPrint/WhitespaceLinter.swift, Sources/SwiftFormat/API/Selection.swift, Sources/SwiftFormat/Core/LintPipeline.swift, Sources/SwiftFormat/Core/Rule.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5d4e67168338924a9e1e1c7c6e05b882d7c657ba22f55acc52be325c9a881e6a"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (5 single-owned of 81 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 81 of the 130 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: Sources/SwiftFormat/Core/ImportsAnyTestingLibrary.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should place the diagnostic somewhere in the comment, not on the declaration. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/Rules/BeginDocumentationCommentWithOneLineSummaryTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"28192a39409734bf9f04b7df749fe1365d2abe3851d69e8d0a0dd27807ca1cbe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: It would be nice to allow \u0394 (among other mathematically meaningful symbols) without \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/Rules/IdentifiersMustBeASCIITests.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e985b3f853a5dda7e0dd64dd8bc8a6ef18447ad8cf2ca7671b3732adc04e4e64"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Diagnostics should be emitted inside the comment, not at the beginning of the declaration. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/Rules/ValidateDocumentationCommentsTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb40d7ce662c54fa3a055f8039d4b4a01d87e01480053bd8a26bfedc044404d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: keep this on its own line. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/PrettyPrint/CommentTests.swift"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ece55d4fddb5c92c7dffe77be9537f2787cb386a239cb9150804ddc878c653"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: keep this on its own line. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/PrettyPrint/CommentTests.swift"},"region":{"startLine":2210}}}],"partialFingerprints":{"codehealthFindingId/v1":"3484396d0f998984258e327b857105dfbdebac63b387e1ff1e0c63518640b9ec"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: keep this on its own line. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/PrettyPrint/CommentTests.swift"},"region":{"startLine":2150}}}],"partialFingerprints":{"codehealthFindingId/v1":"66561aa07b3f9d34f2553431f478a1498a643e6bf63f43ad52269e387274ff90"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: keep this on its own line. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/PrettyPrint/CommentTests.swift"},"region":{"startLine":2214}}}],"partialFingerprints":{"codehealthFindingId/v1":"191716d10ac106b6e2ac67431800dfa1bf6706f3b5536b21f6ddc109f16d2dab"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: keep this on its own line. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/PrettyPrint/CommentTests.swift"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecaed05a01c0a32f34af2cd637e0bbec763a01d1b3f49dd2a6b86ac35a094d0c"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: keep this on its own line. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/PrettyPrint/CommentTests.swift"},"region":{"startLine":2218}}}],"partialFingerprints":{"codehealthFindingId/v1":"84aacc439e43893495d05e53a532223049dc6d0a9822d166a9012d74deccbb82"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: It would be nice to check findings when whitespaceOnly == false, but their locations \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftFormatTests/PrettyPrint/PrettyPrintTestCase.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aad263dd71ec4401ae95619a077769f3821d5361e3f6c79df13b12fcaab2cf8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Automate updates to this somehow. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/swift-format/PrintVersion.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"98260120f46c1a11f1f2b987f377ba41ebb0f91f067af092361d5eafed23ade9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We do this to provide a better error message if the finding is in the right place but \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b662dd0ff5a92ba6d2f2f3a02a687d5e6bb24d404295928ad2641e8380fb392f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We do this to provide a better error message if the note is in the right place but \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fe31e0f1a80d942de81cc8fc15cf210bbddb9cb688bb474cd7b99d71eaa5f7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Minimum numeric literal length bounds and numeric groupings have been selected arbitrarily; \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/GroupNumericLiterals.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75726b702d74a410ef4f98f20fa457bcc4056772ef79083cac69518744b33de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Handle floating point literals. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/GroupNumericLiterals.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a974d393a077a9a5589900a6645ba8f354dcb26eb4e0197356c068db4d894f0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Create exception for NSRegularExpression \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/NeverUseForceTry.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfadebfa266215c4a89ea2cdc73f924ca42ec7b43e4fba335cf25db258e6ce87"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Create exceptions for other UI elements (ex: viewDidLoad) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/NeverUseImplicitlyUnwrappedOptionals.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3315c903ec61fc6d231b261262e6a0c22e931592ad964e034af343d68d98935"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Stop using these extensions; they make assumptions about the structure of stored \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/UseSynthesizedInitializer.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94cff35c6b9233b425d1db9486809bdcc80dfc240695025ec706664c90925bc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Create an \u0060\u0026\u0026\u0060 expression with both conditions? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/Rules/UseWhereClausesInForLoops.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfea94b68983829417f16db423f90e81a550d604522d094283d2a7db1da530fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(dabelknap): Handle the unwrapping more gracefully \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea9cd8573551095ca28fdc88fd74d6f18c2b40feba8c4c31a5226c8c18aa883"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(dabelknap): Handle the unwrapping more gracefully \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf770ac0591b4b845bb9003dd0a27a285c5c118235045d341d35b3d22892a0f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: - Other nodes (yet to be organized) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06c2ae8df3f66c67a9a5fe98a9fbc2978e92f4941bb6ce7c356e887c575473e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: For now, just use the raw text of the node and don\u0027t try to format it deeper. In the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b83a90146ae3a1e0c548f8fe6c46756050bdad85424354dc5e1e6b89da33ebb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: It would be nice to restrict this to only allow multiple lines between statements \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift"},"region":{"startLine":3938}}}],"partialFingerprints":{"codehealthFindingId/v1":"56be8f2e45a5d7ccec5decc951265d69a07d469f7cd59fa42a5be8624ea9a63e"}},{"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. ADRs are expected here because \u0060Package.swift\u0060 makes this repository a deployable product (line 18)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Package.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cb68a1ee6c4cb93e1c9ac7b48b28011c2bc672548de5c6ade44fdf2c34c979"}},{"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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"ff7df0b8a7e157c063d3c792dfb4f46657296e2a0e9202c96eaa4fc812444794"},"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":"5f653dd273a36d5fcc3c9b765c377cd03e61b134142c5ec991b4218965826ab8"},"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"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"db6c7e242ec7802d20f4399be90fc8efbe15efd2959347af1918133fa1f0f9e7"},"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":"1f97ac2cd59f20a48accbda6912a9fb705e0abb1e4a8ee217c95dabeb0693338"},"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"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55c70bd03c6316dbc2bfbd6dcd9e0eee9ba46ff9531ecc0eee62be9b108daf7e"},"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":"08a468f79972fc230de4be40d054c46db966c1fb0b7f2f2722be5124262b5768"},"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":"3bf6d9903590779ead48e34b980321f7b50e0c7a4c2e47ef53a9f782fba2df36"},"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"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6985eada467f770b5c377495cfc3c726964ee54a4489713d8e52ebf4419fed72"},"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"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"428f067c43abffd6b5161f685be81af560aa9725dcee5312b15f208b78ad9ece"},"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"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a192da2e98942e27f4b5791265ff1c8f05727967d8ce1b4a97572ee257507567"},"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":"b34f6ae5be340b339f4a67721b721f274a2b6f0ca28a755be8d53221d392cd54"},"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":"096a84bd38e9e5c746008d5544e7235f379648e4a3d0471c99a8966b059f5c9d"},"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":"6397a2086c2b1266c6a4c582b980293beaf382692aabcef5cb81a1466fdae00f"},"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":"D35","level":"warning","message":{"text":"Change coupling: SwiftFormatter.swift \u2194 SwiftLinter.swift: \u0060Sources/SwiftFormat/API/SwiftFormatter.swift\u0060 and \u0060Sources/SwiftFormat/API/SwiftLinter.swift\u0060 change together 67% of the time (14 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u0060dba874b4\u0060 Fix documentation; \u0060fee42c92\u0060 Add \u0060--enable-experimental-feature\u0060 to enable those features in the p\u2026; \u0060a0ee6ebd\u0060 Don\u0027t do anything if the input is empty. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/API/SwiftFormatter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3849c0c43949c3e9ce9f4952d51a4cdf9924128f1500825652bfb1d153abe710"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PrettyPrint.swift \u2194 TokenStreamCreator.swift: \u0060Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift\u0060 and \u0060Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift\u0060 change together 52% of the time (23 of the 44 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 23 shared commits counted here, the most recent 3 are \u006097a26e73\u0060 Fix selection boundary handling in TokenStreamCreator and PrettyPrint\u2026; \u006074e8d24a\u0060 Fix multiline string literal handling with partial selections and whi\u2026; \u0060893c1b70\u0060 Introduce \u0060multilineTrailingCommaBehavior\u0060 configuration (#1044) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5219c13743ec7167deaf0b0f01015c4dad7b385d5abc1de78e2229abe5f189"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"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 4 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/pull_request.yml"},"region":{"startLine":10}}}],"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: \u0060process.terminationReason == .exit \u0026\u0026 process.terminationStatus == 0\u0060 appears character-identically in 2 files \u2014 Plugins/FormatPlugin/plugin.swift, Plugins/LintPlugin/plugin.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":"Plugins/FormatPlugin/plugin.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ec5ed785cbc9ad5869412dabce3164b813469bc1b3f8edee9e7042a67bec02"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"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-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":18,"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."]}]}