{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"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":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"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":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"TerminalView.pressesBegan (cyclomatic 116): TerminalView.pressesBegan has cyclomatic complexity 116 (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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":3239}}}],"partialFingerprints":{"codehealthFindingId/v1":"5054c9c70e19cfb761808a351dacf32cd67933d04ca30d5a9bb27fe9899b4b38"}},{"ruleId":"D1","level":"warning","message":{"text":"EscapeSequenceParser.parseBorrowed (cyclomatic 115): EscapeSequenceParser.parseBorrowed has cyclomatic complexity 115 (threshold 15). Of this number, 111 points are the body\u0027s own statements and 4 belong to 2 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/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35af97664ec56e71861670f281a48877eab8f282d26a221808b2d2d21babec7"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalKeyboardRouter.keyDown (cyclomatic 105): TerminalKeyboardRouter.keyDown has cyclomatic complexity 105 (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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c56b99b7c462cc61d83ab0919f025cff835ef11aea9629c265c06c34ef99f2"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreGraphicsPaintHost.drawTerminalContents (cyclomatic 101): CoreGraphicsPaintHost.drawTerminalContents has cyclomatic complexity 101 (threshold 15). Of this number, 87 points are the body\u0027s own statements and 14 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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a40c412e0e7b82cdcbc3eb0be8877398ee553f3170e1757eb1a6b50f5acb4f"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.cmdDecRqm (cyclomatic 92): Terminal.cmdDecRqm has cyclomatic complexity 92 (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/SwiftTerm/Terminal.swift"},"region":{"startLine":6181}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea856125e446002947fc00ca8868427629caa7dc57502483cfc5c222300edb82"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalKeyboardRouter.kittyFunctionalKey (cyclomatic 82): TerminalKeyboardRouter.kittyFunctionalKey has cyclomatic complexity 82 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66353b0f71002069db6384cfa6fe04ce5b7a163572b05214d0430c9d75ee4c2"}},{"ruleId":"D1","level":"warning","message":{"text":"SnapshotTextBuilder.buildAttributedString (cyclomatic 72): SnapshotTextBuilder.buildAttributedString has cyclomatic complexity 72 (threshold 15). Of this number, 70 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/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"832440f1344c705c0ff16e3e3414cb0001dae365be534d5769f853cf992e1c0d"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalKeyboardRouter.doCommand (cyclomatic 68): TerminalKeyboardRouter.doCommand has cyclomatic complexity 68 (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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f90b6c0d69e371c7f020db9cff460a50577be925fe550bb9cc5282af4096b9"}},{"ruleId":"D1","level":"warning","message":{"text":"EscapeSequenceParser.dispatchCsi (cyclomatic 63): EscapeSequenceParser.dispatchCsi has cyclomatic complexity 63 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef083548879ee30d48d25c90df95749faf61299fcbcec4fe61155c452fe80ecc"}},{"ruleId":"D1","level":"warning","message":{"text":"MetalTerminalRenderer.prepareRow (cyclomatic 59): MetalTerminalRenderer.prepareRow has cyclomatic complexity 59 (threshold 15). Of this number, 58 points are the body\u0027s own statements and 1 belongs 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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1923}}}],"partialFingerprints":{"codehealthFindingId/v1":"11185fd9301b42b042a60d4541e5197ecb19aedcd0343a5e16b84c03de5db081"}},{"ruleId":"D1","level":"warning","message":{"text":"MetalTerminalRenderer.placeRow (cyclomatic 59): MetalTerminalRenderer.placeRow has cyclomatic complexity 59 (threshold 15). Of this number, 56 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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":2481}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e749a7e4f847d787d4dad866139f22dbbe91ac91e7dd3568009c1b9a392312"}},{"ruleId":"D1","level":"warning","message":{"text":"snapshot.decodeSnapshot (cyclomatic 59): snapshot.decodeSnapshot has cyclomatic complexity 59 (threshold 15). Of this number, 49 points are the body\u0027s own statements and 10 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/snapshot.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8b3cfb79c9b35789c8947306067e89b055ff4c199f184c85137b6bf1c47eb4"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.cmdCharAttributes (cyclomatic 58): Terminal.cmdCharAttributes has cyclomatic complexity 58 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 22 belong to 4 function items inside it that branch. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":6632}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5102960872a819562433093a407f828286b89d8244bb0ae0b4b8268b9b57af"}},{"ruleId":"D1","level":"warning","message":{"text":"events.decodeEvent (cyclomatic 58): events.decodeEvent has cyclomatic complexity 58 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 11 belong to 4 function items inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/events.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"139a72cd2950aa3271167ba10f530ddd0196aa60dc4fc5d078908a053c9e05c1"}},{"ruleId":"D1","level":"warning","message":{"text":"BoxDrawingRenderer.swift.linesChar (cyclomatic 57): BoxDrawingRenderer.swift.linesChar has cyclomatic complexity 57 (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. This is NOT this file\u0027s highest cyclomatic complexity: BoxDrawingRenderer.draw (cyclomatic 129) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/BoxDrawingRenderer.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"2850a6a6f0d85d7b726ffdbbc5a219b84327952ab97d48cbc9f305a909bd8bd1"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyKeyboardEncoder.encode (cyclomatic 54): KittyKeyboardEncoder.encode has cyclomatic complexity 54 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: KittyKeyboardEncoder.functionalEncoding (cyclomatic 109) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8a09d89b523b14ef4e7747765f81201a12223dac59739c050c7d99711ed360"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalSnapshot.refresh (cyclomatic 51): TerminalSnapshot.refresh has cyclomatic complexity 51 (threshold 15). Of this number, 48 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/SwiftTerm/Apple/TerminalSnapshot.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"4218f6dd4639ca4650cd73b31ab537df205a0c67629c2fb15a649dd19a3c4573"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.handlePrintSlow (cyclomatic 49): Terminal.handlePrintSlow has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (Terminal.handlePrintSlow::batchableScalar, Terminal.handlePrintSlow::insertScalarBatch) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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/SwiftTerm/Terminal.swift"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c638aad68c0a54192248b2d9ac01fba881de4c841633b66fd230b89d405817"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalIOPipelineWorker.gatherMain (cyclomatic 48): TerminalIOPipelineWorker.gatherMain has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/TerminalIOPipeline.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd0f7912b819601b9cefb7c4df1c4b8e1f9ba7af5133fbbc9e095f22f6aed7a"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.makeRenderSnapshot (cyclomatic 44): Terminal.makeRenderSnapshot has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":8214}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5dd210888cb6742a8b5c3548753bf057a82b8fb78e614f30b94a36e773b802e"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyFileTransfer.convert (cyclomatic 43): KittyFileTransfer.convert has cyclomatic complexity 43 (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":"TerminalApp/WebTerminal/Sources/WebTerminalServer/KittyFileTransfer.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e61ae8107fa67ef4b1383de6b5b1037b55c09083c120cc582e0385956d34d1"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.cmdWindowOptions (cyclomatic 42): Terminal.cmdWindowOptions has cyclomatic complexity 42 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":5597}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a80a8ab17a49f4648d36b0c4fbddd66e8e359c59ccbd03781670dabdb26e51a"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.parseKittyGraphicsControl (cyclomatic 42): Terminal.parseKittyGraphicsControl has cyclomatic complexity 42 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 12 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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5cf4df04feb108069c9e3803a94ff4d7b5d71d3de99d998ffc7d779426302af"}},{"ruleId":"D1","level":"warning","message":{"text":"SnapshotEncoder.encode (cyclomatic 42): SnapshotEncoder.encode has cyclomatic complexity 42 (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/SwiftTermWebWasm/SnapshotEncoder.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee962c617bbf9c8a95a537d7a983f966c8a59ba58c61a1b0ba89d9426964d659"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.setMode (cyclomatic 41): Terminal.setMode has cyclomatic complexity 41 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":7242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c3cbf6740d5f01f680cf8849b8c4cef4a85d5fdc1244fbb57bdc84eaafbc5e"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalSnapshot.refresh (cyclomatic 40): TerminalSnapshot.refresh has cyclomatic complexity 40 (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/SwiftTerm/Apple/TerminalSnapshot.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"4352e0628371f0482ea31352aa2813000a6c616f0921c57d66e32d448cc2a48d"}},{"ruleId":"D1","level":"warning","message":{"text":"ProgramStatusReport.parse (cyclomatic 39): ProgramStatusReport.parse has cyclomatic complexity 39 (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/SwiftTerm/ProgramStatus.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c00eead038065b43bd661a8f79aaa6872f7f37ef358ede24cdeb7f970146ab2"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.resetMode (cyclomatic 39): Terminal.resetMode has cyclomatic complexity 39 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":7026}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b90af00f29a28a18541951fd3fa24c7da3f75145ffb4d672533b29c9f5714c"}},{"ruleId":"D1","level":"warning","message":{"text":"MetalTerminalRenderer.buildCursorDrawData (cyclomatic 39): MetalTerminalRenderer.buildCursorDrawData has cyclomatic complexity 39 (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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":3934}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fd4ac9ea288e36e611890816f6003ea502ee92a054f1bbeef503d4e406f084"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyboardView.buildUI (cyclomatic 38): KeyboardView.buildUI has cyclomatic complexity 38 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSKeyboardView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efd36018a89436c52732a32a5e1ff16206544dd2956c9c898ac97dc7125ee7d"}},{"ruleId":"D1","level":"warning","message":{"text":"EscapeSequenceParser.dispatchEsc (cyclomatic 36): EscapeSequenceParser.dispatchEsc has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc064ad61870618625d10d3af7e2ab88c464177e6a7af1f38eb81a91a6f281d6"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyKeyboardEncoder.legacyKeypadSequence (cyclomatic 36): KittyKeyboardEncoder.legacyKeypadSequence has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: KittyKeyboardEncoder.functionalEncoding (cyclomatic 109) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"682355cb6397675d1d153f07b819d33975be34409d9f0c1c7fc38bcc98d4d553"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalBidi.shapeArabic (cyclomatic 35): TerminalBidi.shapeArabic has cyclomatic complexity 35 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/TerminalBidi.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbf2f0530bc895283083197ea7654acdfd2a46c860152f8b7672c57c4ef211e"}},{"ruleId":"D1","level":"warning","message":{"text":"MetalTerminalRenderer.render (cyclomatic 35): MetalTerminalRenderer.render has cyclomatic complexity 35 (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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"276f006550741822b85f5cb0038e0ad1b61386528eeceb9fa4d79f9dff513083"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.osciTerm2 (cyclomatic 33): Terminal.osciTerm2 has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 15 of the 33 points are its own statements and the rest belongs to 2 function items inside it that branch (parseDimension, parseKeyValues). 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/SwiftTerm/Terminal.swift"},"region":{"startLine":4197}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed418038582e217775ffc3d8f8d4da4e1c01c25f92e4dcf3acb4063e6319871"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.csiCopyRectangularArea (cyclomatic 31): Terminal.csiCopyRectangularArea 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/SwiftTerm/Terminal.swift"},"region":{"startLine":5244}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae215957f6f4780f2e833f74381785d0c457b7295dc6c7c11c4058c93e8335f"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.displayKittyImage (cyclomatic 31): Terminal.displayKittyImage has cyclomatic complexity 31 (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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"d463070a14671601e26377d7718d4a7fb271c02c2ed52956546a79173375ba1e"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalBidi.buildParagraph (cyclomatic 31): TerminalBidi.buildParagraph has cyclomatic complexity 31 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 5 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/SwiftTerm/Apple/TerminalBidi.swift"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0bef365d902f1dceae0f552a32b4c4ef3007d07cfcd3f3b9d121c5437dd513"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.validateUserInterfaceItem (cyclomatic 31): ViewController.validateUserInterfaceItem 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":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"be248142010ae0d9d5b23acb469eb599054f829f99fddba2e7f86607eb2d8753"}},{"ruleId":"D1","level":"warning","message":{"text":"connect (cyclomatic 31): connect has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 8 of the 31 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 117, shortcut, canInput, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/app.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1b8c1b1a647fd67a0aede4b0883289a7a09d167b28b047001cafd7c9374c58"}},{"ruleId":"D1","level":"warning","message":{"text":"Buffer.reflowNarrower (cyclomatic 30): Buffer.reflowNarrower 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/SwiftTerm/Buffer.swift"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"a462f943566eb509de34eac16650258d2355f691e06c424d66225c7d44480908"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectionService.urlRange (cyclomatic 30): SelectionService.urlRange has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/SelectionService.swift"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9d1250dbfd7cbf563b457d38c38beefd7ebef3fc383ac30275bd3fbb06f333"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.buildGhosttyImplicitLineMap (cyclomatic 30): Terminal.buildGhosttyImplicitLineMap 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/SwiftTerm/Terminal.swift"},"region":{"startLine":10071}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c8c0c6164ae6adc6183ea3386d08201e9d9a62a47cb7897011fef3758d7cae"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyFileTransfer.receive (cyclomatic 30): KittyFileTransfer.receive has cyclomatic complexity 30 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 1 belongs 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":"TerminalApp/WebTerminal/Sources/WebTerminalServer/KittyFileTransfer.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ed2a3a7441f419fdbca80c0b64e2d35b438e12293385c55ce105ff7ee76a01"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyPlaceholderDecoder.decode (cyclomatic 29): KittyPlaceholderDecoder.decode has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyPlaceholder.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75245b9206f4520f4caf555775de99910d308ad2823d9d6b41594804f92864b"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.handleKittyDelete (cyclomatic 29): Terminal.handleKittyDelete has cyclomatic complexity 29 (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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2fb7f614171a8005cd82422d104c1a035d6e1cc5717b1477365051ff14c6cd"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalView.scrollWheel (cyclomatic 29): TerminalView.scrollWheel has cyclomatic complexity 29 (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. This is NOT this file\u0027s highest cyclomatic complexity: TerminalView.windowCommand (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":3731}}}],"partialFingerprints":{"codehealthFindingId/v1":"3153ea0dd9d4733251f84eaa01f1f3770af1e2e6fc5c010c0509643c35ec8081"}},{"ruleId":"D1","level":"warning","message":{"text":"BufferLine.copyFrom (cyclomatic 28): BufferLine.copyFrom has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/BufferLine.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c66ddff4eda7d0253363c4e4adfaeef459e4c61e9d7877ca941fbd68f75087"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.implicitLinkMatch (cyclomatic 28): Terminal.implicitLinkMatch has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":9832}}}],"partialFingerprints":{"codehealthFindingId/v1":"05433653725c268faf6d0b891fd4edb56298f056f6d9a155feffdbfc97e7c945"}},{"ruleId":"D1","level":"warning","message":{"text":"graphics.decodeGraphics (cyclomatic 28): graphics.decodeGraphics has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/graphics.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a980ae78772bbb2f18f569a73ae9e77d343d817efe5a49a5ded446cffaac076"}},{"ruleId":"D1","level":"warning","message":{"text":"Buffer.resize (cyclomatic 27): Buffer.resize has cyclomatic complexity 27 (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/SwiftTerm/Buffer.swift"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbebdb95cfbd59cafbc9fa7a2b63c1d31f39b3538659d88a865de9537ec38f6c"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.sendHostMouse (cyclomatic 27): Terminal.sendHostMouse has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":9464}}}],"partialFingerprints":{"codehealthFindingId/v1":"319ea875a70b1bd54bf552ed0b134c0a13648a9361b7c5eb302df0bde6f039c2"}},{"ruleId":"D1","level":"warning","message":{"text":"ClipboardController.run (cyclomatic 27): ClipboardController.run has cyclomatic complexity 27 (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":"TerminalApp/WebTerminal/Public/clipboard.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c18fd7088741c9e01d7b9a98b9e628193104b1bab20be91917c64cad696dd4"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyboardInputController.keydown (cyclomatic 26): KeyboardInputController.keydown has cyclomatic complexity 26 (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":"Web/src/keyboard.ts"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8ae1c9e776dd81dd529f1672d09ddab5426de0e8b946c3e9caa8ddaa31092d"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalInputController.pointerDown (cyclomatic 26): TerminalInputController.pointerDown has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to one function literal inside it that branches (line 149). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/input.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"59044a3dd8ddddfafd1dd1d60c2c2304548450a1aa08116055693fd34f85c87f"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.oscSemanticPrompt (cyclomatic 25): Terminal.oscSemanticPrompt has cyclomatic complexity 25 (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/SwiftTerm/Terminal.swift"},"region":{"startLine":3641}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9780337ce186aef46e6670e4e128beef662f457cf2afeab003a91bd7a6aa84"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.scrollGeneral (cyclomatic 25): Terminal.scrollGeneral has cyclomatic complexity 25 (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/SwiftTerm/Terminal.swift"},"region":{"startLine":8682}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b0c1af3462d83836d3aaf2ba9e41901920b23e3476b103da8a378bf45837cf"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalContentSnapshot.exportPieces (cyclomatic 25): TerminalContentSnapshot.exportPieces has cyclomatic complexity 25 (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/SwiftTerm/TerminalContentSnapshot.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f68ddfe6412211b2c5437eb873291b5aabec34aa654bd3b7826a03af620cc0a"}},{"ruleId":"D1","level":"warning","message":{"text":"MetalTerminalRenderer.buildDrawDataPass (cyclomatic 25): MetalTerminalRenderer.buildDrawDataPass has cyclomatic complexity 25 (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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d50f97e9269ae663d05a77ed52f7593d1851cdc61e8ef9e583c99f292b96c5"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyboardInputController.normalize (cyclomatic 25): KeyboardInputController.normalize has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/keyboard.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"173a3096985f70f06fb6487713b0b835c050ff59cb426e51ec90601c913b4ab4"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectionService.adjustForInPlaceScroll (cyclomatic 24): SelectionService.adjustForInPlaceScroll has cyclomatic complexity 24 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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/SwiftTerm/SelectionService.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f94e935b53c33573a46c74edd485199099e51e6090a20ac9add8acf2cfb8eb"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectionService.selectedColumns (cyclomatic 24): SelectionService.selectedColumns has cyclomatic complexity 24 (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/SwiftTerm/SelectionService.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d095d2564c8e0738b24a5f196bf95a2bdc48d7a90b42bb10d3881055a83263"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.handleKittyAnimationFrame (cyclomatic 24): Terminal.handleKittyAnimationFrame has cyclomatic complexity 24 (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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca3f320f471a854f026a1991154baf6c81d3beb6aed1cbf5ac1c482366959cd"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.kittyGraphicsAdvanceAnimations (cyclomatic 24): Terminal.kittyGraphicsAdvanceAnimations has cyclomatic complexity 24 (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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":2485}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dd261b52d3ffc866f0dd76e49cb7f7983a5f7106476874c7e77ff3761ed14d"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalView.sendKittyTextInput (cyclomatic 24): TerminalView.sendKittyTextInput has cyclomatic complexity 24 (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. This is NOT this file\u0027s highest cyclomatic complexity: TerminalView.kittyFunctionalKey (cyclomatic 75) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":2845}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b04739809d6be10be342d52c136848d7c229302df33cc06659055f69888c801"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyKeyboardEncoder.legacyFunctionalKeySequence (cyclomatic 23): KittyKeyboardEncoder.legacyFunctionalKeySequence has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: KittyKeyboardEncoder.functionalEncoding (cyclomatic 109) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a0ebb398860f1b1247a6f5003d63edfeeec76932750f85da71b0fba2f7c8bb"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.handlePrintSlow::batchableScalar (cyclomatic 23): Terminal.handlePrintSlow::batchableScalar 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. This shape REPEATS in the file: 2 other methods here (Terminal.handlePrintSlow, Terminal.handlePrintSlow::insertScalarBatch) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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/SwiftTerm/Terminal.swift"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47ccf0a02ea589dba8248d32938412b3e39c6e97e6a460b1f27417f6c8362bb"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.cmdDeviceStatus (cyclomatic 23): Terminal.cmdDeviceStatus 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/SwiftTerm/Terminal.swift"},"region":{"startLine":6472}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ab125867fe31ac8bc8b2dde2a04b69822de4b27a9799433ee9e22374da0d8b"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.handleKittyAnimationComposition (cyclomatic 23): Terminal.handleKittyAnimationComposition has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eff9d4ac69a74ae536a589b0138cec11897f94f577fbd3e3650a12fd4102393"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.decodeKittyPayloadDetailed (cyclomatic 23): Terminal.decodeKittyPayloadDetailed 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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cf96baef114d40d09f767956b52ffdaf4798cc2ad259417de2637b5de1b38f"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreGraphicsPaintHost.drawRunAttributes (cyclomatic 23): CoreGraphicsPaintHost.drawRunAttributes has cyclomatic complexity 23 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 11 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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3147}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a7faa8db97c7c0d0a33b046b84442ecc0fa06605b8c4672b20dd21bdcac54f"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalBidi.computeVisualOrder (cyclomatic 23): TerminalBidi.computeVisualOrder has cyclomatic complexity 23 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 6 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/SwiftTerm/Apple/TerminalBidi.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eba9e262b310997fa1f025e380ec2361a1c89bb220b93c46f662120a5232392"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalView.mouseUp (cyclomatic 23): TerminalView.mouseUp has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: TerminalView.windowCommand (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":3288}}}],"partialFingerprints":{"codehealthFindingId/v1":"38dbb13eb8056506f777b8500f54582d855144626735641872352f92d1a03d0d"}},{"ruleId":"D1","level":"warning","message":{"text":"Color.parseColor (cyclomatic 22): Color.parseColor has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (parseHex, makeColor). 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/SwiftTerm/Colors.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cbbdd5be04ffd2d06256c741d1f505578fa88fb4b3f181dcae75f711c54a93"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectionService.pathRange (cyclomatic 22): SelectionService.pathRange has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/SelectionService.swift"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d20a44aff3dbaa76c135d25fe584e4102b45c5595c16c1359da00a79f2875d"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.visibleKittyPlaceholderPlacements (cyclomatic 22): Terminal.visibleKittyPlaceholderPlacements has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Portable/TerminalKittyPlaceholders.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f825df25aaeda9a3c19114b131172927407712333783e0bc365be9ea215c9049"}},{"ruleId":"D1","level":"warning","message":{"text":"SnapshotTextBuilder.plainRow (cyclomatic 22): SnapshotTextBuilder.plainRow has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"153f78b24da3a43762eee2c1baefd772784a150f3bee1fbbfa805d5b9e72c385"}},{"ruleId":"D1","level":"warning","message":{"text":"SnapshotTextBuilder.sameAttributes (cyclomatic 22): SnapshotTextBuilder.sameAttributes has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26a15c06bc007b55641c46f71f593a5dc6d4acf31196179ad7a101ec109e3da"}},{"ruleId":"D1","level":"warning","message":{"text":"CaretView.drawCursor (cyclomatic 22): CaretView.drawCursor has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/CaretView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbcba94d12b31f5c3e96008c8ba452949b8bf7d30ff5d7122f689a50cd0c8faf"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalView.accessibilityAttributedDisplayTextLocked (cyclomatic 22): TerminalView.accessibilityAttributedDisplayTextLocked has cyclomatic complexity 22 (threshold 15). Of this number, 20 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. This is NOT this file\u0027s highest cyclomatic complexity: TerminalView.kittyFunctionalKey (cyclomatic 75) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":4033}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd0986bc59de6135e7e5c78cd06da1e3e8ce85465e205c6a7095e38bd0e06c8"}},{"ruleId":"D1","level":"warning","message":{"text":"WasmGraphicsState.update (cyclomatic 22): WasmGraphicsState.update has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTermWebWasm/GraphicsExports.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9854586382307f9c7b8f531717d6358c9f9115cbd1bf02035f31f2bab955ab45"}},{"ruleId":"D1","level":"warning","message":{"text":"Attribute.sgrParameters (cyclomatic 21): Attribute.sgrParameters has cyclomatic complexity 21 (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/SwiftTerm/CharData.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c827082213de8cd8c46535890e625603738c7888e895cab1e30749e1879ba1"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.applyDECPrivateMode (cyclomatic 21): Terminal.applyDECPrivateMode has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":6092}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d193ad3b8a70d307c3ad7b490fc21078575aea4c4d528f23b9b645e745d8bca"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalKeyboardRouter.insertText (cyclomatic 21): TerminalKeyboardRouter.insertText has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21069e35e9047cd2e40c61316d80fdde8f555b009292b7c035e15b2e4ffad49"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalView.getAttributes (cyclomatic 21): TerminalView.getAttributes has cyclomatic complexity 21 (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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":2712}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e19f58ff1ca5920eccc5a2dee97b9fc7473a1c6eaf3ed5d2d324a44c4c0f729"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.startBaselineFromLaunchArguments (cyclomatic 21): ViewController.startBaselineFromLaunchArguments has cyclomatic complexity 21 (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":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d77d1a0a3225f10b5a1976240f1748815e12676682427e7a49206a9eca077e7"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyClipboardMetadata.parse (cyclomatic 20): KittyClipboardMetadata.parse 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/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54b006cb78e6f77eb62626ff68cb511ff12ce0cf4cf1f0ba147af6e51b9dc3a"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchEngine.match (cyclomatic 20): SearchEngine.match 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/SwiftTerm/SearchEngine.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"02601e574af12fdb60f6954080680ccaa47d26fa82c417f049d6115caefdb917"}},{"ruleId":"D1","level":"warning","message":{"text":"SixelDcsHandler.sizePixels (cyclomatic 20): SixelDcsHandler.sizePixels 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/SwiftTerm/SixelDcsHandler.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2e28bd1374e9db5afe9672123b62f54c224fbc3c56942bd572acb24a94d2f2"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.parseSemanticPromptOptions (cyclomatic 20): Terminal.parseSemanticPromptOptions has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":3588}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9e8847815144e549533a90b73e15a9f598cd8abe98482aeb776b8dd54c3d49"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.cmdEraseInDisplay (cyclomatic 20): Terminal.cmdEraseInDisplay has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":4839}}}],"partialFingerprints":{"codehealthFindingId/v1":"446fba138e76170796481bdbd5b31e554a77fe0aecd5bd70e0fb01096b5e9161"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.handleKittyAnimationControl (cyclomatic 20): Terminal.handleKittyAnimationControl has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b1d424b0f30e5af24b97a04fbe635a2bf27936fbc51de71f24a342481c5503"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.readKittyFileData (cyclomatic 20): Terminal.readKittyFileData has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"9145f5eca51cc71639909beeaf67fec69558e19d9b181ebb43fe775527952fa9"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.insertRasterImage (cyclomatic 20): Terminal.insertRasterImage has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Portable/TerminalRasterImage.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3455df349e58c71a18203ae757724b8085385cabeb4da99d30b608d3497e3c"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalView.insertImage (cyclomatic 20): TerminalView.insertImage has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":5105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b498ed66b954a7adbbb0be77adb75fbfd6bdc01471d18745e32f1e0f0aee4ce"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalView.forwardWheel (cyclomatic 20): TerminalView.forwardWheel 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. This is NOT this file\u0027s highest cyclomatic complexity: TerminalView.kittyFunctionalKey (cyclomatic 75) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0872a88bc1254688c80536d410611b9fe26a2ba81a4f67bea9cfd692331f76"}},{"ruleId":"D1","level":"warning","message":{"text":"Buffer.semanticPromptInvariantsHold (cyclomatic 19): Buffer.semanticPromptInvariantsHold 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/SwiftTerm/Buffer.swift"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc509da64c4ab33cc57c034cf62b29909ee3f95a3e80cad1ee9825157b1764b"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyClipboardProtocol.handleRead (cyclomatic 19): KittyClipboardProtocol.handleRead has cyclomatic complexity 19 (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/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc23e17ea158113cb6db47ef9b56d81d341dd9e29a7258b2f78fdb26e52dfe6"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyKeyboardEncoder.encodeCsiU (cyclomatic 19): KittyKeyboardEncoder.encodeCsiU 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. This is NOT this file\u0027s highest cyclomatic complexity: KittyKeyboardEncoder.functionalEncoding (cyclomatic 109) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da6aebd7e1789b2b41e441a443c1588599c1a77cb8c0ed3271c049fe7704958"}},{"ruleId":"D1","level":"warning","message":{"text":"ProgramStatusReport.decodeText (cyclomatic 19): ProgramStatusReport.decodeText has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/ProgramStatus.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7678a52690874e08725f4ee85a25fedf267550be3e3edd32e1292f87cbdc6bac"}},{"ruleId":"D1","level":"warning","message":{"text":"SixelDcsHandler.unhook (cyclomatic 19): SixelDcsHandler.unhook 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/SwiftTerm/SixelDcsHandler.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a87c40bac77d8141e5a4be6950a9ef18895eabc75c25b0ff5d78d04467baec"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.scanUserInputForSubmission (cyclomatic 19): Terminal.scanUserInputForSubmission 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/SwiftTerm/Terminal.swift"},"region":{"startLine":3164}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b32782ba0dc50e6ffb5f225eb87ea5c93babe443ed22e72f7c590fb6f555dd"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.handleSemanticPromptClick (cyclomatic 19): Terminal.handleSemanticPromptClick has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":3517}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef448dc1c2e291fc8260231102766ca8d19e67cb02e9f578a09a42b3726e6f4"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.cmdSendDeviceAttributes (cyclomatic 19): Terminal.cmdSendDeviceAttributes has cyclomatic complexity 19 (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/SwiftTerm/Terminal.swift"},"region":{"startLine":7496}}}],"partialFingerprints":{"codehealthFindingId/v1":"02634740de77d3b38c0fa1b481d3a1d3d4087e0056de520e6d8c869c64921ee7"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.scroll (cyclomatic 19): Terminal.scroll has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":8622}}}],"partialFingerprints":{"codehealthFindingId/v1":"66486be23e59a9aebc8829991277930cc546a521bb31bf01dc1835fd673f3173"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.resolveKittyPlacementOrigin (cyclomatic 19): Terminal.resolveKittyPlacementOrigin 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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5f074d2978de73f66ce1b60f83a548969e45a24429685456f8eced8e8e8fa0"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.kittyGraphicsRenderSnapshot (cyclomatic 19): Terminal.kittyGraphicsRenderSnapshot 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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":2596}}}],"partialFingerprints":{"codehealthFindingId/v1":"486b72f2089150f9519e7dc8c8bb91c0c498596fce6b6eed7ad4a81894a73832"}},{"ruleId":"D1","level":"warning","message":{"text":"UnicodeUtil.graphemeJoinNonEmojiModifier (cyclomatic 19): UnicodeUtil.graphemeJoinNonEmojiModifier 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/SwiftTerm/Utilities.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2bc5ce924fc832a771a6941fd37089a060f96f0e462435041af54219a924665"}},{"ruleId":"D1","level":"warning","message":{"text":"SnapshotTextBuilder.buildAttributes (cyclomatic 19): SnapshotTextBuilder.buildAttributes has cyclomatic complexity 19 (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/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56fedcd5a92a0a86e8c3cfce7e83b4530ed6fbf9f0564a42d8ed4b9f2df3af7"}},{"ruleId":"D1","level":"warning","message":{"text":"MetalTerminalRenderer.glyphEntry (cyclomatic 19): MetalTerminalRenderer.glyphEntry 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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":3083}}}],"partialFingerprints":{"codehealthFindingId/v1":"2286bc96c235e1759487b1b8e89cb64ebd569cdf5c975447716689ed95844bb7"}},{"ruleId":"D1","level":"warning","message":{"text":"InputExports.swift.terminalMouse (cyclomatic 19): InputExports.swift.terminalMouse 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/SwiftTermWebWasm/InputExports.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e3e9b76ad5259d58d64d578c0f0cd3451defb176f8736e30d47e89d3b12805"}},{"ruleId":"D1","level":"warning","message":{"text":"InputExports.swift.terminalKey (cyclomatic 19): InputExports.swift.terminalKey has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTermWebWasm/InputExports.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba94a9124eddf8e4de136ccffcaa053fb6660ecd894a24a1877fda303ef4b99f"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyFileTransfer.openFile (cyclomatic 19): KittyFileTransfer.openFile has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Sources/WebTerminalServer/KittyFileTransfer.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"71783648fd392d3ea4f05bc3f0388c568d2f5b8e50d302d5aa5f33d23ac01742"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalInputController.wheel (cyclomatic 19): TerminalInputController.wheel has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to one function literal inside it that branches (line 252). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/input.ts"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"7968853a1ed2ced13d03bd9a219e3d40e13396f9aa7242ea4882b4230cae55a4"}},{"ruleId":"D1","level":"warning","message":{"text":"Buffer.getLinesToRemove (cyclomatic 18): Buffer.getLinesToRemove 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/SwiftTerm/Buffer.swift"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cec3be024dee2b5b2bc186c6cf0cc96dd7e8b5c05af6e1328ebb3acce4c307"}},{"ruleId":"D1","level":"warning","message":{"text":"Buffer.insertScalarRun (cyclomatic 18): Buffer.insertScalarRun 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/SwiftTerm/Buffer.swift"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b988172eae9013311174c8b9b16853e3cd07c1d8f7a2b945eda523bc97f5677"}},{"ruleId":"D1","level":"warning","message":{"text":"Buffer.insertCharacter (cyclomatic 18): Buffer.insertCharacter 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/SwiftTerm/Buffer.swift"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"86dde9186a8038f35f51e6099d36be1297d1397743f9665db45b9ae7c1baa7cb"}},{"ruleId":"D1","level":"warning","message":{"text":"EscapeSequenceParser.simpleCsiLength (cyclomatic 18): EscapeSequenceParser.simpleCsiLength 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. This is NOT this file\u0027s highest cyclomatic complexity: EscapeSequenceParser.dispatchOsc (cyclomatic 24) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f09c0794e7d1b3adde08377b44a9777c053435baff8eaa27cd0da98987c35d"}},{"ruleId":"D1","level":"warning","message":{"text":"EscapeSequenceParser.appendOscBytes (cyclomatic 18): EscapeSequenceParser.appendOscBytes has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 3 function items inside it that branch (isProgramStatusOscAfterAppending, appendBytes, retainDroppedOscTail). 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. This is NOT this file\u0027s highest cyclomatic complexity: EscapeSequenceParser.dispatchOsc (cyclomatic 24) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"55743fb6d2d6574293ddb282718f5ab6a81fc9108960cf0431cb37fb6ef2eec8"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyClipboardProtocol.selectForRead (cyclomatic 18): KittyClipboardProtocol.selectForRead 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/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aec469ea9e15062d08abda134074d4673ab6a3d25354e2510fb5ef5efd1ff69"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyKeyboardEncoder.encodeFunctionalKey (cyclomatic 18): KittyKeyboardEncoder.encodeFunctionalKey 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. This is NOT this file\u0027s highest cyclomatic complexity: KittyKeyboardEncoder.functionalEncoding (cyclomatic 109) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"62505cb9655766b62dc18973baf98e2a433869183b39338e0b23b3ebad328143"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.insertPlainScalar (cyclomatic 18): Terminal.insertPlainScalar has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":2115}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9765f7ea7bd9c99d8f2ac802ff29385ce57270073c81be310e7053f49a32ba"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.handlePrintSlow::insertScalarBatch (cyclomatic 18): Terminal.handlePrintSlow::insertScalarBatch has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 2 other methods here (Terminal.handlePrintSlow, Terminal.handlePrintSlow::batchableScalar) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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/SwiftTerm/Terminal.swift"},"region":{"startLine":2342}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfeeff3a7749ee48913b56d3e183fe06a04c495c0b70ee4a7a8174f819d3354"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.decodePngToRgba (cyclomatic 18): Terminal.decodePngToRgba has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"01663b7a2d00f5ded50aeb2aefaf71b49337037c71f62c46e445e8377702fbd0"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalContentSnapshot.ansiRepresentation (cyclomatic 18): TerminalContentSnapshot.ansiRepresentation has cyclomatic complexity 18 (threshold 15). Of this number, 16 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/SwiftTerm/TerminalContentSnapshot.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aacb57d9b0bd41941105317be6a9a26fde733b508499a313489123d3b72e0db"}},{"ruleId":"D1","level":"warning","message":{"text":"PowerlineRenderer.path (cyclomatic 18): PowerlineRenderer.path has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: PowerlineRenderer.glyph (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/PowerlineRenderer.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ea3eb7891553550ff92194170195eef1de52aefb42398b8a8254a3a972b7e9"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalView.validateUserInterfaceItem (cyclomatic 18): TerminalView.validateUserInterfaceItem has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: TerminalView.windowCommand (cyclomatic 30) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":2635}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b41c62c112fc82301491faf01ebea9de6c9880532a8c5aa8592c575c5f969f"}},{"ruleId":"D1","level":"warning","message":{"text":"MetalTerminalRenderer.preparePlainRow (cyclomatic 18): MetalTerminalRenderer.preparePlainRow 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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b90933452805c34ec6c4c2867aeef544d0df7a60ae7834ab8902929bb29d3bd"}},{"ruleId":"D1","level":"warning","message":{"text":"Table.canChange (cyclomatic 18): Table.canChange 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/SwiftTerm/Apple/Metal/PlainTextFont.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"425d740f8dc76bc8620c8eb6741df74c2a6a7d79d713d23b5df1c745004985e5"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalInputController.pointerMove (cyclomatic 18): TerminalInputController.pointerMove has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 186). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/input.ts"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4c6bdeeda2f92eb1aa741da9ce56ce2f6879cc68af70dedd7fc0c5ce25a460"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyClipboardProtocol.commitWrite (cyclomatic 17): KittyClipboardProtocol.commitWrite 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/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b43190729705c006ad136fe25351ad2cdc25b54c2b6a1e4c76a091b2e2170f0"}},{"ruleId":"D1","level":"warning","message":{"text":"PseudoTerminalHelpers.fork (cyclomatic 17): PseudoTerminalHelpers.fork 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/SwiftTerm/Pty.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1a8cc9647906d18567f3464441c29dd9fb73a5767eebe274e93c5c996ea5ed"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.handleKittyKeyboardProtocol (cyclomatic 17): Terminal.handleKittyKeyboardProtocol has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d0088be2d1f68f7457e85e4f9f4513c45d5c09a3f1e29235600bd5ef5375ac"}},{"ruleId":"D1","level":"warning","message":{"text":"SnapshotTextBuilder.plainStyle (cyclomatic 17): SnapshotTextBuilder.plainStyle 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/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c87e206e59cd43caa82f2021e3aab678f1e223cbf66dad347457f0fb6f4d27"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalAccessory.setupUI (cyclomatic 17): TerminalAccessory.setupUI has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSAccessoryView.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"53799c7868bcd5367d6adb862e0c7888ebcfa73251a7babfca76b1ab68809725"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalView.panSelectionHandler (cyclomatic 17): TerminalView.panSelectionHandler has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs 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. This is NOT this file\u0027s highest cyclomatic complexity: TerminalView.kittyFunctionalKey (cyclomatic 75) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"481eeb79f4b01a244083648b3b0f4caeb3e5c1a9b874f213bc74c99465c6150e"}},{"ruleId":"D1","level":"warning","message":{"text":"WasmRuntime.constructor (cyclomatic 17): WasmRuntime.constructor 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":"Web/src/loader.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"079f8563427db62177939f4d7bffeaccadb3fa4c01b4ad7073caba2eb6992042"}},{"ruleId":"D1","level":"warning","message":{"text":"Buffer.semanticRowKind (cyclomatic 16): Buffer.semanticRowKind 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/SwiftTerm/Buffer.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"8755c32fc90cfc22ead9bf33729b0e4979ad1179258c51cb19b4443210c7bda0"}},{"ruleId":"D1","level":"warning","message":{"text":"KittyClipboardBase64Decoder.append (cyclomatic 16): KittyClipboardBase64Decoder.append 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/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"61667ef01f9c41d7c13ad645305cffe9c8981896ab9c126c67eff3695c527788"}},{"ruleId":"D1","level":"warning","message":{"text":"SixelDcsHandler.readPixels (cyclomatic 16): SixelDcsHandler.readPixels has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/SixelDcsHandler.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"762600d7f7520f8107160b0f7249243f84aba1192495d44c2c1650fdc437bb53"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.decompressZlib (cyclomatic 16): Terminal.decompressZlib 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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be031469ab9bb2f08bee20d0b75cb9f1d7d79b8debc7586968a1b401bc8113f"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalRenderOwner.prepareFrame (cyclomatic 16): TerminalRenderOwner.prepareFrame 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/SwiftTerm/Apple/TerminalRenderOwner.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"625874c53beec2a4650d216857e95406abc27ecbf2b6f68e11e4274bfa7c6fee"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalView.singleTap (cyclomatic 16): TerminalView.singleTap 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. This is NOT this file\u0027s highest cyclomatic complexity: TerminalView.kittyFunctionalKey (cyclomatic 75) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ab74521df73e4044d4e7ce2f6a5a8b439e2a2dbfdcee257e7cbec46f748f45"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerConfiguration.init (cyclomatic 16): ServerConfiguration.init 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":"TerminalApp/WebTerminal/Sources/WebTerminalServer/ServerConfiguration.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b9de2840aa0c33e7e7b4f12cc5bca1c6796f9432bdb389b32d884ef5f4d207"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.runMetalToggleScenario (cyclomatic 16): ViewController.runMetalToggleScenario has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"414f6fa6b22f461d93c0e97d5f52e2dc408a7939d015aec78dde47845edb2d72"}},{"ruleId":"D1","level":"warning","message":{"text":"ClipboardController.accept (cyclomatic 16): ClipboardController.accept has cyclomatic complexity 16 (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":"TerminalApp/WebTerminal/Public/clipboard.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b523d4e59950c00c9c26c544e1d76881fdb1c63249bbbf8e21089210efa330"}},{"ruleId":"D1","level":"warning","message":{"text":"show (cyclomatic 16): show has cyclomatic complexity 16 (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":"TerminalApp/WebTerminal/Public/clipboard.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6652d959f6b7876a69f2c6068ed6f51cfb4786666d15644b87913c96bff1653"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreGraphicsPaintHost.drawTerminalContents (cognitive 240): CoreGraphicsPaintHost.drawTerminalContents has cognitive complexity 240 (threshold 15). Drivers by points: if/else 56 (146 pts), loops 15 (42 pts), ternaries 6 (27 pts), boolean chains 21, match/switch 2 (4 pts) (nesting depth added 140). Of this number, 220 points are the body\u0027s own statements and 20 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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ecea76ac284d74230ed1b0ca4708ea78287263bd9f96bdd58f24fa5c579f97"}},{"ruleId":"D2","level":"warning","message":{"text":"EscapeSequenceParser.parseBorrowed (cognitive 230): EscapeSequenceParser.parseBorrowed has cognitive complexity 230 (threshold 15). Drivers by points: if/else 61 (154 pts), ternaries 10 (37 pts), boolean chains 27, loops 4 (6 pts), match/switch 2 (6 pts) (nesting depth added 126). Of this number, 225 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0044ddff5e1aa2ccf9e76e19838c5a72302c1fe9b5d8f6378c5edac56faa6ab3"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.pressesBegan (cognitive 183): TerminalView.pressesBegan has cognitive complexity 183 (threshold 15). Drivers by points: if/else 53 (130 pts), boolean chains 25, ternaries 7 (23 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 95). 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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":3239}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e67779cd1b00716fd18c0f5b10ecb463074f2f564931eb03351bcbeea35fa8d"}},{"ruleId":"D2","level":"warning","message":{"text":"MetalTerminalRenderer.prepareRow (cognitive 154): MetalTerminalRenderer.prepareRow has cognitive complexity 154 (threshold 15). Drivers by points: if/else 27 (74 pts), ternaries 8 (41 pts), loops 11 (24 pts), boolean chains 15 (nesting depth added 93). Of this number, 151 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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1923}}}],"partialFingerprints":{"codehealthFindingId/v1":"9609fe446312655ad6971fa26c9abbe425a8605838fe99fe2d96493aac5d37f6"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalKeyboardRouter.keyDown (cognitive 141): TerminalKeyboardRouter.keyDown has cognitive complexity 141 (threshold 15). Drivers by points: if/else 42 (75 pts), boolean chains 38, match/switch 4 (14 pts), ternaries 6 (14 pts) (nesting depth added 51). 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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"8397068c736f559bbc64cab05a3b72b97272825ca1b4ad275ace69ce3484d208"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.handlePrintSlow (cognitive 132): Terminal.handlePrintSlow has cognitive complexity 132 (threshold 15). Drivers by points: if/else 65 (144 pts), boolean chains 34, ternaries 8 (18 pts), loops 5 (8 pts) (nesting depth added 92). 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. This shape REPEATS in the file: 2 other methods here (Terminal.handlePrintSlow::batchableScalar, Terminal.handlePrintSlow::insertScalarBatch) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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/SwiftTerm/Terminal.swift"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f60cd5f08ec429bbe9459cbb505d852f2d729135b792235fec856c6c97d9c4"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalIOPipelineWorker.gatherMain (cognitive 127): TerminalIOPipelineWorker.gatherMain has cognitive complexity 127 (threshold 15). Drivers by points: if/else 30 (106 pts), match/switch 3 (9 pts), loops 4 (7 pts), boolean chains 5 (nesting depth added 85). 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/SwiftTerm/TerminalIOPipeline.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdd91be40af42f78219c41dac62834eb9654c3b75dd509a108d783dfc0867b2"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotTextBuilder.buildAttributedString (cognitive 126): SnapshotTextBuilder.buildAttributedString has cognitive complexity 126 (threshold 15). Drivers by points: if/else 38 (86 pts), boolean chains 36, ternaries 1 (3 pts), loops 1 (nesting depth added 50). Of this number, 124 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"809dc456be3fcbaef17496a7dd3ebf2aee954a322e51d98ab2d9ea74678a6faf"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.cmdDecRqm (cognitive 106): Terminal.cmdDecRqm has cognitive complexity 106 (threshold 15). Drivers by points: ternaries 31 (93 pts), if/else 8, match/switch 2 (4 pts), boolean chains 1 (nesting depth added 64). 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/SwiftTerm/Terminal.swift"},"region":{"startLine":6181}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa673f83deabf41307cb379b52e733ee3a7e8e97504eac826a33122a9e8d5689"}},{"ruleId":"D2","level":"warning","message":{"text":"MetalTerminalRenderer.placeRow (cognitive 102): MetalTerminalRenderer.placeRow has cognitive complexity 102 (threshold 15). Drivers by points: if/else 25 (62 pts), loops 10 (16 pts), boolean chains 12, match/switch 4 (6 pts), ternaries 2 (6 pts) (nesting depth added 49). Of this number, 101 points are the body\u0027s own statements and 1 belongs 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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":2481}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b523a5630b76041b820b2c6901430c5e19688527782a109280d5d0d6588550"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalKeyboardRouter.doCommand (cognitive 86): TerminalKeyboardRouter.doCommand has cognitive complexity 86 (threshold 15). Drivers by points: if/else 32 (72 pts), ternaries 5 (10 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0af9c877b83e256dcb6f4d7f8cf66dd849d39dff100d733b655dab52dbd652"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalSnapshot.refresh (cognitive 76): TerminalSnapshot.refresh has cognitive complexity 76 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 23, loops 7 (12 pts), match/switch 1 (5 pts), ternaries 3 (5 pts) (nesting depth added 25). Of this number, 73 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/SwiftTerm/Apple/TerminalSnapshot.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee750a8920ea61641be52f23f9c94a7af512c848607bdc2e7d366c749921362"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.csiCopyRectangularArea (cognitive 73): Terminal.csiCopyRectangularArea has cognitive complexity 73 (threshold 15). Drivers by points: ternaries 10 (24 pts), if/else 6 (21 pts), loops 4 (18 pts), boolean chains 10 (nesting depth added 43). 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/SwiftTerm/Terminal.swift"},"region":{"startLine":5244}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0d0cb14d5dcb60ca2d6136ffec149b2542f02405724d02ffda3856496c621b"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.makeRenderSnapshot (cognitive 73): Terminal.makeRenderSnapshot has cognitive complexity 73 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 20, ternaries 5 (16 pts), loops 3 (7 pts), match/switch 1 (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/SwiftTerm/Terminal.swift"},"region":{"startLine":8214}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeec6ca506244ed17f83a69b34550682b5e516478df0dfeb5b58588cb92b76ab"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.parseKittyGraphicsControl (cognitive 69): Terminal.parseKittyGraphicsControl has cognitive complexity 69 (threshold 15). Drivers by points: if/else 18 (42 pts), boolean chains 21, ternaries 4 (5 pts), loops 1 (nesting depth added 25). Of this number, 57 points are the body\u0027s own statements and 12 belong to 3 function items inside it that branch. 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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f09f0dd52cb5607bc6567012d1211fb0928fbd46736c16e63f7d2d9ad6f83fc"}},{"ruleId":"D2","level":"warning","message":{"text":"Buffer.resize (cognitive 68): Buffer.resize has cognitive complexity 68 (threshold 15). Drivers by points: if/else 22 (50 pts), loops 6 (16 pts), boolean chains 1, ternaries 1 (nesting depth added 38). 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/SwiftTerm/Buffer.swift"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c2a021aadd6f19c14bd1874415b6bca7e823d6840695a25599b0b0886a2d4a"}},{"ruleId":"D2","level":"warning","message":{"text":"Buffer.reflowNarrower (cognitive 68): Buffer.reflowNarrower has cognitive complexity 68 (threshold 15). Drivers by points: if/else 18 (46 pts), loops 8 (16 pts), boolean chains 6 (nesting depth added 36). 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/SwiftTerm/Buffer.swift"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccac8ad539ec0470b65e2b7d94a50a4061aaac45f9e7e4b1984cf732e547aa6"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyKeyboardEncoder.encode (cognitive 64): KittyKeyboardEncoder.encode has cognitive complexity 64 (threshold 15). Drivers by points: boolean chains 32, if/else 16 (28 pts), match/switch 2 (4 pts) (nesting depth added 14). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bc9fa3a1f5a95ceaa41f846abbfee97bf4ffa5c713581e937231fb9c5ad5ef"}},{"ruleId":"D2","level":"warning","message":{"text":"BoxDrawingRenderer.swift.linesChar (cognitive 64): BoxDrawingRenderer.swift.linesChar has cognitive complexity 64 (threshold 15). Drivers by points: if/else 24 (28 pts), boolean chains 16, ternaries 8 (16 pts), match/switch 4 (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/SwiftTerm/Apple/BoxDrawingRenderer.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec968431b9d6d358765ad5b9ca74b7c0356c44818b5c6d3e47f07b027f92bb6"}},{"ruleId":"D2","level":"warning","message":{"text":"ProgramStatusReport.parse (cognitive 59): ProgramStatusReport.parse has cognitive complexity 59 (threshold 15). Drivers by points: if/else 17 (36 pts), boolean chains 10, ternaries 4 (8 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 25). 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/SwiftTerm/ProgramStatus.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"820e22108e2ab3131c9cabc1480cfad770c47c456a436369f604d4fdafb55aba"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalSnapshot.refresh (cognitive 59): TerminalSnapshot.refresh has cognitive complexity 59 (threshold 15). Drivers by points: if/else 18 (29 pts), boolean chains 18, loops 4 (6 pts), match/switch 1 (4 pts), ternaries 1 (2 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/SwiftTerm/Apple/TerminalSnapshot.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f5130dfc3503321d77516321238566492cb3dcf4231079a2faf5d8eec347b0"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyFileTransfer.convert (cognitive 58): KittyFileTransfer.convert has cognitive complexity 58 (threshold 15). Drivers by points: boolean chains 24, if/else 12 (24 pts), loops 4 (6 pts), ternaries 2 (4 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":"TerminalApp/WebTerminal/Sources/WebTerminalServer/KittyFileTransfer.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f117b9bc47a4f75b011e563dce8744f7c2c7addef40aac6317eca080fb64bf48"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.validateUserInterfaceItem (cognitive 58): ViewController.validateUserInterfaceItem has cognitive complexity 58 (threshold 15). Drivers by points: if/else 21 (31 pts), ternaries 9 (27 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":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c10016794b1e4a17cf886527bb3d2972785232bc3ae251833a06ea0a6301842"}},{"ruleId":"D2","level":"warning","message":{"text":"MetalTerminalRenderer.buildCursorDrawData (cognitive 55): MetalTerminalRenderer.buildCursorDrawData has cognitive complexity 55 (threshold 15). Drivers by points: if/else 14 (24 pts), ternaries 6 (12 pts), boolean chains 8, match/switch 3 (8 pts), loops 2 (3 pts) (nesting depth added 22). 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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":3934}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a4aa543d645cf03e2bead1ccf36e87e0fc86ac9e2b1e72f5dbedab0588f856"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotEncoder.encode (cognitive 55): SnapshotEncoder.encode has cognitive complexity 55 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 13, ternaries 4 (7 pts), loops 4 (6 pts), match/switch 2 (5 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTermWebWasm/SnapshotEncoder.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10c2afca5d5d930938ac03e9c4dcfbe451fc94ac3a0d58eaf47c0b7caba2e1d"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalBidi.shapeArabic (cognitive 52): TerminalBidi.shapeArabic has cognitive complexity 52 (threshold 15). Drivers by points: boolean chains 18, if/else 10 (17 pts), loops 5 (11 pts), ternaries 2 (6 pts) (nesting depth added 17). Of this number, 43 points are the body\u0027s own statements and 9 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/TerminalBidi.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca555c65338b2c21c88ce8fb6e2eb80e2844127ee47e886baadab6581d17f7d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClipboardController.run (cognitive 51): ClipboardController.run has cognitive complexity 51 (threshold 15). Drivers by points: if/else 17 (28 pts), ternaries 4 (14 pts), loops 2 (5 pts), boolean chains 3, error handling 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/clipboard.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea27880395976a71cf1b0be40c11ab97433c8164cc2d97674848158f9bfaeb0f"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalBidi.buildParagraph (cognitive 50): TerminalBidi.buildParagraph has cognitive complexity 50 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 7 (15 pts), boolean chains 11, ternaries 1 (nesting depth added 20). Of this number, 40 points are the body\u0027s own statements and 10 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/SwiftTerm/Apple/TerminalBidi.swift"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f64963a50bbbc1950877c799c2412d0da16d339e09ff14bed787d766a4c47cd"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.scrollWheel (cognitive 50): TerminalView.scrollWheel has cognitive complexity 50 (threshold 15). Drivers by points: if/else 20 (27 pts), ternaries 7 (16 pts), loops 2 (4 pts), boolean chains 3 (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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":3731}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad29cce6824e904253958e4868e18c6b19c58d6463eda20fdc3c03573f85398"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.scrollGeneral (cognitive 47): Terminal.scrollGeneral has cognitive complexity 47 (threshold 15). Drivers by points: if/else 20 (33 pts), boolean chains 6, ternaries 2 (6 pts), loops 1 (2 pts) (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/SwiftTerm/Terminal.swift"},"region":{"startLine":8682}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9e0a8d4ef4f11de0af7912c20b438c294fb316836d2fa2e369e5059e588abf"}},{"ruleId":"D2","level":"warning","message":{"text":"snapshot.decodeSnapshot (cognitive 47): snapshot.decodeSnapshot has cognitive complexity 47 (threshold 15). Drivers by points: boolean chains 21, if/else 14 (19 pts), error handling 1 (4 pts), loops 2 (3 pts) (nesting depth added 9). Of this number, 40 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/snapshot.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7eff0a0c38020301efc74e471b9d4528c179987191b3f9a1abebb691499f75f"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.kittyGraphicsAdvanceAnimations (cognitive 46): Terminal.kittyGraphicsAdvanceAnimations has cognitive complexity 46 (threshold 15). Drivers by points: if/else 12 (33 pts), boolean chains 9, loops 2 (4 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":2485}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7ad1d8af2aa0ed6d678d06b078d85aefa237478c80179adb8eba1cc07e20bc"}},{"ruleId":"D2","level":"warning","message":{"text":"Table.canChange (cognitive 46): Table.canChange has cognitive complexity 46 (threshold 15). Drivers by points: if/else 7 (22 pts), loops 8 (22 pts), boolean chains 1, error handling 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/PlainTextFont.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bc0df3cf156a86a4c6ee8454c7c07864a2633c44b5117fc659c8f984cb6751"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyFileTransfer.receive (cognitive 44): KittyFileTransfer.receive has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 10, match/switch 1 (2 pts), loops 1 (nesting depth added 16). Of this number, 43 points are the body\u0027s own statements and 1 belongs 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":"TerminalApp/WebTerminal/Sources/WebTerminalServer/KittyFileTransfer.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fd5c0440d2dde3dc415849dcaddd66ef2630f788a02514bbd59cb8ad1e7099"}},{"ruleId":"D2","level":"warning","message":{"text":"events.decodeEvent (cognitive 44): events.decodeEvent has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 12, error handling 2 (3 pts), ternaries 2 (3 pts), match/switch 1 (nesting depth added 13). Of this number, 38 points are the body\u0027s own statements and 6 belong to 4 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":"Web/src/events.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf106d076c4ea3b9e16f43a5b6935ca846a62f448bd0a60cc1f203df13de4d0"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.osciTerm2 (cognitive 43): Terminal.osciTerm2 has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 12, ternaries 1 (2 pts), loops 1, match/switch 1 (nesting depth added 10). Of this number, 19 points are the body\u0027s own statements and 24 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":4197}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5601429c1be9af7abb2f20e6623e68f78e1e3029bd08deceab67bb6661b4f5"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.implicitLinkMatch (cognitive 43): Terminal.implicitLinkMatch has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 12, loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":9832}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f60c0e1e7af2bbc3777054bfb18c93302c993849d3111e19e6e12220c13b575"}},{"ruleId":"D2","level":"warning","message":{"text":"MetalTerminalRenderer.buildDrawDataPass (cognitive 41): MetalTerminalRenderer.buildDrawDataPass has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 3 (8 pts), ternaries 2 (6 pts), boolean chains 4, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba8d88669c1fd1dc555bacbaa2d749ec5c845fefa3d75248afb140401a7ce2c"}},{"ruleId":"D2","level":"warning","message":{"text":"BufferLine.copyFrom (cognitive 40): BufferLine.copyFrom has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 15, loops 1 (2 pts), ternaries 1 (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/SwiftTerm/BufferLine.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf6fd2fbbb3a5851d688ff6b19b27ef5506a876c9bc128f4aa5c6b89a9fcca1"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalContentSnapshot.exportPieces (cognitive 40): TerminalContentSnapshot.exportPieces has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 13, loops 3 (6 pts), ternaries 1 (3 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/SwiftTerm/TerminalContentSnapshot.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb921715e5ed4a1ea122faaed7222320675e72a2e31f768004829bee7bbf0d2"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionService.urlRange (cognitive 39): SelectionService.urlRange has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 17, if/else 6 (12 pts), loops 6 (10 pts) (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/SwiftTerm/SelectionService.swift"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b882996461381415d54180270562af7ae3318b6542961759432edb21c29a64"}},{"ruleId":"D2","level":"warning","message":{"text":"SixelDcsHandler.sizePixels (cognitive 39): SixelDcsHandler.sizePixels has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (30 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/SixelDcsHandler.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"5392c0a5933d6d0cf613054d37a42abe83f954b24e146a4de26cbfc62984fa6d"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.buildGhosttyImplicitLineMap (cognitive 39): Terminal.buildGhosttyImplicitLineMap has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 13, loops 4 (5 pts), ternaries 1 (2 pts) (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/SwiftTerm/Terminal.swift"},"region":{"startLine":10071}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea1f44604061565e3b60e73c2a7c5372d2a1e43beadb72e7277abf2735b4896"}},{"ruleId":"D2","level":"warning","message":{"text":"MetalTerminalRenderer.render (cognitive 39): MetalTerminalRenderer.render has cognitive complexity 39 (threshold 15). Drivers by points: if/else 30 (34 pts), boolean chains 4, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fec94862832127ca8d95dec37ef91f01ab18638cf1c2614f3995e5a9c029eeb"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyClipboardBase64Decoder.append (cognitive 38): KittyClipboardBase64Decoder.append has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (33 pts), match/switch 1 (4 pts), loops 1 (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/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"936c5c5777b41f096172ffb0a4c754325c109b083c6ff7deb22b841c2a7c5104"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionService.selectedColumns (cognitive 38): SelectionService.selectedColumns has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (21 pts), ternaries 4 (11 pts), boolean chains 6 (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/SwiftTerm/SelectionService.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3a2d7e42c23c6ba509799c7c6d17b7a63cc76fb533d25c05b900f86aaa2d21"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.handleKittyAnimationFrame (cognitive 38): Terminal.handleKittyAnimationFrame has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (20 pts), ternaries 5 (10 pts), boolean chains 5, loops 1 (3 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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"084ad25108ab9a97d52c8d17afcbff6eef209a4d547af506238e424dae2c1c1c"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalBidi.computeVisualOrder (cognitive 38): TerminalBidi.computeVisualOrder has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 2 (8 pts), loops 5 (7 pts), boolean chains 4 (nesting depth added 15). Of this number, 30 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/TerminalBidi.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6296b7b6815f412071b573101edb67d39a2cd081620311927682b30c51d547"}},{"ruleId":"D2","level":"warning","message":{"text":"Buffer.getLinesToRemove (cognitive 37): Buffer.getLinesToRemove has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (26 pts), loops 4 (7 pts), boolean chains 4 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Buffer.swift"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2e7c48418b4861a8cffef5004aa985495abae482d90fe8d662853008da9d2b"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.scanUserInputForSubmission (cognitive 37): Terminal.scanUserInputForSubmission has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (33 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 20). 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/SwiftTerm/Terminal.swift"},"region":{"startLine":3164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cec4d4ae8216b2263c57d860f3d5e0e20f591d61ba66ce3e029eb672e7d8637"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreGraphicsPaintHost.drawRunAttributes (cognitive 37): CoreGraphicsPaintHost.drawRunAttributes has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 3 (6 pts), match/switch 2 (5 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 18). Of this number, 19 points are the body\u0027s own statements and 18 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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3147}}}],"partialFingerprints":{"codehealthFindingId/v1":"563bfa0585cb13fabb9c514da30ccffdb769cc42fdd1cad64b53324147fe33bf"}},{"ruleId":"D2","level":"warning","message":{"text":"Buffer.semanticPromptInvariantsHold (cognitive 36): Buffer.semanticPromptInvariantsHold has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 4 (7 pts), boolean chains 4 (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/SwiftTerm/Buffer.swift"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf3e1c46f4d5a5cb4475abf9ce35966e8966184056465bbae7a298d478c7175"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.displayKittyImage (cognitive 36): Terminal.displayKittyImage has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 12, ternaries 4 (6 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b7b6a3a7f10a7b1b9655c0b0e774c4fe6fc9cdf9b82a7b79470264239e036e"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.visibleKittyPlaceholderPlacements (cognitive 35): Terminal.visibleKittyPlaceholderPlacements has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 10, loops 2 (3 pts), ternaries 1 (3 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/SwiftTerm/Portable/TerminalKittyPlaceholders.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb4ee95d12888a96aa56e7f48b4e005b6f413d72ca348a774eaf2189523e1b8"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.sendKittyTextInput (cognitive 35): TerminalView.sendKittyTextInput has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 10, ternaries 1 (2 pts) (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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":2845}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90fc523e5e685cecb8536a3fe93014c25c138402b019863734cfada43194ed0"}},{"ruleId":"D2","level":"warning","message":{"text":"MetalTerminalRenderer.preparePlainRow (cognitive 35): MetalTerminalRenderer.preparePlainRow has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 3 (9 pts), loops 4 (5 pts), boolean chains 2 (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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fdc5b2444ca9ca89d3e51b3a6b3d2665d9fbf07a47b4c7f0736779a17db36a"}},{"ruleId":"D2","level":"warning","message":{"text":"connect (cognitive 35): connect has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 7, ternaries 2 (4 pts), error handling 3, other 1 (nesting depth added 6). Most of this is not in the body itself: 7 of the 35 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 117, shortcut, a function literal at line 139, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/app.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d3a2256f0b6a4f9310dccbde52bed51876162aaf2daab4b09e674ff16d3368"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyPlaceholderDecoder.decode (cognitive 34): KittyPlaceholderDecoder.decode has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 15, if/else 11 (15 pts), match/switch 2 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyPlaceholder.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e3435a557699e936ece8f47ca1e5bc9957aab504c1d9818a24b9a9e10f70f6"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.oscSemanticPrompt (cognitive 34): Terminal.oscSemanticPrompt has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 6, match/switch 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/SwiftTerm/Terminal.swift"},"region":{"startLine":3641}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c8c2e71db33489c72ad8fd1864c40f629a5a47fb132aece42952791cc7dcba"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.reverseIndex (cognitive 34): Terminal.reverseIndex has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 2 (8 pts), boolean chains 4, loops 1 (4 pts) (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/SwiftTerm/Terminal.swift"},"region":{"startLine":9521}}}],"partialFingerprints":{"codehealthFindingId/v1":"017e23c8f3a4e495a4548067cdc280987fb167900c53474e5ea38cf59105cbba"}},{"ruleId":"D2","level":"warning","message":{"text":"Buffer.reflowWider (cognitive 33): Buffer.reflowWider has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 4 (8 pts) (nesting depth added 20). 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/SwiftTerm/Buffer.swift"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"10038a02585548c03ac3a7da5cbd5e5e0257816513cd81f1384814370d60d07e"}},{"ruleId":"D2","level":"warning","message":{"text":"EscapeSequenceParser.dispatchCsi (cognitive 33): EscapeSequenceParser.dispatchCsi has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (31 pts), boolean chains 1, 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/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b56338bf2e9a0c1179be3fc1e9e04c8e732694d1c34ad2332da02a8ae93975d"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotTextBuilder.plainRow (cognitive 33): SnapshotTextBuilder.plainRow has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 10, ternaries 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52376f068d0737deedd309320e0b930c98e642bc92d4e0183bf3f86d769c5fb"}},{"ruleId":"D2","level":"warning","message":{"text":"CaretView.drawCursor (cognitive 33): CaretView.drawCursor has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 6, ternaries 1 (5 pts), loops 2 (4 pts), match/switch 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/SwiftTerm/Apple/CaretView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac8e678ea9941892fec977a6acaf9a9e78761d2a336449d46436593a7d22b74"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalInputController.pointerDown (cognitive 33): TerminalInputController.pointerDown has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (16 pts), ternaries 4 (9 pts), boolean chains 7, error handling 1 (nesting depth added 8). None of this is in the body itself: all 33 points belong to one function literal inside it that branches (line 149). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/input.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5436cf20ef0d135108acc74ea2a8b5213db268e7f7593ef66e61c41c3d9b67"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalInputController.wheel (cognitive 33): TerminalInputController.wheel has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 8 (18 pts), if/else 7 (8 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 14). None of this is in the body itself: all 33 points belong to one function literal inside it that branches (line 252). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/input.ts"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfc60f0d5656f2f08e106532c22bfe2f8d9217f1193a684d560327180de927c"}},{"ruleId":"D2","level":"warning","message":{"text":"Buffer.insertScalarRun (cognitive 32): Buffer.insertScalarRun has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4, loops 2 (4 pts), ternaries 3 (4 pts) (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/SwiftTerm/Buffer.swift"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a87bc341704153be7ff192eee09091dca0e69f6598d5ad27d202db4c3feba4"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.decodeKittyPayloadDetailed (cognitive 32): Terminal.decodeKittyPayloadDetailed has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 8, ternaries 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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"268fb4983fc42830d012d1fc294334a71d9e7d7955d81f3a4619549698ca445b"}},{"ruleId":"D2","level":"warning","message":{"text":"Buffer.semanticRowKind (cognitive 31): Buffer.semanticRowKind has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (20 pts), ternaries 2 (8 pts), boolean chains 2, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Buffer.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be8695073f4220c57431805ff1316d76cc547e6fb2b77961edde4708c837324"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.handlePrintSlow::batchableScalar (cognitive 31): Terminal.handlePrintSlow::batchableScalar has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 11, ternaries 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (Terminal.handlePrintSlow, Terminal.handlePrintSlow::insertScalarBatch) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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/SwiftTerm/Terminal.swift"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"754444134207c328a365a08202767b463f897198e66eb48501f7667ee1ced9f8"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.kittyGraphicsRenderSnapshot (cognitive 31): Terminal.kittyGraphicsRenderSnapshot has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 5, ternaries 2 (4 pts), loops 2, 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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":2596}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae555ef15803fb267c5064195792084decc6d4fea6c5c19434d0aed3207c6f0"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.panSelectionHandler (cognitive 31): TerminalView.panSelectionHandler has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 2, match/switch 1 (nesting depth added 15). Of this number, 30 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd576334c86edb42f60df49410abe025f204ea902a9b16f3b4a229c31578294"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalContentSnapshot.ansiRepresentation (cognitive 30): TerminalContentSnapshot.ansiRepresentation has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 3 (5 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 14). Of this number, 28 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/SwiftTerm/TerminalContentSnapshot.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fe19c10bd11b6cf1e808b95e81de25005b4a1857771f8c99b9eaa363a3c7d8"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.accessibilityAttributedDisplayTextLocked (cognitive 30): TerminalView.accessibilityAttributedDisplayTextLocked has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 3, boolean chains 2, ternaries 1 (2 pts), match/switch 1 (nesting depth added 10). Of this number, 28 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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":4033}}}],"partialFingerprints":{"codehealthFindingId/v1":"8416547358663a4ac8533439a9e9ecc27f72516f8c346024468d3c7a2553fb9d"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalSession.run (cognitive 30): TerminalSession.run has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (17 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 2, error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Sources/WebTerminalServer/TerminalSession.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"209d0d491e87f268e00e6e74580e366f3c3cc177390a6ba265b63208e61fcb9e"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionService.adjustForInPlaceScroll (cognitive 29): SelectionService.adjustForInPlaceScroll has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 10, ternaries 1 (nesting depth added 3). Of this number, 25 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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/SwiftTerm/SelectionService.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6bf5dd1daf7af9dccd22e0618cc22ed3ae719298b981ceabcd29cc109654cd"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.cmdWindowOptions (cognitive 29): Terminal.cmdWindowOptions has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (28 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":5597}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a01032461954a32da410f9949ad63f50131a573efee4e4a1f44992d08e50051"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.getAttributes (cognitive 29): TerminalView.getAttributes has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 6). 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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":2712}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a256d6b5d6c15a13878acfcbe9d42f100726a93b5151d8c1684fa55d416e9a"}},{"ruleId":"D2","level":"warning","message":{"text":"WasmGraphicsState.update (cognitive 29): WasmGraphicsState.update has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 7 (8 pts), ternaries 3 (6 pts), boolean chains 5 (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/SwiftTermWebWasm/GraphicsExports.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"53823df88b713222a772ebdb4ffef6c56488e78c2482a5d2fd4391e03f2c05eb"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyKeyboardEncoder.encodeCsiU (cognitive 28): KittyKeyboardEncoder.encodeCsiU has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 5, match/switch 1 (2 pts), ternaries 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/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf5f5905e71e37b312089297d2bc7accc47edd41fabbd6931be89ebbdc09000"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchEngine.match (cognitive 28): SearchEngine.match has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 7, loops 2 (3 pts), ternaries 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/SwiftTerm/SearchEngine.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c15a2b24cfd10fc02122da427d7d6068348e928aeacb5f8d2ca44b08c4226f"}},{"ruleId":"D2","level":"warning","message":{"text":"SixelDcsHandler.unhook (cognitive 28): SixelDcsHandler.unhook has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 5, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/SixelDcsHandler.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef826a625937c9595931126720931f3c29584404d28d1681350d096bf5d0a2aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.cmdEraseInDisplay (cognitive 28): Terminal.cmdEraseInDisplay has cognitive complexity 28 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 5 (7 pts), boolean chains 4, match/switch 2 (3 pts), ternaries 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":4839}}}],"partialFingerprints":{"codehealthFindingId/v1":"451494cb47416439d7bbc7bd650bc8da3dcb3fb94ca6de9c1d0da8c0d0401bf6"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.sendHostMouse (cognitive 28): Terminal.sendHostMouse has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (11 pts), ternaries 2 (3 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":9464}}}],"partialFingerprints":{"codehealthFindingId/v1":"c699b14111497704460a408f38ca4069fff64c437d17a3bb6ce19f7bec7e7f7b"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.handleKittyDelete (cognitive 27): Terminal.handleKittyDelete has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 8, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"675a1540e78d640e15d9eb282bd49076efc5016164b878bfd2110e08dc05e04f"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.forwardWheel (cognitive 27): TerminalView.forwardWheel has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 4 (8 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c54d6cc8f2031ac2d5c655f7cc8e96b2c85e43240113dd231d10075fa7b72cd"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.startBaselineFromLaunchArguments (cognitive 27): ViewController.startBaselineFromLaunchArguments has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (20 pts), ternaries 2 (5 pts), boolean chains 2 (nesting depth added 5). 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":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f49bc4be070ca3297f20f37752081ee676fa8034df4cdca3589ad53ddba0243"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyboardInputController.keydown (cognitive 27): KeyboardInputController.keydown has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 5 (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":"Web/src/keyboard.ts"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c9e1da04a6c85171d6b05290553f4aed37abfc6e4e42b84f271c4673e51c21"}},{"ruleId":"D2","level":"warning","message":{"text":"Buffer.insertCharacter (cognitive 26): Buffer.insertCharacter has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 4 (7 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Buffer.swift"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b09e6f1b1bc4f3d2affa63f43b03545a9ea7845fa0ff351d68d1c6657df925"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyClipboardMetadata.parse (cognitive 26): KittyClipboardMetadata.parse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 4, loops 1 (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/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"9077b503206ee98ee5c6445cf0fb1307a0f17faf968e15c18017390d459c9861"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.resolveKittyPlacementOrigin (cognitive 26): Terminal.resolveKittyPlacementOrigin has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 5, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da0f1acf347612521d45ef6cdedbf8b6273f607a9eae6918c1b59c81b19b14b"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.mapColor (cognitive 26): TerminalView.mapColor has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 3 (9 pts), boolean chains 1, match/switch 1 (nesting depth added 12). 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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":2256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2867aa48515c9d2724b8dfcf3a344d40e9b194e922a6e1987adddf2097998032"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.updateFloatingCursor (cognitive 26): TerminalView.updateFloatingCursor has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 4 (14 pts), if/else 8 (12 pts) (nesting depth added 14). 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/SwiftTerm/iOS/iOSTextInput.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"76531e7a82e1ffa0b5c62b6cf8456e5ec5bced3d9552faada266bd639f947b31"}},{"ruleId":"D2","level":"warning","message":{"text":"EscapeSequenceParser.dispatchEsc (cognitive 25): EscapeSequenceParser.dispatchEsc has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 5 (13 pts), if/else 10 (12 pts) (nesting depth added 10). 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/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef12e55aa2b061ab8901b24686e2f587bd360fb477831ad740623698cec13e3"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchEngine.findPreviousWithSelection (cognitive 25): SearchEngine.findPreviousWithSelection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/SearchEngine.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"779214cdb631a5a54f3127cd4741f6e50ed0d59e1e40caaaa6cd619fe5be5119"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotTextBuilder.buildAttributes (cognitive 25): SnapshotTextBuilder.buildAttributes has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 3 (6 pts), boolean chains 4 (nesting depth added 5). 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/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0107a90e838c3c1bb76efe559d89b20491b0afbdf60114d21814cf2e4171124"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalRenderOwner.prepareFrame (cognitive 25): TerminalRenderOwner.prepareFrame has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 3 (5 pts), boolean chains 3 (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/SwiftTerm/Apple/TerminalRenderOwner.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"602addef2cd0e454a0a00f63f4677ead0ed6a76692121edcfb0abed8ceba6b6b"}},{"ruleId":"D2","level":"warning","message":{"text":"WasmRuntime.constructor (cognitive 25): WasmRuntime.constructor has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 4 (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":"Web/src/loader.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f025e7488ba93703cfc1fc756a676cfbf582bf8f11d3146b33d13a4ce4b3302"}},{"ruleId":"D2","level":"warning","message":{"text":"Buffer.rearrange (cognitive 24): Buffer.rearrange has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (8 pts), boolean chains 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/SwiftTerm/Buffer.swift"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98436d418a8e7d9c5ed1e779f233f9829ded3ba9517ba3a74347536dd6119b4"}},{"ruleId":"D2","level":"warning","message":{"text":"EscapeSequenceParser.simpleCsiLength (cognitive 24): EscapeSequenceParser.simpleCsiLength has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 7, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"de841b3f0e2f0f7b2e312072f681184f46a280d66db2fc9d8ef8c9ebf1268d2c"}},{"ruleId":"D2","level":"warning","message":{"text":"EscapeSequenceParser.appendOscBytes (cognitive 24): EscapeSequenceParser.appendOscBytes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), ternaries 2 (3 pts), loops 2, boolean chains 1 (nesting depth added 6). Most of this is not in the body itself: 8 of the 24 points are its own statements and the rest belongs to 3 function items inside it that branch (isProgramStatusOscAfterAppending, appendBytes, retainDroppedOscTail). 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/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f1ffbcfb664a4ed8c03adac99a341172d9b3fc50fd31ee836030d0f65eeda6"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchEngine.findNextWithSelection (cognitive 24): SearchEngine.findNextWithSelection has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/SearchEngine.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"28da496896b83bc13e5daf8c355172cc06720d525e60c0bb1ba0910147683c8a"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionService.pathRange (cognitive 24): SelectionService.pathRange has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, loops 6 (7 pts), if/else 3 (5 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/SelectionService.swift"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42b76fa12ac6cfea56c21c07d31631e2b527c026e11ac09fc2929f42cee1bd8"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.cmdDECRQCRA (cognitive 24): Terminal.cmdDECRQCRA has cognitive complexity 24 (threshold 15). Drivers by points: loops 3 (12 pts), ternaries 3 (7 pts), if/else 2 (3 pts), boolean chains 2 (nesting depth added 14). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":5360}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bb82fc7a2411aca4a0a1796c2c8f759042b1f7a5d3e7c5f3b16eaffd27db5c"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.cmdDeleteLines (cognitive 24): Terminal.cmdDeleteLines has cognitive complexity 24 (threshold 15). Drivers by points: loops 4 (13 pts), if/else 4 (6 pts), boolean chains 4, ternaries 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":7837}}}],"partialFingerprints":{"codehealthFindingId/v1":"605a1d143bf02c14e73818bf6f570492eb6815c810828ee9e1053d0e17d7272c"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.handleKittyAnimationComposition (cognitive 24): Terminal.handleKittyAnimationComposition has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 10, if/else 10, ternaries 3 (4 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"282e43d090a9c2bc4a0754cc41d292f52610f41c1b075aade453ae70cded910c"}},{"ruleId":"D2","level":"warning","message":{"text":"UnicodeUtil.graphemeJoinNonEmojiModifier (cognitive 24): UnicodeUtil.graphemeJoinNonEmojiModifier has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 4 (8 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Utilities.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a9d7f8aa2b0b4b0e658b7861e632b16d05c279b086edbd02b986ddcce75e9c"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotTextBuilder.swift.mapColor (cognitive 24): SnapshotTextBuilder.swift.mapColor has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (16 pts), if/else 3 (5 pts), boolean chains 2, match/switch 1 (nesting depth added 12). 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/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"0982ef7bfd6e943e5f9b00d24b9526d1648129fad8faa87592830b39a81ff90b"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyKeyboardEncoder.encodeFunctionalKey (cognitive 23): KittyKeyboardEncoder.encodeFunctionalKey has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, ternaries 2 (4 pts), match/switch 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/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ad11428053ee0940d7c1aa32cf7ab0ab72c55dd64febf5037fdbba3cfbd494"}},{"ruleId":"D2","level":"warning","message":{"text":"PseudoTerminalHelpers.fork (cognitive 23): PseudoTerminalHelpers.fork has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 2 (4 pts), boolean chains 2 (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/SwiftTerm/Pty.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf0f34872d3c5dff3caa45f7b357cf5fef99822072479d205e7b3038a79c92f"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.cmdDeviceStatus (cognitive 23): Terminal.cmdDeviceStatus has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 5 (15 pts), if/else 4, match/switch 2 (4 pts) (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/SwiftTerm/Terminal.swift"},"region":{"startLine":6472}}}],"partialFingerprints":{"codehealthFindingId/v1":"322904c3e0bced3e28cdca25628d1e7dba2b4f623657c90abc5b87a681110422"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal._getSelectedLines (cognitive 23): Terminal._getSelectedLines has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2, ternaries 1 (2 pts), boolean chains 1 (nesting depth added 10). Of this number, 19 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/SwiftTerm/Terminal.swift"},"region":{"startLine":10445}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16c55becf78ff2b1d5f4f9d549d01dfe78e2ca854b678ba80e90aa66043fbfa"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.readKittyFileData (cognitive 23): Terminal.readKittyFileData has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce5179067d30ffcf266500f38a83c3d4ff3cbee9ce5e6c1713b5db4427b83a1"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotTextBuilder.plainStyle (cognitive 23): SnapshotTextBuilder.plainStyle has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb000359472c499f89e721dea95338fc78e0ccec6c8e87b3bf30553b980702b6"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalKeyboardRouter.insertText (cognitive 23): TerminalKeyboardRouter.insertText has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 10 (11 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d3c3c385e9bae3c301f5ddf1f482e068711f61e8d45d6c060f071b1bc5d0f6"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.singleTap (cognitive 23): TerminalView.singleTap has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 3 (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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ceb528a847e1c4ca23e5730e1abe8ead76b84b02706ad8e88d7b4be379d4e5"}},{"ruleId":"D2","level":"warning","message":{"text":"BufferLine.setPackedScalarRun (cognitive 22): BufferLine.setPackedScalarRun has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/BufferLine.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"16539ec6e26eb62f3f96853559015d88f2b1dd3bfe1632a1821d0396331349dc"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.handleSemanticPromptClick (cognitive 22): Terminal.handleSemanticPromptClick has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 10, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":3517}}}],"partialFingerprints":{"codehealthFindingId/v1":"533a5d317ee554bf0c19a26733a753082a00f3ed7ee839a5fc4e30a2dd43177f"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.parseSemanticPromptOptions (cognitive 22): Terminal.parseSemanticPromptOptions has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 5 (14 pts), if/else 6 (7 pts), loops 1 (nesting depth added 10). 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/SwiftTerm/Terminal.swift"},"region":{"startLine":3588}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5dcf302bfeca0b9a20a8423786a1012b839441df7125919fae7a0b1fb2322eb"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.cmdInsertLines (cognitive 22): Terminal.cmdInsertLines has cognitive complexity 22 (threshold 15). Drivers by points: loops 4 (12 pts), if/else 4 (5 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":4978}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec4692cbfb6c75f7bf267188b350acf66a1fadf798e584236987fe488ad9d32"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.cmdCharAttributes::parseExtendedColor (cognitive 22): Terminal.cmdCharAttributes::parseExtendedColor has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 2 (4 pts) (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. This shape REPEATS in the file: one other method here (Terminal.cmdCharAttributes) 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/SwiftTerm/Terminal.swift"},"region":{"startLine":6696}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1412cdef52d3b4435812ca2c48c7143318635d1f9e304419a9bcded7a255b5a"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.cmdSendDeviceAttributes (cognitive 22): Terminal.cmdSendDeviceAttributes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":7496}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b467d2c1859ab86a779f3d1026e4e2aef9fc34e28dc6ff4ed9dc17c9c5e70ab"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotTextBuilder.sameAttributes (cognitive 22): SnapshotTextBuilder.sameAttributes has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 14, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fec85c33acb5e33157c8ecceb592f29c5f326196c3c7e493c0201dba7f6c4a1"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.mouseUp (cognitive 22): TerminalView.mouseUp has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 10. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":3288}}}],"partialFingerprints":{"codehealthFindingId/v1":"5feeb0c20a16c0a23e650d35dacc2745607f4b8bddaf089f8d758eec56a7d88d"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.pressesEnded (cognitive 22): TerminalView.pressesEnded has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3, loops 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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":3560}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db9cda09d95e5972e2801b65c46d74e599564ab0f385d4b60c25e80de1bbc09"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalRowText.swift.terminalRowText (cognitive 22): TerminalRowText.swift.terminalRowText has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/TerminalRowText.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e3b2eb868fcaaf4954be8489c1b33048994cb738aec1a300ee7cd6cfc62b60"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyClipboardProtocol.selectForRead (cognitive 21): KittyClipboardProtocol.selectForRead has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, loops 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea4331e4cba2781f427ec25dcf5cedce58077725b12bf5d2f94bfafff871abd"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionService.updatePointerSelection (cognitive 21): SelectionService.updatePointerSelection has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/SelectionService.swift"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"15215b0c916a5684608ca9bad19c87e64164a40cb99b8f06262b89fb3fbc63b3"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.handleKittyAnimationControl (cognitive 21): Terminal.handleKittyAnimationControl has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, ternaries 2 (4 pts), match/switch 1 (nesting depth added 3). 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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"341f36fb8e4322e265801b42b0badb1fbf95c848f1b519d7ad57ca5066608dc3"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.decompressZlib (cognitive 21): Terminal.decompressZlib has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, error handling 1, loops 1 (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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"395b6dd66943a8e0db7b4e632ff3e7b764e74ff9f7126f69bfc9d7eb19496e56"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalIOPipelineWorker.parseMain (cognitive 21): TerminalIOPipelineWorker.parseMain has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 3, loops 2 (3 pts) (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/SwiftTerm/TerminalIOPipeline.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8a5686121ae6a042606689bd72ef6262268471f9f0c296249b0a56fb5bb06d"}},{"ruleId":"D2","level":"warning","message":{"text":"PlainTextFont.shapesOneToOne (cognitive 21): PlainTextFont.shapesOneToOne has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 2 (3 pts), ternaries 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/SwiftTerm/Apple/Metal/PlainTextFont.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8f6149fedb3a90e0e351f5575fe816f1f1c256ef8bfdd5cdb3ee6001025ff6"}},{"ruleId":"D2","level":"warning","message":{"text":"Color.parseColor (cognitive 20): Color.parseColor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, match/switch 2 (3 pts), loops 1 (nesting depth added 2). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 2 function items inside it that branch (parseHex, makeColor). 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/SwiftTerm/Colors.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c011caa5bc30e825ff766dbdb9da1593fd41975d92344e0b33b56325a2719566"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchLineCache.translateBufferLineToStringWithWrap (cognitive 20): SearchLineCache.translateBufferLineToStringWithWrap has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 5, ternaries 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/SwiftTerm/SearchLineCache.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc5798a58d4b7f16aede7f6b44538f72a1b029b59a018923c75f73e0d3a636a"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.handlePrintSlow::insertScalarBatch (cognitive 20): Terminal.handlePrintSlow::insertScalarBatch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 3). 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. This shape REPEATS in the file: 2 other methods here (Terminal.handlePrintSlow, Terminal.handlePrintSlow::batchableScalar) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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/SwiftTerm/Terminal.swift"},"region":{"startLine":2342}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8832b6d40e96ae611561c708c4ac0ce0b03643709ea9257e12dba403dc734a8"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.reverseWrapBackward (cognitive 20): Terminal.reverseWrapBackward has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, ternaries 2, loops 1 (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/SwiftTerm/Terminal.swift"},"region":{"startLine":4580}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6836c9ca31a83bdf6452668dcf255bd930529a982bfc1749a2517bdc4c3ebd"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.cmdCharAttributes (cognitive 20): Terminal.cmdCharAttributes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19 (35 pts), match/switch 4 (7 pts), boolean chains 4, loops 2, ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Terminal.cmdCharAttributes::parseExtendedColor) 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/SwiftTerm/Terminal.swift"},"region":{"startLine":6632}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7870cce9fb5f2f7de60c2e9694977db8c0e0ca65ad2a3c6e9ee9cf8a69e98c"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.decodePngToRgba (cognitive 20): Terminal.decodePngToRgba has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, loops 3 (5 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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2385e0c37b15cafd32bfd024b88ad46a6b100325202c748736a9e3cbc68c61"}},{"ruleId":"D2","level":"warning","message":{"text":"Table.subtableCanApply (cognitive 20): Table.subtableCanApply has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (7 pts), 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/SwiftTerm/Apple/Metal/PlainTextFont.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"939b6ed49f383268ee0f8191ad06550d167e0a931f62800984b1f2acc591e469"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyboardInputController.normalize (cognitive 20): KeyboardInputController.normalize has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (9 pts), ternaries 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/keyboard.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd39e893fd0158bbf398a86924588c3ff897c72b65b09cdaa99424be6d1e620"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalInputController.pointerMove (cognitive 20): TerminalInputController.pointerMove has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 6, ternaries 1 (nesting depth added 3). None of this is in the body itself: all 20 points belong to one function literal inside it that branches (line 186). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/input.ts"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f54f95f0535000853c2415d51a74531c48e681e6528932ad6e78676c6f1dbc2"}},{"ruleId":"D2","level":"warning","message":{"text":"CircularBufferLineList.shiftElements (cognitive 19): CircularBufferLineList.shiftElements has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (7 pts) (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/SwiftTerm/CircularList.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3599847d8e70a6eccb0965c866685ddface3ca1a6a78e5626ba6829cb6f01a3"}},{"ruleId":"D2","level":"warning","message":{"text":"EscapeSequenceParser.consumeOscRun (cognitive 19): EscapeSequenceParser.consumeOscRun has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8691d2528b6b1d908bcdf2f66c22d447615597e851f582df7e6172797eacd5"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyClipboardProtocol.handleRead (cognitive 19): KittyClipboardProtocol.handleRead has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 8, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a931b8b4fdb301dbf5e7679fae4e18f00efd562eb8b6dc6e5c04901315c6bba5"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyClipboardProtocol.commitWrite (cognitive 19): KittyClipboardProtocol.commitWrite has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 6, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16f1bac06d509a6371e1c50729eb878320282c286846aa745c8cedbb490966d"}},{"ruleId":"D2","level":"warning","message":{"text":"ProgramStatusReport.decodeText (cognitive 19): ProgramStatusReport.decodeText has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (8 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/ProgramStatus.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcae0c52987788b7d321b4dd50bb1a25fe40b624ee800f94cf881c7d2638fcb4"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionService.balancedSearchForward (cognitive 19): SelectionService.balancedSearchForward has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts) (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/SwiftTerm/SelectionService.swift"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff86fc5669bb0d4f9889eb4713974561a120bd9f476a1a90021346097e1fe4c"}},{"ruleId":"D2","level":"warning","message":{"text":"SixelDcsHandler.readPixels (cognitive 19): SixelDcsHandler.readPixels has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (5 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 7). Of this number, 18 points are the body\u0027s own statements and 1 belongs 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/SwiftTerm/SixelDcsHandler.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"568e06b9085730b876b155477db97bdfbcecf9d7cccf0f6d1ed33d19f36a7302"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.handleKittyKeyboardProtocol (cognitive 19): Terminal.handleKittyKeyboardProtocol has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 3, match/switch 2 (3 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"9661d9a7ff15559fccb27893be3487c0c043803d807a07e4c75b09eae664289b"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.insertPlainScalar (cognitive 19): Terminal.insertPlainScalar has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7, ternaries 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":2115}}}],"partialFingerprints":{"codehealthFindingId/v1":"630fe92fb3e61748f729c22a80ee17011cf70f708b0e6c035684fbcff107d304"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.scroll (cognitive 19): Terminal.scroll has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 15, if/else 2, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":8622}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ce13284aef6346d55e66cbcc3a0113035d2c4d2f9ce69ccf24a38deab53ad2"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.removeOrphanedKittyPlacements (cognitive 19): Terminal.removeOrphanedKittyPlacements has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (5 pts), ternaries 2 (5 pts) (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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":2216}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05205eb9a64e04f94836bc1d5379b170c07b7e92b0fbf38ed350645ed3226fc"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalBidi.explicitRightToLeftLayout (cognitive 19): TerminalBidi.explicitRightToLeftLayout has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, loops 3 (4 pts) (nesting depth added 4). Of this number, 12 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/TerminalBidi.swift"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"099cebf3cc9d7206a77ba7fda412c3fef7a20d4bb995c1213472184cc90d7eaa"}},{"ruleId":"D2","level":"warning","message":{"text":"MetalTerminalRenderer.glyphEntry (cognitive 19): MetalTerminalRenderer.glyphEntry has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 2, ternaries 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":3083}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2fabc0f05e7c04a128294e25985feda6cb7f37c53829196d1219a807a77126b"}},{"ruleId":"D2","level":"warning","message":{"text":"MetalTerminalRenderer.renderCustomGlyphBitmap (cognitive 19): MetalTerminalRenderer.renderCustomGlyphBitmap has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":3297}}}],"partialFingerprints":{"codehealthFindingId/v1":"e429685a0a9e5b1b06afaa253abd69f0ce3aa81aa2ef239fa5b449a14f995291"}},{"ruleId":"D2","level":"warning","message":{"text":"PlainTextFont.analyze (cognitive 19): PlainTextFont.analyze has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/PlainTextFont.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a7d2ad79bda4d1e4a4550d91c5ff6495f14ae05178e2a872e31dc36c99d890"}},{"ruleId":"D2","level":"warning","message":{"text":"InputExports.swift.terminalMouse (cognitive 19): InputExports.swift.terminalMouse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 7, ternaries 3, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTermWebWasm/InputExports.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"62882b32e40fda1c4d274fbdcf832d1513e7a39b995fa4f8a5158e898002aa34"}},{"ruleId":"D2","level":"warning","message":{"text":"KittyFileTransfer.openFile (cognitive 19): KittyFileTransfer.openFile has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (7 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Sources/WebTerminalServer/KittyFileTransfer.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"622a23aba8c922a2a6472ab257a8637c6ea7d0eeee0cd020094d41c59ee23fdf"}},{"ruleId":"D2","level":"warning","message":{"text":"CircularBufferLineList.shiftUpAndRecycleLines (cognitive 18): CircularBufferLineList.shiftUpAndRecycleLines has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (6 pts) (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/SwiftTerm/CircularList.swift"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd4697c9b979493f30098c74a4b0d4123fcf40b924bb9c8a44f0792f2110660"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionService.balancedSearchBackward (cognitive 18): SelectionService.balancedSearchBackward has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts) (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/SwiftTerm/SelectionService.swift"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c768a73684db505bcb7a01df45b60cc8bcc39bd7c341db6364bb24bd78030b"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionService.extendToWordBoundary (cognitive 18): SelectionService.extendToWordBoundary has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, loops 2 (4 pts), match/switch 1 (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/SwiftTerm/SelectionService.swift"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bf5b828c17cbbbaa3e244e9f1019cfe559ffabbaa47487f62277c2b7ab4bf0"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.resolveActiveHyperlink (cognitive 18): Terminal.resolveActiveHyperlink has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 1 (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/SwiftTerm/Terminal.swift"},"region":{"startLine":3936}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3fbc09ceb4a4efbbd1f79229e942c6eae6c82489ea591fec9b51c81273c39e"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.csiX (cognitive 18): Terminal.csiX has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 2 (7 pts), boolean chains 2, ternaries 1 (2 pts) (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/SwiftTerm/Terminal.swift"},"region":{"startLine":5301}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1c658583edacbd5b7c0638bca859bf1fd800c99527cd30bd5b2d88af737a1b"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.sendHostKey (cognitive 18): Terminal.sendHostKey has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 6 (7 pts), boolean chains 3 (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/SwiftTerm/TerminalWebInput.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7395a12438bfa75978eb5c55aa2519977aa3558b72e19c874563f452ec2771"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.mouseDragged (cognitive 18): TerminalView.mouseDragged has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 2 (nesting depth added 3). 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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":3387}}}],"partialFingerprints":{"codehealthFindingId/v1":"db128456fb1a0238e4f566c4f9a020a63b75b2178ae453c19b4528406a7fcd1a"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.insertImage (cognitive 18): TerminalView.insertImage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 4 (5 pts), boolean chains 3, loops 1 (nesting depth added 3). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":5105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7064d21214e7895f138917902eb691eb8cabb4293835c89fd1b64e8509c32946"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalAccessory.setupUI (cognitive 18): TerminalAccessory.setupUI has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, ternaries 4, boolean chains 2, loops 2. Of this number, 14 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. 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/SwiftTerm/iOS/iOSAccessoryView.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"880c26b6814b17f566bc79d95a4ee2a5ec6f9556a56269751d749dcccc6f4ca8"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.fuzzMe (cognitive 18): main.swift.fuzzMe has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (5 pts), match/switch 2 (3 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/SwiftTermFuzz/main.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"78264ccc7d2f9ea6c4b0aa2392206b8490440f477639d9a8b83cdbddb4d30190"}},{"ruleId":"D2","level":"warning","message":{"text":"InputExports.swift.terminalKey (cognitive 18): InputExports.swift.terminalKey has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 12, if/else 5, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTermWebWasm/InputExports.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c405b65032b42baf1c21b9430890821518aa87eec6a5401e2afa60fe9956d9ba"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionService.logicalLineCells (cognitive 17): SelectionService.logicalLineCells has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, if/else 2 (6 pts), loops 4 (5 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/SelectionService.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"074f9ab9e4f60e1c44cbf96c57adc875a03d099f74e84ee8a566254867156e3b"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.cmdScrollDown (cognitive 17): Terminal.cmdScrollDown has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (9 pts), ternaries 3 (5 pts), if/else 3 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Terminal.cmdScrollUp) 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/SwiftTerm/Terminal.swift"},"region":{"startLine":7662}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edb0a449c4c64f8297cc56d0728ae67c02a7263a49feff4f79ff8eff6cfb816"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.cmdScrollUp (cognitive 17): Terminal.cmdScrollUp has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (9 pts), ternaries 3 (5 pts), if/else 3 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (Terminal.cmdScrollDown) 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/SwiftTerm/Terminal.swift"},"region":{"startLine":7717}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77814498edd02c7561182f62a03c4275fc23039468225d7975a1b9f0d6c6ef6"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.seamContainsGhosttyImplicitLink (cognitive 17): Terminal.seamContainsGhosttyImplicitLink has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":10273}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cecb8760e5f720cdde2bc6b10ed9927a57ecba45fac1ccb16421478e022912c"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalRenderOwner.prepare (cognitive 17): ExternalRenderOwner.prepare has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 5, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/ExternalRenderOwner.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b608c9e399e3d8bd3f27715fe533202df135bf4d0f3aee1c72a414db4c284ba7"}},{"ruleId":"D2","level":"warning","message":{"text":"accept (cognitive 17): accept has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, ternaries 3 (4 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/clipboard.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"594f56f3c938547510612bef7fe01121cd856a482356d72e34b189360097b132"}},{"ruleId":"D2","level":"warning","message":{"text":"show (cognitive 17): show has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (7 pts), if/else 5, boolean chains 4, other 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/clipboard.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2ded0fc3c213b81c5128f9106e3db1ae51d78a92d0b38bdde0f2b5a0d1793f"}},{"ruleId":"D2","level":"warning","message":{"text":"CellArena.synchronizeSnapshotPrefix (cognitive 16): CellArena.synchronizeSnapshotPrefix has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/CellStorage.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13b0f02f002731d81812107305f2a125b4330d73de1f7fd983d02e1704b18d8"}},{"ruleId":"D2","level":"warning","message":{"text":"Attribute.sgrParameters (cognitive 16): Attribute.sgrParameters has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, match/switch 2 (4 pts), boolean chains 1 (nesting depth added 2). 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/SwiftTerm/CharData.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a95cde0bb4e36205b0f9731bdf5a62d6179207769beecaf0c03caf7e5ff6d14"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalProcess.startProcessWithForkpty (cognitive 16): LocalProcess.startProcessWithForkpty has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 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/SwiftTerm/LocalProcess.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed011be7beb41cb5061b2daca5ba013389471bbe310a67e78c20c8afce3441b"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionService.selectedContentIsUnchanged (cognitive 16): SelectionService.selectedContentIsUnchanged has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 6, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/SelectionService.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ded7ee94f4d21d113aa7539811661e9b2badad2657d861f8f8abb84f1a34647"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionService.shiftExtend (cognitive 16): SelectionService.shiftExtend has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 3 (6 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/SelectionService.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dec2dc22ff44c23c471186c59ac85cb0ff3fc690e917e181ffa8644f4c42e65"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectionService.blockText (cognitive 16): SelectionService.blockText has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 3 (5 pts), loops 2 (3 pts), ternaries 1 (2 pts) (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/SwiftTerm/SelectionService.swift"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c4525a699b064cba9186c3c40e3577fe5e649fb37cdd920876cbf76724fb72"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.linkRowEdgeInfo (cognitive 16): Terminal.linkRowEdgeInfo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":10223}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a0f1cba57cf3200cddf64f8385589921645e6015d087e7983f57e70b241f06"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.insertRasterImage (cognitive 16): Terminal.insertRasterImage has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 5, match/switch 2 (3 pts), loops 1 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 1 belongs 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/SwiftTerm/Portable/TerminalRasterImage.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62268b55829075c1d63780d867642a66abc8c1650b80d25cee750bee4e859ce"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalBidi.detectedBaseDirection (cognitive 16): TerminalBidi.detectedBaseDirection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (3 pts), boolean chains 1 (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/SwiftTerm/Apple/TerminalBidi.swift"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"707c60427836ccae9b027e34e63ca8caea3983dce5a02557e0eaff1283f41ccb"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalRenderOwner.semanticPromptRow (cognitive 16): TerminalRenderOwner.semanticPromptRow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 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/SwiftTerm/Apple/TerminalRenderOwner.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"0805e24f1c4b89681742580036ca595d9010877201f47ca35d4cc6474a3f71a1"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.kittyClipboardSnapshot (cognitive 16): TerminalView.kittyClipboardSnapshot has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleKittyClipboard.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e45218e4baba6195287c1c058b4a7a6f4b4718fc71e6ab9d9ebbbe09ddd3a7d"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.commitTextInput (cognitive 16): TerminalView.commitTextInput has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":2467}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4c06ad8424fa4b8a9a33bf2d31f39efce381883db12f4470b86929e0b02c9d"}},{"ruleId":"D2","level":"warning","message":{"text":"GlyphAtlas.ensureRegion (cognitive 16): GlyphAtlas.ensureRegion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/GlyphAtlas.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2273fec84fb5d91f19e25ddf62850f4652f02a5c42dbac8462952d2b451f6851"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfiguration.init (cognitive 16): ServerConfiguration.init has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Sources/WebTerminalServer/ServerConfiguration.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b73d79fb9844ca8e11d8dd583b77136f91ab8c19bb6f87645752d269bcd341"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.runMetalToggleScenario (cognitive 16): ViewController.runMetalToggleScenario has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, ternaries 4, error handling 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 1). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (flip, settleAndDraw). 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":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"445735151e5d327c38d43fdd19eb115796fe93290f12f85994d09ec2d587db7f"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.runResizeFloodScenario (cognitive 16): ViewController.runResizeFloodScenario has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a29a0003f2f1daf40b3830377c953027efb5687638dec2c8fef22a492dc2aa4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Terminal: TooManyMethods \u2014 479 methods, declared across 11 files: SwiftTerm/Terminal.swift (357), SwiftTerm/KittyGraphics.swift (84), SwiftTerm/EmbeddedSupport.swift (8), Portable/TerminalViewport.swift (7), \u002B7 more file(s). The bar is 30 methods; this is 449 over it, 15.97\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/SwiftTerm/Terminal.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a83b7fd41a54c2d1ddc56e31dcafac6dd56df55ae4b0be3deafeb5c6605279"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TerminalView: TooManyMethods \u2014 431 methods, declared across 9 files: Mac/MacTerminalView.swift (214), Apple/AppleTerminalView.swift (141), iOS/iOSTextInput.swift (36), iOS/iOSTerminalView.swift (15), \u002B5 more file(s). The bar is 30 methods; this is 401 over it, 14.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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d703f0f1874d7ead1e19b2aacab1e10a536a4b43ff0d0e076b43c8fa25b7e48"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SwiftTerm/Terminal.swift: FileTooLong \u2014 5785 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5285 over it, 11.57\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/SwiftTerm/Terminal.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0106a4a28cfac8ba02b1c5fdf1ebd8f181c5e297e505a8387548dcbc80118ff"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MetalTerminalRenderer: ClassTooLong \u2014 2856 significant lines (blank, comment-only and punctuation-only lines excluded), 77 methods. The bar is 400 significant lines; this is 2456 over it, 7.14\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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"e658d74213de3d25f2af8dbe1e4889feba8b20f271720514d7043b231aa60d21"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Metal/MetalTerminalRenderer.swift: FileTooLong \u2014 3556 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: MetalTerminalRenderer (1047-4767). The bar is 500 significant lines; this is 3056 over it, 7.11\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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5a0b33456965f48c6189f6779b9ccc9516f0b4dacc937d870d01a52abe9be9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Apple/AppleTerminalView.swift: FileTooLong \u2014 3294 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2794 over it, 6.59\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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5845eff22b98909265b65c259547b71f81ac5ce9138bd3d2a62cd104838408"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TerminalView: ClassTooLong \u2014 2498 significant lines (blank, comment-only and punctuation-only lines excluded), 159 methods. The bar is 400 significant lines; this is 2098 over it, 6.25\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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00add8c1ae63f9190787a3ad9bad36c2bbd8fe0013eac8e47b896a441e2bee4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TerminalView: ClassTooLong \u2014 2388 significant lines (blank, comment-only and punctuation-only lines excluded), 431 methods. The bar is 400 significant lines; this is 1988 over it, 5.97\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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0fb93d7d488ba503494eb7c2f4582bfcdc7d86e876af8a3462e8956a3d081f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: iOS/iOSTerminalView.swift: FileTooLong \u2014 2752 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: TerminalView (109-3941). The bar is 500 significant lines; this is 2252 over it, 5.50\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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa09fee2a995cf3dadabdfef62eb8f6a4e1d43221fac8add4291dbbdb57d0de"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TerminalView: TooManyMethods \u2014 159 methods. The bar is 30 methods; this is 129 over it, 5.30\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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b538846d2bdb0c0d0b1b95fd1a0a9081f77cb76ba99a211f1c72111bbea79d54"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Mac/MacTerminalView.swift: FileTooLong \u2014 2551 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: TerminalView (105-4298). The bar is 500 significant lines; this is 2051 over it, 5.10\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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f81115de28244b6171a65eeab419109b736e2c4f56f339afe06de2454dcbfe4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreGraphicsPaintHost.drawTerminalContents: MethodTooLong \u2014 drawTerminalContents runs 441 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 341 over it, 4.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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"883d0715025634e9dc29868259bb645da467bc74809b127e5f4085715a0c09ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SwiftTerm/KittyGraphics.swift: FileTooLong \u2014 2062 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1562 over it, 4.12\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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"beab3fe8371f7969c1318a2dda7c77671865a41097f5af6ec3795b204c7eff11"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MetalTerminalRenderer.placeRow: MethodTooLong \u2014 placeRow runs 323 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 223 over it, 3.23\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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":2481}}}],"partialFingerprints":{"codehealthFindingId/v1":"8946f74ae21c00d828a3ba0f61a9483d9bb1fbe704f24f98b8d46b4b7b9b434f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Buffer: ClassTooLong \u2014 1172 significant lines (blank, comment-only and punctuation-only lines excluded), 79 methods. The bar is 400 significant lines; this is 772 over it, 2.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Buffer.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3864a9cc9135f3a4789b118084d0eae3eea27936b6181b345c6c8834891ae81"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MetalTerminalRenderer.prepareRow: MethodTooLong \u2014 prepareRow runs 290 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 190 over it, 2.90\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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1923}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b6cf8f77e7f157a9e3d8cb2e292b72fe1dc6fa23d85de70b76587734aae13e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Buffer: TooManyMethods \u2014 79 methods. The bar is 30 methods; this is 49 over it, 2.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Buffer.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dffa36668cc1fe1fc9bc263d8d5876d5faf3eae2c793d4f1d1c6a35b219b01a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalView.pressesBegan: MethodTooLong \u2014 pressesBegan runs 259 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 159 over it, 2.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":3239}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f49a9288ac8161f280cfb3f2af2384e21d85751614b6967d4bd1d5192b732a2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MetalTerminalRenderer: TooManyMethods \u2014 77 methods. The bar is 30 methods; this is 47 over it, 2.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ded3099e61f0e5a0cf48bc6a380e05ba1e0e03e33953118b0d5ee2e0973a416"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SnapshotTextBuilder.buildAttributedString: MethodTooLong \u2014 buildAttributedString runs 244 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 144 over it, 2.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ee8d7bcd934f3312a26a792ec3582ef84ad1223ddc2a5351f6ace33745702c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SwiftTerm/Buffer.swift: FileTooLong \u2014 1182 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Buffer (45-2185). The bar is 500 significant lines; this is 682 over it, 2.36\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/SwiftTerm/Buffer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91649fc1e1ef7d3c59306d51b5ecfc78f1fd8f2df60a24ef4768012e7b826aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SwiftTerm/KittyClipboardProtocol.swift: FileTooLong \u2014 1130 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 630 over it, 2.26\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/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3455996b2c63a596ec8fc8579acb8c75eddc4be708284b142d2a3de28e751e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SwiftTerm/EscapeSequenceParser.swift: FileTooLong \u2014 1124 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 624 over it, 2.25\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/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7dad8d7d3165153c78163755580de14bfcb5d7ecf119d58402b8a07847fec5b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TerminalKeyboardRouter: ClassTooLong \u2014 898 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 498 over it, 2.25\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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"675e0b6d7fe4e4575bb657f887e2f436e75a8a49159da3fa63a624974f0c078f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MetalTerminalRenderer.render: MethodTooLong \u2014 render runs 222 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f10b3e19959b7e18291e483f66c3ec158c7f74971184ae1797659788aedba9c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MetalTerminalRenderer.buildCursorDrawData: MethodTooLong \u2014 buildCursorDrawData runs 220 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 120 over it, 2.20\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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":3934}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a93a43b6a2ec7600211a30e17f316125c360ab5d2298d015bebc0c0dcc64b36"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KittyKeyboardEncoder.functionalEncoding: MethodTooLong \u2014 functionalEncoding runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.18\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/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec06e3438d4711e7a8d3a1576c4393055e5eb0043e09774e69d5f1bd162df38"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KittyKeyboardEncoder: ClassTooLong \u2014 840 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 440 over it, 2.10\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/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7220e1b1247de7f19aca4e0d7d52bc7b432dcfffee8cbc1b8e9495fe6be30b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalKeyboardRouter.keyDown: MethodTooLong \u2014 keyDown runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1468ac813dc73718e9d385ddfdccb1da050c36683d0e2f765feaa47d9fb9f10"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SwiftTerm/KittyKeyboardEncoder.swift: FileTooLong \u2014 981 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: KittyKeyboardEncoder (162-1192). The bar is 500 significant lines; this is 481 over it, 1.96\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/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17f389c02cacd9ab46998a2a7825504a7260fff416b5efa297efbc23bb124c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Mac/MacKeyboardRouter.swift: FileTooLong \u2014 961 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: TerminalKeyboardRouter (145-1371). The bar is 500 significant lines; this is 461 over it, 1.92\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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d74a390179b1e1892f89c9fc0891bae130f7687f772f3e5ed9cb4100e6f365"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ViewController: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\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":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b352762acdbe4962318bd51dca18f58e9656147d4054ace128b4d62b7f9cc00"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TerminalBidi: ClassTooLong \u2014 759 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 359 over it, 1.90\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/SwiftTerm/Apple/TerminalBidi.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce59ffb316019bdcbfe150bb98ab13f6e2e966d91bce4de794de5354daaa0e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MacTerminal/ViewController.swift: FileTooLong \u2014 935 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 435 over it, 1.87\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":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f41b8f232081468fc220ef1a8abe4b841ec01651ce3c111e60d45a9d3a6842"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AppleTerminalView.swift.top-level code: FunctionTooLong \u2014 top-level code runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6ec46849027906bb3f03534067341f1abe966353b745b769117555274daaba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MetalTerminalRenderer.buildDrawDataPass: MethodTooLong \u2014 buildDrawDataPass runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3bb7acbe4193c3bd53e17d315a4a3ed5e419dcdd7e568d9741aebc7c483025d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BufferLine: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\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/SwiftTerm/BufferLine.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"feab2da0938be5a48f9d94dacc025a6d1fdeed5b3ffc5754fcd2f02409e978e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalSnapshot.refresh: MethodTooLong \u2014 refresh runs 185 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/TerminalSnapshot.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c95aaed50616d9e301cb3ae1aded6083c48d0ebdb00e088df3dee8b9236d340"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalSnapshot.refresh: MethodTooLong \u2014 refresh runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\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/SwiftTerm/Apple/TerminalSnapshot.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"d433c79aee906afc056ce5ee25bf4f4126cf714f3427c6b26d3905ac209738a8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SelectionService: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\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/SwiftTerm/SelectionService.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69e1d479c8ec1fa3b9f0f04021c848b9cd5fae85d1e37bed6ac92a663a5647c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TerminalRenderOwner: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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/SwiftTerm/Apple/TerminalRenderOwner.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"466464f77d0efe94718ffec45e27c33ebf4963a082c15eabe5fc9aeb3838e093"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SwiftTerm/SelectionService.swift: FileTooLong \u2014 845 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 345 over it, 1.69\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/SwiftTerm/SelectionService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d419961899645f5884658df294d9949f1475f3cdc387a019b5ee6f79ec055a63"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalKeyboardRouter.kittyFunctionalKey: MethodTooLong \u2014 kittyFunctionalKey runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc905bbf7de5c4eaf8bb997bd7bfb0a4a247c75ca70ed93115ee3146258fa887"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SwiftTerm/CellStorage.swift: FileTooLong \u2014 831 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 331 over it, 1.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/CellStorage.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"348d60c69b0e5ee28b7f7c16ca44fc9c3c4d6fa80d5a4e18920ead6fde29cca4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SnapshotTextBuilder: ClassTooLong \u2014 659 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 259 over it, 1.65\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/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2ae0d7d731425e7115af0ff83054ef734da72fd66107ba940aecaea28da743"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Apple/SnapshotTextBuilder.swift: FileTooLong \u2014 796 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: SnapshotTextBuilder (118-1083). The bar is 500 significant lines; this is 296 over it, 1.59\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"733308d17403687049e5d5a0e794032c236f3f16fa8dbbd3f51c6d2cb431d951"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Apple/TerminalBidi.swift: FileTooLong \u2014 790 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: TerminalBidi (80-1214). The bar is 500 significant lines; this is 290 over it, 1.58\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/SwiftTerm/Apple/TerminalBidi.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3cc597a17d7b99bb1386b2406995c0a4e1bc032c7be690997c5d9e49dc3d97"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalIOPipelineWorker.gatherMain: MethodTooLong \u2014 gatherMain runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/TerminalIOPipeline.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d850bf882f6cd51df941b7c5b429f4116dabd6c1b4b749db4ed19c8a2086e15"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BufferLine: ClassTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 231 over it, 1.58\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/SwiftTerm/BufferLine.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cc1cdfe2e5f4f71ac50d3cf1e33ccf99529205d68afe7a0785304de33580a9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BoxDrawingRenderer.draw: MethodTooLong \u2014 draw runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\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/SwiftTerm/Apple/BoxDrawingRenderer.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d592083a010e48f02c949a8c30613a2d715b8ac111321c0970958a5620985f7a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalView.kittyFunctionalKey: MethodTooLong \u2014 kittyFunctionalKey runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3abdf764b68732785baae82cd36f3eb6ad50f9fb54d388a2d737325e7228b3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IOBaselineHarness: ClassTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 203 over it, 1.51\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":"TerminalApp/MacTerminal/IOBaselineHarness.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd242a8cb3eaa44b8b5911cc56da746aa3d2c523320c196bc35601f5677b0d98"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KittyClipboardProtocol: ClassTooLong \u2014 602 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 202 over it, 1.51\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/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"188bbe480f867cf0e9d4ca24b537ca6c0d57f064d965c21915883715ce4d5f4d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TerminalRenderOwner: ClassTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 200 over it, 1.50\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/SwiftTerm/Apple/TerminalRenderOwner.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06477e73370f3b7578da5de9f2c756a5ea63a7e923853266f3640855e9d601d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalRenderOwner.prepareFrame: MethodTooLong \u2014 prepareFrame runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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/SwiftTerm/Apple/TerminalRenderOwner.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"937f5863c9d1622a215acce40e0a1b6725721098a5b6b31cbed218956d480e3b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CharSets.initAll: MethodTooLong \u2014 initAll runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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/SwiftTerm/CharSets.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8212e2a88b9b65fd752594b336ed6240e1633d5f8ed401564a5dda39186d593"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SwiftTermTerminal: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\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":"Web/src/terminal.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b149edc766b8de116f6b1463570c048a4c37b46955b48a4a99ec052705bc59a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MacTerminal/IOBaselineHarness.swift: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: IOBaselineHarness (149-952). The bar is 500 significant lines; this is 190 over it, 1.38\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":"TerminalApp/MacTerminal/IOBaselineHarness.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccaf3a385b83086372155e1c364796463451cbd473b13bd61bafb2e5e2c1968"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Apple/TerminalRenderOwner.swift: FileTooLong \u2014 684 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: TerminalRenderOwner (147-966). The bar is 500 significant lines; this is 184 over it, 1.37\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/SwiftTerm/Apple/TerminalRenderOwner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3f4d8b6f0a7d09a51fd3cdfb9f28ca38b4a012cbbc3c94bb6ad5428211d986"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KittyClipboardProtocol: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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/SwiftTerm/KittyClipboardProtocol.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a872e52b4e898b5a05eea558436de51e04765574b6acf4e1ed7902b3d18e29a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TerminalRenderView: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1077dd7c6e91575c73a15da0f7c02750ffe6104ab952581c62e276aff436c3f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SwiftTerm/BufferLine.swift: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: BufferLine (15-1080). The bar is 500 significant lines; this is 134 over it, 1.27\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/BufferLine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff89230949896d17d46bddef83edb29a9838b88af9ad0c580cd5525a36713e79"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TerminalRenderView: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\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/SwiftTerm/iOS/iOSTerminalRenderView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae6ee7b33342babda197feda9af89fd36db427b2f3a6e820234d2f68787164d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WasmTerminalHost: TooManyMethods \u2014 38 methods, declared across 3 files: SwiftTermWebWasm/WasmTerminalHost.swift (29), SwiftTermWebWasm/ClipboardHost.swift (7), SwiftTermWebWasm/GraphicsExports.swift (2). The bar is 30 methods; this is 8 over it, 1.27\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. Most of these members implement SwiftTerm.TerminalDelegate (35 of 38 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTermWebWasm/WasmTerminalHost.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3a97f7087bd3590a426beb3b5035bfca344d3eaed9eda8f5228b2ee4c0192f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MetalTerminalRenderer.preparePlainRow: MethodTooLong \u2014 preparePlainRow runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"b060be873e814a0e39167c80e0245ef1e4627578b343b73cbc35bd20fa19f502"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Apple/TerminalSnapshot.swift: FileTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 103 over it, 1.21\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/SwiftTerm/Apple/TerminalSnapshot.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa99c70edcce21c326e83fb96fe5ff462d73cc19c846ddf67f0d36546d36e93"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SwiftTerm/TerminalIOPipeline.swift: FileTooLong \u2014 602 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: TerminalIOPipelineWorker (284-979). The bar is 500 significant lines; this is 102 over it, 1.20\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/SwiftTerm/TerminalIOPipeline.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d01418bc6913c1196199cdcc2172a2f7b1a1d4841ddb36c60355f509813e6a1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TerminalAccessory: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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/SwiftTerm/iOS/iOSAccessoryView.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07aeda1de71bae0d4027ea4b1d8b8bd9c8155db61bc9413077971a56dcb03ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Terminal.parseKittyGraphicsControl: MethodTooLong \u2014 parseKittyGraphicsControl runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c16df79a247d4598b0564fdfa0c99979c25cff4a3ed4a605253bb8d24525d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: IOBaselineHarness.buildMeasurement: MethodTooLong \u2014 buildMeasurement runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"TerminalApp/MacTerminal/IOBaselineHarness.swift"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d731ea48ac1a32990408078dcdb3c24c4771bc5e59b6c000db81600f4325da6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TerminalIOPipelineWorker: ClassTooLong \u2014 469 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 69 over it, 1.17\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/SwiftTerm/TerminalIOPipeline.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"e784509707f1676f6ba80ff1a4a9464a1347c47e30da19dfdf02c5ea5c9bba2c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KeyboardView: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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/SwiftTerm/iOS/iOSKeyboardView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e799f2f935783ba26e92d22f49530e7e53a156035ca47eaf53cf785a23ef2c6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CellArena: ClassTooLong \u2014 450 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 50 over it, 1.13\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/SwiftTerm/CellStorage.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"189fe0189c0d60e843c35640b1253e55a677a509283b4728b0619a80c411fbde"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BoxDrawingRenderer.swift.linesChar: FunctionTooLong \u2014 linesChar runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/BoxDrawingRenderer.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77793e6c85a8ac2e21e40343dec6e31e729b951fb99df5a590dc1b9e3da1a03"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TerminalKeyboardRouter: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1ad158a1d26d1a51eb967ee1224f29c643aa740c5ce7fe8c621fae24ed1b28"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalKeyboardRouter.doCommand: MethodTooLong \u2014 doCommand runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"f404b49910654154252ee64ab1a8c656674be6a7085bfb2f4d7a7121c960350e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FrameDriver: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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/SwiftTerm/Apple/FrameDriver.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6fb71343e6c8603f347d79d721540f425579e4d6ccd01117f1da72208e7e62"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Apple/BoxDrawingRenderer.swift: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 27 over it, 1.05\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/SwiftTerm/Apple/BoxDrawingRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b771caea752de1665e2f361acb65b2ff51ffccca8ad3ad10b83b603fabd91984"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CellStoragePage: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/CellStorage.swift"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"78cc63744b2a84cfd10cba7af3c85efaa3909cc37a7dbf580f7613191cc8dc24"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocalProcessTerminalView: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacLocalTerminalView.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f4e2510c0a52385a554ff59af34e2b5802342441cf64802461d3992db43f19"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Terminal.handleKittyAnimationFrame: MethodTooLong \u2014 handleKittyAnimationFrame runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f2c8e594982d869353855cb7274dcd2133e5c9fcbf1a5a6abd2270892d0b16"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Apple/FrameDriver.swift: FileTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: FrameDriver (296-791). The bar is 500 significant lines; this is 3 over it, 1.01\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/SwiftTerm/Apple/FrameDriver.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1845338909de7714128920d88f3845b74ac187ecf23b45bd8f34a954c274a08e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (24 shared lines): Sources/SwiftTerm/Terminal.swift:7662-7712 | Sources/SwiftTerm/Terminal.swift:7717-7767 \u2014 These two members are variants of one another: 24 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":7662}}}],"partialFingerprints":{"codehealthFindingId/v1":"9520c1c006e02a599732e60f65fb274d29eaacc25aabaa59b5a353675fc11850"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): TerminalApp/MacTerminal/ViewController.swift:888-950 | TerminalApp/MacTerminal/ViewController.swift:953-1014 \u2014 These two members are one piece of code written twice and then edited apart: 62 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":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"391bf0ea57ec034a0759f5a17a6eb004e1b11fa1d5cd1e89bec678dac47f31a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): Sources/SwiftTerm/Terminal.swift:4978-5055 | Sources/SwiftTerm/Terminal.swift:7837-7902 \u2014 These two members are one piece of code written twice and then edited apart: 66 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/SwiftTerm/Terminal.swift"},"region":{"startLine":4978}}}],"partialFingerprints":{"codehealthFindingId/v1":"b445849b6d4b9d2d8978a5b9e2794a7ba6703cce5b79628bc1e7a298c811b5e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:2924-2965 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:888-928 \u2014 These two members are one piece of code written twice and then edited apart: 41 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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":2924}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f33de6b4aec9f096ba67a074a4f29fd140fe45197365d79ba4d54bded4159a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/SwiftTerm/BufferLine.swift:393-424 | Sources/SwiftTerm/BufferLine.swift:426-455 \u2014 These two members are one piece of code written twice and then edited apart: 30 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/SwiftTerm/BufferLine.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"4428964ee1ef247ee87b75a02a9f8f9e75b66c34bd162f8dc1c782d9dbfd8e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Sources/SwiftTerm/KittyGraphics.swift:1292-1332 | Sources/SwiftTerm/KittyGraphics.swift:1334-1370 \u2014 These two members are one piece of code written twice and then edited apart: 37 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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d66408b8a61fcd786ff7adf50b396e5ca1f3428ef553890b610a01f279e163"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4441-4464 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4595-4618 \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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":4441}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c173ddd92984d63a3aaa0478ec82b0b5b8d042e21d4bf79ee7edcb683c1fe1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Sources/SwiftTerm/CircularList.swift:172-214 | Sources/SwiftTerm/CircularList.swift:543-584 \u2014 These two members are one piece of code written twice and then edited apart: 42 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/SwiftTerm/CircularList.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1f04ee744beba8bcb8dc6716a613a875549673d5f7e52205479abb63c4902c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:374-396 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:370-392 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"129dc20324f08ae747e9b96e906129fca36db4e00b9f6ed23f70b3e684d951a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/SwiftTerm/iOS/iOSTerminalView.swift:2944-2965 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3019-3045 \u2014 These two members are one piece of code written twice and then edited apart: 22 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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":2944}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd61bf0455b632b34ce551d8663a8fbdc53e600ac39093859947acd5d4df351"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Sources/SwiftTerm/Buffer.swift:1890-1931 | Sources/SwiftTerm/Buffer.swift:1936-1983 \u2014 These two members are one piece of code written twice and then edited apart: 42 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/SwiftTerm/Buffer.swift"},"region":{"startLine":1890}}}],"partialFingerprints":{"codehealthFindingId/v1":"46deae483aecf0d3a943d443434c55e0a6e2982017f6b09b57e352495a6d5264"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Sources/SwiftTerm/CircularList.swift:127-163 | Sources/SwiftTerm/CircularList.swift:487-531 \u2014 These two members are one piece of code written twice and then edited apart: 37 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/SwiftTerm/CircularList.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef514bcca460295e2a75497c22538975899573fb5fedc5d7896c074f00ff815f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/SwiftTerm/Apple/BoxDrawingRenderer.swift:405-434 | Sources/SwiftTerm/Apple/BoxDrawingRenderer.swift:436-465 \u2014 These two members are one piece of code written twice and then edited apart: 30 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/SwiftTerm/Apple/BoxDrawingRenderer.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"5803da86362a3dc1fefb23c59a900f598cdb21eb3526bfe1cdfc1256a104188e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:443-460 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:439-464 \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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"285bf2b3d47bf23782ef430ddc79dadb61793023562c9242064ff78026cb6380"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Sources/SwiftTerm/SelectionService.swift:833-869 | Sources/SwiftTerm/SelectionService.swift:875-908 \u2014 These two members are one piece of code written twice and then edited apart: 34 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/SwiftTerm/SelectionService.swift"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0159b8cb30e5d947bd0e47a4b2db11b0c1e5783db1f8f9638c9212cd8e2c6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/SwiftTerm/Apple/AppleTerminalView.swift:169-190 | Sources/SwiftTerm/Apple/AppleTerminalView.swift:195-220 \u2014 These two members are one piece of code written twice and then edited apart: 22 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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad04884ea0a4cc23a65b2053886971f250ebe6d54c2e8e14cb683a7c47b0457"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:3885-3905 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:2039-2059 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":3885}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbc45cde44977263518d3c6c759751818a6b30fbb94033497ab0c073742ec81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Sources/SwiftTerm/ByteRunScanner.swift:324-355 | Sources/SwiftTerm/ByteRunScanner.swift:357-388 \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/SwiftTerm/ByteRunScanner.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d3e6be894cfb13201b24b98f1f71c0325f1901f62eeaf5b7fb12da2cf8083f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/SwiftTerm/iOS/iOSDoubleButton.swift:93-110 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3634-3650 \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/SwiftTerm/iOS/iOSDoubleButton.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7521b9e6abae9ec280184bbc380580f794833ec9b3048077af8c03716d975bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/SwiftTerm/BufferLine.swift:696-718 | Sources/SwiftTerm/BufferLine.swift:727-749 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/BufferLine.swift"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"229ed6fd1d5beedb9a13a5eaa64154e37316775574dc8a88c657623cd196f335"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): Sources/SwiftTerm/ByteRunScanner.swift:34-63 | Sources/SwiftTerm/ByteRunScanner.swift:81-110 | Sources/SwiftTerm/ByteRunScanner.swift:117-149 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 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/SwiftTerm/ByteRunScanner.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7285afc22e4fe9576c26aad673ca8639c0e106aa67e1888defd27a6a65d29dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:398-425 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:394-421 \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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"deac8138caf70bcf17eb8006edc6009b588efb8acab5952f71d0f66751d4f2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4620-4642 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4644-4669 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":4620}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c7c0d531a834427993279d6f789cff51712935729f7ffef5c52d00cb6cf973"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:483-506 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:487-510 \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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"c097d6759024d60fdbaf34277de1e7e1ccccb80725bf2b62d1abd189ae13f544"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/SwiftTerm/Apple/AppleTerminalView.swift:2927-2949 | Sources/SwiftTerm/Terminal.swift:9945-9967 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":2927}}}],"partialFingerprints":{"codehealthFindingId/v1":"929200e6f0150b55847db8db0de41aee9e86a44ab8eba0b9a002ec78a2357ff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/SwiftTerm/Mac/MacExtensions.swift:44-56 | Sources/SwiftTerm/iOS/iOSExtensions.swift:32-41 \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/SwiftTerm/Mac/MacExtensions.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6acd4d2345ce4ed1eca681a9575dc44590f8d1753f5ec81218e2ccaeb0facf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:3852-3868 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:3907-3932 \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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":3852}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9e279408ce724024cfba5477ace0d02fecc856c324b845959149238774180d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SwiftTerm/Apple/BoxDrawingRenderer.swift:475-485 | Sources/SwiftTerm/Apple/BoxDrawingRenderer.swift:487-497 \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/SwiftTerm/Apple/BoxDrawingRenderer.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"86314ccae4013747a0f1599494315c1eb266c89431a6c86a497f3ef74f6b80a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/SwiftTerm/Profiling.swift:568-587 | Sources/SwiftTerm/Profiling.swift:589-603 \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/SwiftTerm/Profiling.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4dae7cb9d0d7ad2c514dee964350bcfec4d4bd378bfae13b89ad1ab84c12ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/SwiftTerm/CellStorage.swift:692-709 | Sources/SwiftTerm/CellStorage.swift:751-767 \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/SwiftTerm/CellStorage.swift"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"caad67488bc0dc2b95f333a6672292bd2822784dd968421a693b46288e096dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SwiftTerm/Mac/MacKeyboardRouter.swift:931-939 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:2551-2559 \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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"6585ca48abb07eb9f90e909273a964bc3efd59caa533a08755015560ec304cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/SwiftTerm/iOS/iOSTerminalView.swift:4140-4158 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:4166-4186 \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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":4140}}}],"partialFingerprints":{"codehealthFindingId/v1":"975c4e7069c7969e06c7905f5873031dbf462de7493c6a2d249927f1a0ff859c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:548-568 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:551-570 \u2014 These two members are one piece of code written twice and then edited apart: 20 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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d245adab79965f08995d3f024bbdc4398af8bfb883454d19437e93d4342c58a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SwiftTerm/Mac/MacExtensions.swift:16-29 | Sources/SwiftTerm/iOS/iOSExtensions.swift:13-21 \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/SwiftTerm/Mac/MacExtensions.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"336786e5f69b523f5f991c0c8ca35e6efaa1726afbabf9f656e183f1aa83768b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/SwiftTerm/LineChangeTracker.swift:58-71 | Sources/SwiftTerm/LineChangeTracker.swift:79-98 \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/SwiftTerm/LineChangeTracker.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd0e77e9d4a90017a6d7ff52d4396731f9972622a69383a3a588bfe38d0ac66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/SwiftTerm/TerminalViewSearch.swift:21-43 | Sources/SwiftTerm/TerminalViewSearch.swift:51-73 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/TerminalViewSearch.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e394e8e2db4dae5baab28aaac47463e67b9533cb1ef455e961796b20e203b19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/SwiftTerm/CellStorage.swift:831-846 | Sources/SwiftTerm/CellStorage.swift:847-863 \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/SwiftTerm/CellStorage.swift"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83a9b1bc1816985baab4d017f8658a3b2915dd31623f784d26f4343c7ad2cce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:244-258 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:249-265 \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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"725fabba29b01f0a5269d0e83e271e50b0a7f9b1fc68e3032fc5dfa18377e939"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:338-347 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:334-343 \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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23b72856aa925d76899eea4194970b237abbc3b9dc665ecbb74072ad236186d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/SwiftTerm/Terminal.swift:2006-2039 | Sources/SwiftTerm/Terminal.swift:2060-2084 \u2014 These two members are one piece of code written twice and then edited apart: 25 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/SwiftTerm/Terminal.swift"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdc911f4b17cc208e6dc94bcffb6962e31eff41fb82bf473f982cf938109786"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:4037-4053 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3736-3751 \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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":4037}}}],"partialFingerprints":{"codehealthFindingId/v1":"c678617dc541cc9bbd59fb8c556cbb72ba6446f4971725642e648cba2c241211"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SwiftTerm/iOS/iOSTerminalView.swift:4220-4230 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:4243-4253 \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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":4220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbbf9bd54018082af77aeb29e3134000d7f03f59cee2954e89889273c7dab81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/SwiftTerm/KittyKeyboardEncoder.swift:508-531 | Sources/SwiftTerm/KittyKeyboardEncoder.swift:533-549 \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/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7eebaa5db34185d7048701611d553ca78f9c1735e94a32da030bd211fdf39c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/SwiftTerm/Apple/TerminalBidi.swift:1124-1141 | Sources/SwiftTerm/Apple/TerminalBidi.swift:1143-1157 \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/SwiftTerm/Apple/TerminalBidi.swift"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"03024162e480e12e86ad7236556e4579525fc1b600b8e2c05977994942bcd59a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/SwiftTerm/CellStorage.swift:148-166 | Sources/SwiftTerm/CellStorage.swift:170-186 \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/SwiftTerm/CellStorage.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4596e2ee7296175b353bb4f1df3de33266b9ba62ff28aba6091bdac8d412680c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): Sources/SwiftTerm/Apple/AppleTerminalView.swift:1390-1412 | Sources/SwiftTerm/Apple/AppleTerminalView.swift:1414-1440 | Sources/SwiftTerm/Apple/AppleTerminalView.swift:1442-1470 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"10244a183bee21017a8da55eb5f6a76ec99ecbdc03daabdefbcac2197d25957a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/SwiftTerm/SearchService.swift:57-73 | Sources/SwiftTerm/SearchService.swift:75-91 \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/SwiftTerm/SearchService.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd5405c4f3ff482df9ca7df2ae4a6418dc7d9e5a6c9995640e1de7cedaa8867"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/SwiftTerm/Mac/MacKeyboardRouter.swift:1319-1331 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:2800-2813 \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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"725e928f4de095f02ece78697b6b59311ba84cfa07a824a0e0399ad4138b3ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:3051-3059 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:1009-1017 \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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":3051}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d7d7b15a76018fb3525721acf27a7ce861ec3a7bee6e4b08f0191b7cb3d0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Sources/SwiftTerm/ByteRunScanner.swift:152-166 | Sources/SwiftTerm/ByteRunScanner.swift:168-182 | Sources/SwiftTerm/ByteRunScanner.swift:184-202 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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/SwiftTerm/ByteRunScanner.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"051190173b6108e58c1010b19dd637da802396066ab61c0b6aa24deb23d478c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/SwiftTerm/Terminal.swift:2717-2729 | Sources/SwiftTerm/Terminal.swift:2731-2743 \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/SwiftTerm/Terminal.swift"},"region":{"startLine":2717}}}],"partialFingerprints":{"codehealthFindingId/v1":"de425d56cfe2f136349c224e0cf9daef7bfe9fd657c9e9b128b0a26f671e29ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/SwiftTerm/Terminal.swift:10355-10371 | Sources/SwiftTerm/Terminal.swift:10373-10394 \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/SwiftTerm/Terminal.swift"},"region":{"startLine":10355}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fbbf5d29ad55cef39dbc4ab51c6f845fb202f16a5bc407b38b5459eb6d2886"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/SwiftTerm/Mac/MacKeyboardRouter.swift:1117-1128 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:2825-2836 \u2014 These two members are one piece of code written twice and then edited apart: 12 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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"024e932d8eac34d47426927360d7956f6f49c58dc719e9c18e1c21217da8dcfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/SwiftTermWebWasm/Exports.swift:89-108 | Sources/SwiftTermWebWasm/Exports.swift:110-128 \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/SwiftTermWebWasm/Exports.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec5d879f4410addd5110c16d2a4f9d8dbfbb1527b75058f8b760b48daeeb01f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/SwiftTerm/Apple/AppleTerminalView.swift:910-922 | Sources/SwiftTerm/Apple/AppleTerminalView.swift:3091-3107 \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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fa53a42cb76c4c9fdfbf009bb39807a21c559e1d879f609d397511ecaae683"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SwiftTerm/ByteRunScanner.swift:20-30 | Sources/SwiftTerm/ByteRunScanner.swift:67-77 \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/SwiftTerm/ByteRunScanner.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1681b8dcc2bae36d2b9df013522cfa6e7d5a42cf7dfbb70ce831451bbe428323"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SwiftTermWebWasm/Exports.swift:148-159 | Sources/SwiftTermWebWasm/SelectionExports.swift:3-13 \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/SwiftTermWebWasm/Exports.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"1514bee9831a4c608d5dcd1364aa74daade84301531a523794a391ef64c5a09d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:3710-3723 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:3747-3757 \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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":3710}}}],"partialFingerprints":{"codehealthFindingId/v1":"37617f32f58c695eae36b3ef0da1c7a48dce1ca9c0fd0e6eefdfee05fbee3548"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:153-158 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:149-154 \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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0b31d4878bd0ef7455690dcba75457271d7d7faaccc8cca1f6458864d67a7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/SwiftTerm/iOS/iOSTerminalView.swift:4188-4197 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:4232-4241 \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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":4188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c57f6d9e03566050731d2b50dff24caafd16f8cfbb846f3794f5ffa08d72f07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/SwiftTerm/Terminal.swift:8351-8365 | Sources/SwiftTerm/Terminal.swift:8413-8425 \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/SwiftTerm/Terminal.swift"},"region":{"startLine":8351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4a388ae47f16c935cc29879f75a6fd8e68d228a7857f3fb9c543c118b5f5e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SwiftTerm/KittyGraphics.swift:2160-2168 | Sources/SwiftTerm/KittyGraphics.swift:2184-2196 \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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":2160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce4602d3d90febed311b6a960bc2afa3f0f4d38a3857017c636d355b64bc727"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:300-313 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:2268-2291 \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/SwiftTerm/iOS/iOSTerminalRenderView.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e848ed7ab3a46cf0b67a84093c2ba8a2ffca5b3d5fd9ea84e7d92972186b59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/SwiftTerm/iOS/iOSTerminalView.swift:1236-1250 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:1352-1366 \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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb984ad5bc3b5e257654fe8a9688e7c4efbccbff3ae05b5dd913e21607fa44e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift:222-235 | Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift:239-254 \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/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa8ddb664732e145e0545983402fc36aebf9c360265b9f65cc1d7a166675dd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/SwiftTerm/Terminal.swift:8130-8152 | Sources/SwiftTerm/Terminal.swift:8155-8178 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":8130}}}],"partialFingerprints":{"codehealthFindingId/v1":"765c0138aa1e431cf33fbdff31e3c4445d776998d7dc40f5e74ea1ebf3fd4b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:190-201 | Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:203-214 \u2014 These two members are one piece of code written twice and then edited apart: 12 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/SwiftTerm/Mac/MacLocalTerminalView.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be8ccf76550bee0a9ba33719ca758230425600bf2f8f2be62475863fffe6dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:1246-1271 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:702-720 \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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9b46fc8120108473646488830ed75ab04935a9e48c3e0ffe8f266f6f0095f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SwiftTerm/KittyGraphics.swift:2100-2110 | Sources/SwiftTerm/KittyGraphics.swift:2204-2212 \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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":2100}}}],"partialFingerprints":{"codehealthFindingId/v1":"25303a665945c3b0a56acb83a8d8a9237a112268b3bf02826ed745e09c362a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/SwiftTerm/CircularList.swift:588-606 | Sources/SwiftTerm/CircularList.swift:610-623 \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/SwiftTerm/CircularList.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7127916fa0cd502f40828b6fdadbb74144c05a2624cf70d5222bb769091a1c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:143-147 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:139-143 \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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd646b52fb9c842b1efe44ef1886b7ffde9bc666e5f4493041c60cf4a0a85960"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/SwiftTerm/Terminal.swift:4491-4506 | Sources/SwiftTerm/Terminal.swift:4512-4532 \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/SwiftTerm/Terminal.swift"},"region":{"startLine":4491}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12fe74d4bb373510fd048e15371f3e40b39476f33a6313e8b06d1ad6074e4e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/SwiftTerm/CellStorage.swift:546-559 | Sources/SwiftTerm/CellStorage.swift:563-572 \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/SwiftTerm/CellStorage.swift"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"99330c3d9da7d46914de289cd4a5e13392fdea60f6a13f831d8c3dbd4f2fd3d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Sources/SwiftTerm/LocalProcess.swift:602-605 | Sources/SwiftTerm/LocalProcess.swift:610-613 | Sources/SwiftTerm/Mac/MacLocalTerminalView.swift:479-486 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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/SwiftTerm/LocalProcess.swift"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"9307bf705d741b5331c4d61e69c9219ca4ddc53cfe60a32aaf87739337d518e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/SwiftTerm/Terminal.swift:3775-3788 | Sources/SwiftTerm/Terminal.swift:3791-3804 \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/SwiftTerm/Terminal.swift"},"region":{"startLine":3775}}}],"partialFingerprints":{"codehealthFindingId/v1":"546f27f3c4db3220be64373c07966f717f71e91276e256e3ecd1c1406102bcb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:1723-1729 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:2018-2024 \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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":1723}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f3ff0f36c519c5656d58dea41affe8699e2664dc75cc47eb96a15b27b16f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:4099-4115 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3077-3090 \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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":4099}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e41dd3810494db8d7eb2a42ad38d4a06bafcd1ca86d18b579fa0a14695fb96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 7\u002B corresponding lines): Sources/SwiftTermWebWasm/Exports.swift:203-209 | Sources/SwiftTermWebWasm/Exports.swift:229-235 | Sources/SwiftTermWebWasm/Exports.swift:270-276 | Sources/SwiftTermWebWasm/GraphicsExports.swift:192-198 | Sources/SwiftTermWebWasm/SelectionExports.swift:66-72 | Sources/SwiftTermWebWasm/SelectionExports.swift:88-94 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTermWebWasm/Exports.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee40925ebcbf80ea03cc28399c52f17f9e1ba3af35d67e7002edf3661c7a8143"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/SwiftTerm/TerminalIOPipeline.swift:60-67 | Sources/SwiftTerm/TerminalIOPipeline.swift:69-76 \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/SwiftTerm/TerminalIOPipeline.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1329d12c6e56e08c1d7ba4eecd9ad58b1d6b08b0d09491ee3f2c4147fe7bfd4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/SwiftTerm/HangulInput.swift:189-198 | Sources/SwiftTerm/HangulInput.swift:203-213 \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/SwiftTerm/HangulInput.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb6dfeca91c0d64b699b0309a5587ab4e28d642a0546f19c4282fcb12bb5333"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:4089-4097 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3829-3837 \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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":4089}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db93d1167791e0f4556f4772a9a87849b2061765fb1bdbf5951de2ad3144c20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SwiftTerm/Profiling.swift:236-244 | Sources/SwiftTerm/Profiling.swift:246-254 \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/SwiftTerm/Profiling.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"54aca669559df8b049b241b6ad357588e03d5248c718c3cfc6986204e58c8154"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SwiftTerm/Apple/TerminalRenderOwner.swift:841-852 | Sources/SwiftTerm/Apple/TerminalRenderOwner.swift:942-952 \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/SwiftTerm/Apple/TerminalRenderOwner.swift"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"742fcfa9526962908a0e4fbf269f59db8aef65945bf31dc23f733f9e5c4ccdee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/SwiftTerm/CellStorage.swift:909-920 | Sources/SwiftTermWebWasm/SnapshotEncoder.swift:19-32 \u2014 These two members are one piece of code written twice and then edited apart: 12 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/SwiftTerm/CellStorage.swift"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7758a26e3ede86dde0c5cf708116d84b94ba6637a9b26f0aeb90391aaa3602"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SwiftTerm/Apple/AppleTerminalView.swift:4649-4662 | Sources/SwiftTerm/Apple/TerminalRenderOwner.swift:715-725 \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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":4649}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba45a65ec7512b794d7e963cf2ef23d16ff14155a3b715d37c3dbde44a7ea75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SwiftTerm/Locked.swift:115-125 | Sources/SwiftTerm/Locked.swift:185-195 \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/SwiftTerm/Locked.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"33af8395d3ae3b10dd271162f9ecb1f6adbcc3dc8f6dd2b52f6447ba0a0b7611"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:161-167 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:157-162 \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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ef81f4168df4831d67fc686048e7b9b34bd8909e2c9919a251bbd5bc46b790"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): TerminalApp/iOSTerminal/UIKitSshTerminalView.swift:264-277 | TerminalApp/iOSTerminal/UIKitSshTerminalView.swift:318-330 \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":"TerminalApp/iOSTerminal/UIKitSshTerminalView.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"45bd3508cccb85cca061e7636a3ed48d45e613bb78498603149650775c29327f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/SwiftTerm/Terminal.swift:6983-6996 | Sources/SwiftTerm/Terminal.swift:7227-7240 \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/SwiftTerm/Terminal.swift"},"region":{"startLine":6983}}}],"partialFingerprints":{"codehealthFindingId/v1":"953f214de8438b219981131946947e9c49e39011b6f8beef86e2b2bf86d20f19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/SwiftTermWebWasm/GraphicsExports.swift:172-183 | Sources/SwiftTermWebWasm/GraphicsExports.swift:200-211 \u2014 These two members are one piece of code written twice and then edited apart: 12 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/SwiftTermWebWasm/GraphicsExports.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"183d8291dee589e8d548e1a5ee038d61a74a3322389915d722caeed068410400"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:428-441 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:424-437 \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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"247f5c812cd25204df1bba2467129e3a71a5779c2713344f3dffdd80e7e57bfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/SwiftTerm/Terminal.swift:4653-4660 | Sources/SwiftTerm/Terminal.swift:7615-7623 \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/SwiftTerm/Terminal.swift"},"region":{"startLine":4653}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c9ad2ead02ec2a96da0079fb126afeba310bfe9ff6611d8aef2acca5d344a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/SwiftTerm/Terminal.swift:7425-7437 | Sources/SwiftTerm/Terminal.swift:7444-7456 \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/SwiftTerm/Terminal.swift"},"region":{"startLine":7425}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9fa71813b87d9c3db4c15c535f0120d54356de09e61c1c87f815bb92c55297b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:559-567 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:452-458 \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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc455dd0e62d00a4b6ff764f4a07cf8d1b282c5975fe87beec7c1051801aaad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:4081-4087 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3821-3827 \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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":4081}}}],"partialFingerprints":{"codehealthFindingId/v1":"116c8224646ba029ed1173600228766167b915d6b40b8ef2952444fadffea4da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:1228-1237 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:685-693 \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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4ec371e494c17a7e19411f448fc7fcf9176fab6d437f7870614c5170edb83f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/SwiftTerm/KittyKeyboardEncoder.swift:935-942 | Sources/SwiftTerm/Mac/MacKeyboardRouter.swift:1346-1354 \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/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f447b0a0dffea0f071fafe9236f06f479b53ed1fc315f16fdf3d4384ff5732f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:1296-1306 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:1743-1753 \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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"076861722e5cec5702224d1fbb5679a7cb70f6cfcef9585e8b99f47d789ee95b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/SwiftTermWebWasm/Exports.swift:196-201 | Sources/SwiftTermWebWasm/GraphicsExports.swift:185-190 | Sources/SwiftTermWebWasm/InputExports.swift:13-18 \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/SwiftTermWebWasm/Exports.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e0a58ab9479d7da22e243d90b9084a5a4f4cca792df09b96010d76bbb21afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/SwiftTermWebWasm/Exports.swift:222-227 | Sources/SwiftTermWebWasm/GraphicsExports.swift:185-190 | Sources/SwiftTermWebWasm/InputExports.swift:6-11 \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/SwiftTermWebWasm/Exports.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7fe2a58a1bfc05f68d0cfcedc76f036ad9b4a984397f07607c5bfa6d97aa80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/SwiftTerm/Mac/MacExtensions.swift:64-71 | Sources/SwiftTerm/iOS/iOSExtensions.swift:52-58 \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/SwiftTerm/Mac/MacExtensions.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d74764a9caa3e3199403ae5d5238d744773253eb51c0e034ac65b29a8d7c094"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:579-586 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:469-477 \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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1271a34525209599004b05c17255f62497a0201da5faf9b7061bc9cb15348c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/SwiftTerm/Apple/AppleTerminalView.swift:1880-1886 | Sources/SwiftTerm/Terminal.swift:1880-1885 \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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7ad20328daff1c48a15411ea33b792d431e0d0379eb9a4c6dcc0ddacd2ffb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/SwiftTerm/DECPrivateModes.swift:32-37 | Sources/SwiftTerm/KittyGraphicsSnapshot.swift:37-42 \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/SwiftTerm/DECPrivateModes.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"970084f8c80c2e5222c3ddaf0a16ac83a29440f850803ea02433cd49e05828ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/SwiftTerm/Mac/MacKeyboardRouter.swift:28-34 | Sources/SwiftTerm/SearchOptions.swift:21-25 \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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"094c1e014cb0a5411def7ddce922dccd89d3bcdeb61498caf94cfef3d659e81a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/SwiftTerm/Portable/WASIHostEvents.swift:13-15 | Sources/SwiftTerm/TerminalLock.swift:116-119 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Portable/WASIHostEvents.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd075a38f37612100005c1e924ed7a9b67d9bb34fd7ac34bdb5e2d0774af727"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/SwiftTerm/Portable/WASIHostEvents.swift:16-18 | Sources/SwiftTerm/TerminalLock.swift:109-114 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Portable/WASIHostEvents.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6dd8ca6915caa1389c4d42bdc16910a686c00149234f83add6133c79787701d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:3046-3049 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:1004-1007 \u2014 These two members are one piece of code written twice and then edited apart: 4 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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":3046}}}],"partialFingerprints":{"codehealthFindingId/v1":"0028d6a5c879f9850bcbceed45372d55a8e6fe4d08f814c7164596e79f769609"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:221-224 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:220-223 \u2014 These two members are one piece of code written twice and then edited apart: 4 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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6c48d700974d7f39f9bad8382af73f795fb419da178a56f3d5f42c3f0b26c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/SwiftTerm/Mac/MacTerminalView.swift:1221-1226 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:679-683 \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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ef95f9b29cf57592cde28c7199f4115fbfd1f00656ed46a6dfc58eed163a28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): Sources/SwiftTerm/Mac/MacCaretView.swift:61-86 | Sources/SwiftTerm/iOS/iOSCaretView.swift:94-118 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacCaretView.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5d8c6df164e969f066133b0447aa81b9f26df1abdaf37e80c688b2c1a0e070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): Sources/SwiftTerm/CircularList.swift:172-196 | Sources/SwiftTerm/CircularList.swift:543-563 \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/SwiftTerm/CircularList.swift:172\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/SwiftTerm/CircularList.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b81497d996e6f7c0b5a325543ec9bb22b3fdff3eb83faa6460590d2c7b52f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/SwiftTerm/Apple/AppleTerminalView.swift:3881-3902 | Sources/SwiftTerm/Apple/CaretView.swift:115-136 \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/SwiftTerm/Apple/AppleTerminalView.swift:3881\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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3881}}}],"partialFingerprints":{"codehealthFindingId/v1":"163264803ed9b49af16398b6f5dafc68d80d723c16eee69750e6acbf22304411"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:398-417 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:394-413 \u2014 before extracting anything, compare \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift\u0060 and \u0060Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:398\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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"101349b5b94ccc8fbc685b34f04be778d5f39cee93e79ddf79e20be1c462c46a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:4206-4225 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3872-3891 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":4206}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9eb0660b8ad45108c5fd45faf52ed72d8165c84ce4228a02a6b0d01c2cddb58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): Sources/SwiftTerm/Apple/TerminalSnapshot.swift:535-553 | Sources/SwiftTerm/Apple/TerminalSnapshot.swift:781-796 \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/SwiftTerm/Apple/TerminalSnapshot.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"438a313df8e64503c2ccf98e26411a1e901d86e5f984657706e7f3c6129efe94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/SwiftTerm/Profiling.swift:79-97 | Sources/SwiftTerm/Profiling.swift:100-118 \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/SwiftTerm/Profiling.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d5b9135eed11d1c68be8a315d5ded0640f3b90a336797ced93580b30f56fe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Sources/SwiftTerm/Apple/AppleTerminalView.swift:3160-3177 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4577-4593 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3160}}}],"partialFingerprints":{"codehealthFindingId/v1":"36cafb2faf917ecf12cc84224649787238217e4bbe835ee05176b237490db2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/SwiftTerm/iOS/iOSTerminalView.swift:3295-3312 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3341-3358 \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/SwiftTerm/iOS/iOSTerminalView.swift:3295\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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":3295}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05e49c91eacbde080a38d31bb9e0db08942c8d8f41a88556a163a8e51176226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201317 lines \u00D7 3): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2544-2547 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4442-4458 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4596-4612 \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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4442\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4458\u0060 calls \u0060transformPoint\u0060, \u0060CGPoint\u0060, \u0060min\u0060 and \u0060Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2547\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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":2544}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65e14981a1bf91694271ddd7e3031220dabff6408654cfd816ecea20dc9882c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift:310-325 | Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift:852-866 \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/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"228d87eaa10a6da83891e6f0094f22b8af5485a42710be81fade0e28d2e0db70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/SwiftTerm/Buffer.swift:1891-1906 | Sources/SwiftTerm/Buffer.swift:1937-1952 \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/SwiftTerm/Buffer.swift:1891\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/SwiftTerm/Buffer.swift"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"8458c6eaee66bbc4bc60fdfe0eeda535f1b6903f001d7a80d7b65f94c76086bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Docs/prototypes/futex-ticket-lock/main.swift:94-108 | Docs/prototypes/futex-ticket-lock/main.swift:165-179 \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 register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Docs/prototypes/futex-ticket-lock/main.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5726ce7577b60f28f944f106c59a44da6a695ed28178b440ab58a9d1fc816e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:2928-2942 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:892-906 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Mac/MacTerminalView.swift:2928\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":2928}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78937eebd58df300ad5f360b788970627772e11675254dc9f2d49d5e23184ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): Sources/SwiftTerm/CharSets.swift:97-110 | Sources/SwiftTerm/CharSets.swift:132-145 | Sources/SwiftTerm/CharSets.swift:150-163 | Sources/SwiftTerm/CharSets.swift:166-179 | Sources/SwiftTerm/CharSets.swift:184-197 | Sources/SwiftTerm/CharSets.swift:219-232 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/CharSets.swift:97\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/SwiftTerm/CharSets.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de8467245630681ba79a52acb23ec3c9e7b8c3d74147c1f3e1ff05914ec834d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:483-496 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:487-500 \u2014 before extracting anything, compare \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift\u0060 and \u0060Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:483\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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2dd225940cbea71667ba4cb883f57cb121fce270df38c67274936f3c2827416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:4021-4034 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3723-3733 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":4021}}}],"partialFingerprints":{"codehealthFindingId/v1":"6774dced79dc77e8ca1d4d4973e424132062ebed17a9acd2ea1d0edd59eab530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Sources/SwiftTerm/SearchEngine.swift:53-66 | Sources/SwiftTerm/SearchEngine.swift:126-137 \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/SwiftTerm/SearchEngine.swift:53\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/SwiftTerm/SearchEngine.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"440ea96251e58986b4e5cd71d933fddeded668396c5c77a7ed579db939107bf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/SwiftTerm/iOS/iOSTerminalView.swift:2997-3010 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3030-3043 \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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":2997}}}],"partialFingerprints":{"codehealthFindingId/v1":"71edda686d1eef54b5d421ebf9c31f3fa2cf86a8a9628c2395542ef98187f3a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): Sources/SwiftTerm/BufferLine.swift:402-413 | Sources/SwiftTerm/BufferLine.swift:435-446 | Sources/SwiftTerm/BufferLine.swift:473-485 \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/SwiftTerm/BufferLine.swift:473\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SwiftTerm/BufferLine.swift:472\u0060 calls \u0060precondition\u0060 and \u0060Sources/SwiftTerm/BufferLine.swift:401\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/SwiftTerm/BufferLine.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53bf2a0a0bf19cf4b5faa4628d0267536cd200727086ad218217abc0a440a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/SwiftTerm/Apple/TerminalSnapshot.swift:566-578 | Sources/SwiftTerm/Apple/TerminalSnapshot.swift:809-821 \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/SwiftTerm/Apple/TerminalSnapshot.swift:566\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SwiftTerm/Apple/TerminalSnapshot.swift:581\u0060 calls \u0060completePendingBidi\u0060 and \u0060Sources/SwiftTerm/Apple/TerminalSnapshot.swift:823\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/SwiftTerm/Apple/TerminalSnapshot.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f996a3ce81afed48fd663d1f8279f49c9d20dd832535d6d10e346abc7c6312e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/SwiftTerm/KittyGraphics.swift:1320-1332 | Sources/SwiftTerm/KittyGraphics.swift:1359-1370 \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/SwiftTerm/KittyGraphics.swift:1320\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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f567a5bcc2af0e81814ae637149dc59fc74bc6b15d4d0bd1eb4917d8525234"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/SwiftTerm/KittyGraphics.swift:2397-2409 | Sources/SwiftTerm/KittyGraphics.swift:2423-2435 \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/SwiftTerm/KittyGraphics.swift:2397\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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":2397}}}],"partialFingerprints":{"codehealthFindingId/v1":"71975647d2a1af11494fedef0c278a14f6b0aa1e97cc4589124c33d84423d83e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/SwiftTerm/SelectionService.swift:846-858 | Sources/SwiftTerm/SelectionService.swift:884-896 \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/SwiftTerm/SelectionService.swift:846\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/SwiftTerm/SelectionService.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f24dc22982d619ed9470fa47abb8c2f275887f5dc649d9752fd8dbf946d26dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201313 lines \u00D7 2): Sources/SwiftTerm/Terminal.swift:10494-10506 | Sources/SwiftTerm/Terminal.swift:10530-10537 \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/SwiftTerm/Terminal.swift:10530\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SwiftTerm/Terminal.swift:10529\u0060 calls \u0060translateBufferLineToString\u0060 and \u0060Sources/SwiftTerm/Terminal.swift:10492\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/SwiftTerm/Terminal.swift"},"region":{"startLine":10494}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc3fa28f5c2eb085f213219cc8d6bc112c1fb89fba9fe5338dbbf5bc594ff30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Docs/prototypes/futex-ticket-lock/main.swift:136-147 | Docs/prototypes/futex-ticket-lock/noshim.swift:50-61 \u2014 before extracting anything, compare \u0060Docs/prototypes/futex-ticket-lock/main.swift\u0060 and \u0060Docs/prototypes/futex-ticket-lock/noshim.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Docs/prototypes/futex-ticket-lock/main.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16b00d9c575ff356d02c0d5324e86d3b4c750dd1f236b6197e93ff2b18b784a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/SwiftTerm/Apple/BoxDrawingRenderer.swift:274-285 | Sources/SwiftTerm/Apple/BoxDrawingRenderer.swift:289-300 \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/SwiftTerm/Apple/BoxDrawingRenderer.swift:274\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/BoxDrawingRenderer.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77c7b77406d830f8c73da2357ff7c6f0a4a61e756029e10289afa2deb071e58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/SwiftTerm/ByteRunScanner.swift:326-337 | Sources/SwiftTerm/ByteRunScanner.swift:359-370 \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/SwiftTerm/ByteRunScanner.swift:326\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/SwiftTerm/ByteRunScanner.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5abc328f400cfc2f3b8dbe3bbd4a37d670eb58dfb57e757cbd402f80e68165"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/SwiftTerm/Apple/AppleTerminalView.swift:2770-2780 | Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift:375-384 \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/SwiftTerm/Apple/AppleTerminalView.swift:2770\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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":2770}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b78bb68b5552493ef37f5aed8fe3d9836fec55c54b6f3ccbebbc6f51073bcac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/SwiftTerm/Apple/AppleTerminalView.swift:3134-3144 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4506-4516 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7745e112771b5521ddbfcb089b7e9b3b0e7941066cb8274cd63454b5b850803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Sources/SwiftTerm/Apple/AppleTerminalView.swift:3581-3589 | Sources/SwiftTerm/Apple/AppleTerminalView.swift:3594-3604 \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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3581}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba10f10e5bd412ce823d96bb2ca9774ac9692ba2e94f09f87b05211fd2670b3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/SwiftTerm/Apple/Metal/CoreTextGlyphRasterizer.swift:47-57 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:3306-3316 \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/SwiftTerm/Apple/Metal/CoreTextGlyphRasterizer.swift:47\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/SwiftTerm/Apple/Metal/CoreTextGlyphRasterizer.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33335cb0fd87f501a465426646b4245f6a071bf39e7f8aeba2dd8486109a30d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2773-2783 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2786-2796 \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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":2773}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e6fe4e0db1edcda8a9cb5146a0bb56897318034a65a1abfe9795fe7671e0cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:603-613 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:498-508 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"7427f688465b6d0a9718458da3b5919792860249b7357fa656b3c44b6244e0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:3586-3596 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:1645-1655 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Mac/MacTerminalView.swift:3586\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SwiftTerm/iOS/iOSTerminalView.swift:1644\u0060 calls \u0060calculateTapHit\u0060 and \u0060Sources/SwiftTerm/Mac/MacTerminalView.swift:3585\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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":3586}}}],"partialFingerprints":{"codehealthFindingId/v1":"474478342c345bca0eba08087aa8eaa48f3f8a3f800fbbd40cd2a7d9d890dc0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/SwiftTerm/SelectionService.swift:299-309 | Sources/SwiftTerm/SelectionService.swift:310-320 \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/SwiftTerm/SelectionService.swift:299\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/SwiftTerm/SelectionService.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd570f5c6bd753d47b5c1abdd7d9b5347914b737a30e63356549818b20333af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/SwiftTerm/Terminal.swift:2485-2495 | Sources/SwiftTerm/Terminal.swift:2518-2529 \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/SwiftTerm/Terminal.swift:2518\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":2485}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcb5a83aecfbda4367bcc7b3fb4ad93e44f2eb8a8b8a2f2e58f089693c4d3f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/SwiftTerm/Terminal.swift:7665-7675 | Sources/SwiftTerm/Terminal.swift:7720-7730 \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/SwiftTerm/Terminal.swift:7665\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/SwiftTerm/Terminal.swift"},"region":{"startLine":7665}}}],"partialFingerprints":{"codehealthFindingId/v1":"285adddb5b301ebe57dbd6cd86461230ead0be56b762c4f83bfc9fa3b1569ff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2532-2541 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4447-4456 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4601-4610 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2543\u0060 calls \u0060transformRect\u0060 and \u0060Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4457\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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":2532}}}],"partialFingerprints":{"codehealthFindingId/v1":"449ab0af85a9baa338529cad5f08e278c7d4871b2a723e5a5a54affe4d2e7cd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2565-2575 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2596-2606 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2618-2628 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":2565}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0748f9f7bcb43742dd36c8daa14a4c9473ee7d11c37040edded56ec7a91df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Docs/prototypes/futex-ticket-lock/main.swift:110-119 | Docs/prototypes/futex-ticket-lock/main.swift:180-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Docs/prototypes/futex-ticket-lock/main.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"37995082cffe7a1da62c95ddcb01929f403ad5c86dc454132a7cde9965bbe54a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/SwiftTerm/Apple/AppleTerminalView.swift:3929-3938 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2805-2814 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Apple/AppleTerminalView.swift:3929\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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3929}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefa2bbcdb4d77ec180b7a6a36344103890bac8fe62cd72f90ca10cb02170b44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/SwiftTerm/Apple/TerminalBidi.swift:760-769 | Sources/SwiftTerm/Apple/TerminalBidi.swift:1075-1084 \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/SwiftTerm/Apple/TerminalBidi.swift:760\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/SwiftTerm/Apple/TerminalBidi.swift"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d3d9a413ca4e90b9fb635f455d3bdcccba07436d86d0bac31615e3d78019e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:2956-2965 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:919-928 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Mac/MacTerminalView.swift:2956\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":2956}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a673d9d7c3233c17ab0f2ff016a8e2d054c5fb3d821a193660c1b47a4f0eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4625-4633 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4650-4658 \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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":4625}}}],"partialFingerprints":{"codehealthFindingId/v1":"690642b441d7c01ee69a318987008027e55d6020b98ed9d568c2bafab7c39a0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/SwiftTerm/Apple/TerminalSnapshot.swift:461-469 | Sources/SwiftTerm/Apple/TerminalSnapshot.swift:712-720 \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/SwiftTerm/Apple/TerminalSnapshot.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3cc151c428114bd3ad639eb98540a5782860f9f8a88e3ea68590957b723ef7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/SwiftTerm/CellStorage.swift:156-164 | Sources/SwiftTerm/CellStorage.swift:176-184 \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/SwiftTerm/CellStorage.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdda7e888e14fe0742d4569689b56cd14850b9ccaa7c9f0c4c707686ca0be5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/SwiftTerm/CellStorage.swift:832-840 | Sources/SwiftTerm/CellStorage.swift:848-856 \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/SwiftTerm/CellStorage.swift:832\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/SwiftTerm/CellStorage.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"174c27514b5a569cd5f1af68a6f21c4a492f48660fdb8f022bb5ea2a7721b127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/SwiftTerm/KittyGraphics.swift:1294-1302 | Sources/SwiftTerm/KittyGraphics.swift:1336-1344 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060base64Payload\u0060 to \u0060[UInt8]\u0060 in one and \u0060[UInt8]) -\u003E (payload: KittyGraphicsPayload?\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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f485b243b7a0bb61f6e047e91a24dbbc37e34d66b2fcc7e3a5c1c4083c0609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:4045-4053 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3743-3751 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Mac/MacTerminalView.swift:4045\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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":4045}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7478ca856d89cb8b5b11e7b7f61ee91b10e46f00cfffb6f677c55cdcebe0d3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/SwiftTerm/Profiling.swift:423-431 | Sources/SwiftTerm/Profiling.swift:456-464 \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/SwiftTerm/Profiling.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ab9cd255e4df25cb5ac9ddba23d5613926e17996d0f8bec9f56d5812e9c976"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/SwiftTerm/Apple/AppleTerminalView.swift:2770-2777 | Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift:375-382 | Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift:1192-1199 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Apple/AppleTerminalView.swift:2770\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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":2770}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21231046074998da6ccfa3903436de26a358a5a1e43acafbed63a9db6d68c0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:1982-1992 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2011-2021 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2035-2045 \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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:1982\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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1982}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5309128857b337a97c40b67745dfd2ed9ae03e58eda5cd77c33e0c9160e5e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/SwiftTerm/Apple/AppleTerminalView.swift:727-734 | Sources/SwiftTerm/Apple/TerminalSnapshot.swift:254-261 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"804165a39994e2d3326359924f1db65985db8ed8eccb7c33a2651ab9875f69b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/SwiftTerm/CellStorage.swift:457-464 | Sources/SwiftTerm/CellStorage.swift:629-635 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SwiftTerm/CellStorage.swift:455\u0060 calls \u0060preconditionFailure\u0060 and \u0060Sources/SwiftTerm/CellStorage.swift:628\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/SwiftTerm/CellStorage.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b754952a973501de5375632df8001c4f24c4ab0df8e6c8be6355b21ecc747f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/SwiftTerm/KittyGraphics.swift:2161-2168 | Sources/SwiftTerm/KittyGraphics.swift:2189-2196 \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/SwiftTerm/KittyGraphics.swift:2189\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":2161}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8b1f7835c189b766ed02365ac7a8d6b4c7c8e6276b8c87b5dbe1d33216a1d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:499-506 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:503-510 \u2014 before extracting anything, compare \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift\u0060 and \u0060Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:499\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/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"0084d9b1cc2b0bbc3b9881379f1155c2671a3e6948bfb3dfd2de39d9411826ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:3890-3896 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:2042-2049 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Mac/MacTerminalView.swift:3890\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060image\u0060 to \u0060NSImage\u0060 in one and \u0060UIImage\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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":3890}}}],"partialFingerprints":{"codehealthFindingId/v1":"e149d33496c2c6cfa81b951ae440051c271358e5c559118a6070de32173e71d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:4090-4097 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3830-3837 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":4090}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11ff9996f3b41252915859f1d8b81185a702dbe10067decd6f1c898dc3f5f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/SwiftTerm/Terminal.swift:2652-2659 | Sources/SwiftTerm/Terminal.swift:2665-2672 \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/SwiftTerm/Terminal.swift"},"region":{"startLine":2652}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d0818009dac98d8d52a38b202ac253f11639302b3364bea8f518dc9e2ca6b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/SwiftTerm/Apple/AppleTerminalView.swift:3287-3296 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:3246-3255 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9af26b3a231fa8d7b12bfb7d2b69fe524a713f8c39fbf6c37f4f02e38a7b5a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftTerm/CellStorage.swift:698-704 | Sources/SwiftTerm/CellStorage.swift:756-762 \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/SwiftTerm/CellStorage.swift:698\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/SwiftTerm/CellStorage.swift"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"700c00ae9ca9918318e529cca69c0725dcc5cc35126ee81cc79c157d93973074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftTerm/Terminal.swift:7683-7689 | Sources/SwiftTerm/Terminal.swift:7738-7744 \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/SwiftTerm/Terminal.swift:7683\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/SwiftTerm/Terminal.swift"},"region":{"startLine":7683}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3683acb6c1a6a21b20724784339cf01ad91e2ce4e0b39a368d927ed0d9d3e64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/SwiftTerm/ByteRunScanner.swift:36-41 | Sources/SwiftTerm/ByteRunScanner.swift:83-88 | Sources/SwiftTerm/ByteRunScanner.swift:120-126 \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/SwiftTerm/ByteRunScanner.swift:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/ByteRunScanner.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce23d745d1097cbdd2179e35afd2c3f118d3ae9570279350826f3882a1540de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:3669-3674 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:4125-4130 \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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":3669}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e6cd256a3b41dae7fa7dc7e1b623d2b634b104c08e7c5b8a745654a1017edd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftTerm/Terminal.swift:2625-2630 | Sources/SwiftTerm/Terminal.swift:2652-2659 \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/SwiftTerm/Terminal.swift:2625\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/SwiftTerm/Terminal.swift"},"region":{"startLine":2625}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25f426fe822d28c9e1cc869154b10dfb30968c4ebf90b34b534b7999bc11e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/SwiftTerm/Terminal.swift:6707-6713 | Sources/SwiftTerm/Terminal.swift:6715-6722 \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/SwiftTerm/Terminal.swift:6715\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":6707}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb33a2819f866790b792cd44176c966c57ae58a1ad0b85cfc92176b57e5e53d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftTerm/Terminal.swift:7693-7698 | Sources/SwiftTerm/Terminal.swift:7748-7753 \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/SwiftTerm/Terminal.swift:7693\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/SwiftTerm/Terminal.swift"},"region":{"startLine":7693}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b60e89dd78922e35b4fa59c3af08e35e4d75bcf981b089b935e419d9e196b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftTerm/TerminalViewSearch.swift:23-28 | Sources/SwiftTerm/TerminalViewSearch.swift:53-58 \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/SwiftTerm/TerminalViewSearch.swift:23\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/SwiftTerm/TerminalViewSearch.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6692744fd72a1a5f795b5d5c100d4bfdf160fd4458eabd14e54fbad9a43ad09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftTerm/iOS/iOSTerminalView.swift:4189-4194 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:4233-4238 \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/SwiftTerm/iOS/iOSTerminalView.swift:4189\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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":4189}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc89e751dcd1c6adbacba5e6d2fbf7374b562ec1b09c982d7007262fc77ff28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): TerminalApp/MacTerminal/ViewController.swift:939-948 | TerminalApp/MacTerminal/ViewController.swift:1003-1012 \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 \u0060TerminalApp/MacTerminal/ViewController.swift:939\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":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f34dfe33a2caaa6885c212ac19f3e1058d6eb7b85acada1b44e55ddd510813e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 11): Sources/SwiftTerm/CharSets.swift:61-65 | Sources/SwiftTerm/CharSets.swift:96-100 | Sources/SwiftTerm/CharSets.swift:113-117 | Sources/SwiftTerm/CharSets.swift:131-135 | Sources/SwiftTerm/CharSets.swift:149-153 | Sources/SwiftTerm/CharSets.swift:165-169 | Sources/SwiftTerm/CharSets.swift:183-187 | Sources/SwiftTerm/CharSets.swift:201-205 | Sources/SwiftTerm/CharSets.swift:218-222 | Sources/SwiftTerm/CharSets.swift:236-240 | Sources/SwiftTerm/CharSets.swift:257-261 \u2014 all 11 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/SwiftTerm/CharSets.swift:61\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SwiftTerm/CharSets.swift:118\u0060 calls \u0060Character\u0060 and \u0060Sources/SwiftTerm/CharSets.swift:107\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/SwiftTerm/CharSets.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd2962c1cbd361f20b1a82c78858f8663380cc6836c22e260c8615650536be5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/SwiftTerm/Terminal.swift:6707-6712 | Sources/SwiftTerm/Terminal.swift:6715-6720 | Sources/SwiftTerm/Terminal.swift:6736-6741 \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/SwiftTerm/Terminal.swift:6707\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":6707}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc9a6eb804203dafdc2faa26d46f2f6d009df9770ca6fd572ee00be15ac62ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SwiftTerm/Apple/BoxDrawingRenderer.swift:476-480 | Sources/SwiftTerm/Apple/BoxDrawingRenderer.swift:488-492 \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/SwiftTerm/Apple/BoxDrawingRenderer.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c152ba57ea87d72e2ee14607b69b7ba1845b2f98c93c2113decc2520580d4eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2207-2212 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2424-2428 \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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2207\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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5c003d9fbbdceccb03d5585d09dd5b5b2b774900c460053379afaf9bfbaf22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftTerm/KittyGraphics.swift:420-425 | Sources/SwiftTerm/KittyGraphics.swift:427-432 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SwiftTerm/KittyGraphics.swift:419\u0060 calls \u0060intValue\u0060 and \u0060Sources/SwiftTerm/KittyGraphics.swift:426\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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"3029bde4d16a7029ad2b75df764bd183e7e96330d41dd14939acd1897709700d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SwiftTerm/Mac/MacKeyboardRouter.swift:1118-1122 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:2826-2830 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Mac/MacKeyboardRouter.swift:1118\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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf5de2e88501334a464f9a4f38f77a703659745bb649f965d5f1bbff47930ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftTerm/iOS/iOSTerminalView.swift:4221-4227 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:4244-4250 \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/SwiftTerm/iOS/iOSTerminalView.swift:4221\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":4221}}}],"partialFingerprints":{"codehealthFindingId/v1":"58badfad7739c9011ae4c7e2bf057408e9cd118d20b4fdf750cc1551ff968f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftTermWebWasm/GraphicsExports.swift:59-64 | Sources/SwiftTermWebWasm/GraphicsExports.swift:73-78 \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/SwiftTermWebWasm/GraphicsExports.swift:59\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTermWebWasm/GraphicsExports.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8732127a0f28890d08fdded48fa7d85e28cc839c14b1d89309df77ff701a538e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): TerminalApp/MacTerminal/ViewController.swift:919-925 | TerminalApp/MacTerminal/ViewController.swift:987-993 \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 \u0060TerminalApp/MacTerminal/ViewController.swift:919\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060TerminalApp/MacTerminal/ViewController.swift:918\u0060 calls \u0060requestRedraw\u0060 and \u0060TerminalApp/MacTerminal/ViewController.swift:986\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":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba8c8cf62a73643a365b3eda697082f078785ebaca57eddef60fcc63c4331dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Docs/prototypes/futex-ticket-lock/main.swift:22-31 | Docs/prototypes/futex-ticket-lock/noshim.swift:22-31 \u2014 before extracting anything, compare \u0060Docs/prototypes/futex-ticket-lock/main.swift\u0060 and \u0060Docs/prototypes/futex-ticket-lock/noshim.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Docs/prototypes/futex-ticket-lock/main.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c439cf6428df86470653fbe327506f5a21030c84879f51c9222004250062141d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Docs/prototypes/futex-ticket-lock/main.swift:34-41 | Docs/prototypes/futex-ticket-lock/noshim.swift:34-41 \u2014 before extracting anything, compare \u0060Docs/prototypes/futex-ticket-lock/main.swift\u0060 and \u0060Docs/prototypes/futex-ticket-lock/noshim.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Docs/prototypes/futex-ticket-lock/main.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f2b265577bd612e3189a5d0b0d36ea1ec17170242c6a3fb1ee067b3c6c8010"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Docs/prototypes/futex-ticket-lock/main.swift:148-154 | Docs/prototypes/futex-ticket-lock/noshim.swift:62-68 \u2014 before extracting anything, compare \u0060Docs/prototypes/futex-ticket-lock/main.swift\u0060 and \u0060Docs/prototypes/futex-ticket-lock/noshim.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Docs/prototypes/futex-ticket-lock/main.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2938f2b19019ffe6dba89d185a294cf696e7922b6f3e9d0b4118db87d0a56051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftTerm/Apple/AppleTerminalView.swift:3280-3285 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:3239-3244 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3280}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8113caf5691d5d136318d29491b1ded1d6187a5216a8df81f73def0c4246dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/SwiftTerm/Mac/MacCaretView.swift:94-103 | Sources/SwiftTerm/iOS/iOSCaretView.swift:120-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacCaretView.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee7e295efd2a53ac92f4bd3024c1167012884cc65ffcb164599f1430b39287f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:172-176 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:167-171 \u2014 before extracting anything, compare \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift\u0060 and \u0060Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc24b12f7f29fd696f426d0674a9e131bf58244dd3bd51f34d78297ca747eb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:179-183 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:174-178 \u2014 before extracting anything, compare \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift\u0060 and \u0060Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"59521088851a26a0b2f542622f0f291fc714a29ec017b1d5c4b17567b3161926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:349-356 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:345-352 \u2014 before extracting anything, compare \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift\u0060 and \u0060Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1402d05260ccf50f2e68281491576d2979bd2a3760129bf0cdda33a9d9b4d13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:358-363 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:354-359 \u2014 before extracting anything, compare \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift\u0060 and \u0060Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f71144e231c78b26a6a6e2b08dbbefe8ad38ad94516eab29e5f3d064a8efc7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:365-372 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:361-368 \u2014 before extracting anything, compare \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift\u0060 and \u0060Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a61bc336005108c3bae3b7c5a58301d9b7f66c00ca97ccb6a97013d657b5132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:508-513 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:512-517 \u2014 before extracting anything, compare \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift\u0060 and \u0060Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cf3e78bf6c9deb05b5b705f4c2876f55e34d3956f613e12d9a94ecff987e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:515-519 | Sources/SwiftTerm/Mac/MacTerminalView.swift:1177-1181 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac020390c9e9e68aed91464e3e13494d02d3a932fffa222b4c84ef5f49b2828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:539-546 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:542-549 \u2014 before extracting anything, compare \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift\u0060 and \u0060Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c3b839be11c2e2716577b2f29161b513a7e0de257243d8d1c880824281786d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:582-588 | Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift:584-590 \u2014 before extracting anything, compare \u0060Sources/SwiftTerm/Mac/MacTerminalRenderView.swift\u0060 and \u0060Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"a311bf210f5fd6d072aaa66d282ee9318e5a4e7412c1dddc5b32de7368a7d723"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:639-650 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:547-558 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9b30916ef8b202c9712b736d815bd7f4d9ce3c7bcc231c4cb79f4c3c695df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:1691-1697 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:2007-2013 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7b36928e0c34088936b08b99dafbfe0d69dd9952c3b7ae21aa64a0f9c4f785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:3952-3956 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3660-3664 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":3952}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abff4576893c256adf4c9f3b873d63cc3e0c1e09685f709ddae4c1efd34264c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:4055-4059 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3753-3757 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":4055}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6841a06944da325058599d72ec25003854c04d4e35dea4c36e7500a1e3f260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:4190-4196 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3928-3934 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":4190}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac55254a9c19a1028762254e76c33835e7eaae2f2ac47c3e983d45fcff75c9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:4198-4204 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:3864-3870 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":4198}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f04fdbe89f3c93bcae8b9d30c349dfe634094180ba4aea71b96a81745eb8267"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftTerm/iOS/iOSAccessoryView.swift:60-66 | Sources/SwiftTerm/iOS/iOSKeyboardView.swift:24-30 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSAccessoryView.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1829a5b88fd35fe968c14a839c303b12a97a5891de98d2a6c1fe701ebd3ef56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftTerm/Apple/BellStyle.swift:49-54 | Sources/SwiftTerm/TerminalOptions.swift:54-59 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/BellStyle.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8068df698d1729e427ee92f771ea6c4f017a9fa5d56f42119eb7343fd49fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/SwiftTerm/Mac/MacTerminalView.swift:1285-1294 | Sources/SwiftTerm/iOS/iOSTerminalView.swift:1732-1741 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ed50da251415e05877bcfee952b0493d7912d28a60ac5dcdb4a83724c45ebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftTerm/iOS/SwiftUITerminalView.swift:50-56 | TerminalApp/iOSTerminal/TerminalHostViewController.swift:81-87 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/SwiftUITerminalView.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef038062f058ad67715f8a2c6c50b0e6d53300200c27451e09977c60e067bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SwiftTerm/Apple/AppleTerminalView.swift:186-190 | Sources/SwiftTerm/Apple/AppleTerminalView.swift:216-220 \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/SwiftTerm/Apple/AppleTerminalView.swift:186\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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f94d7960b244c8f57fea70a1c38cc9db96e995906ec590d448f780cc5a87592"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftTerm/Apple/AppleTerminalView.swift:309-315 | Sources/SwiftTerm/Mac/MacTerminalRenderView.swift:385-391 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Apple/AppleTerminalView.swift:309\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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d8c9c3c42658266f28305722f61e74c83382bf58f04b08c68673f9bbbf1ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SwiftTerm/Apple/AppleTerminalView.swift:3534-3539 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2707-2712 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3534}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec2a52bfa30d7caf652f2b566d132c822da7ca7dc0ce06c52cf2ca3312d4808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2214-2220 | Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift:2430-2436 \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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":2214}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f956e80b200ee2dc14f062f1e5c82ab07ac5f5768fdfbcb05ab2a499c1f6cdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/SwiftTerm/Colors.swift:466-470 | Sources/SwiftTerm/Colors.swift:471-475 | Sources/SwiftTerm/Colors.swift:476-480 | Sources/SwiftTerm/Colors.swift:481-485 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Colors.swift:466\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Colors.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ace35e27663a5528e9e2a1b37ef627ae689a5e61acaaf9dd0dcc109faa08f1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SwiftTerm/Mac/MacExtensions.swift:25-29 | Sources/SwiftTerm/iOS/iOSExtensions.swift:17-21 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SwiftTerm/Mac/MacExtensions.swift:25\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/SwiftTerm/Mac/MacExtensions.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdf1c38dfbb4641135e141c5dc80b1e833ef6b932b386ce7a19d329e0304cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): scripts/regen_unicode_width_data.py:118-143 | scripts/regen_unicode_width_data.py:147-173 | scripts/regen_unicode_width_data.py:177-205 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/regen_unicode_width_data.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"289f6c1cd4a1bfe441addef28193feb9de0f10a71eb1107acc698b7e64ccab50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): scripts/regen_unicode_width_data.py:255-269 | scripts/regen_unicode_width_data.py:273-287 | scripts/regen_unicode_width_data.py:291-305 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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":"scripts/regen_unicode_width_data.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a4c75d5456c373771e6de6655be4f6a8677243e3f7da693a036faa266262c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Tools/SwiftTermBenchmarks/Sources/VTEBenchWorkloads/VTEBenchWorkload.swift:347-365 | Tools/SwiftTermBenchmarks/Sources/VTEBenchWorkloads/VTEBenchWorkload.swift:370-385 \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":"Tools/SwiftTermBenchmarks/Sources/VTEBenchWorkloads/VTEBenchWorkload.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b126b2ce6cf5a5ba4517363eb42fc0caddfae80f0106ea9fadd70a290f3b200"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Tools/SwiftTermBenchmarks/Sources/VTEBenchWorkloads/VTEBenchWorkload.swift:387-397 | Tools/SwiftTermBenchmarks/Sources/VTEBenchWorkloads/VTEBenchWorkload.swift:399-407 \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":"Tools/SwiftTermBenchmarks/Sources/VTEBenchWorkloads/VTEBenchWorkload.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14af28a2f2dc6bebcaea66e733429c86137a741e625b211bfe5d21e94d6c50d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Tools/BidiHarness/BidiHarness/ArtifactCapture.swift:158-166 | Tools/BidiHarness/BidiHarness/SocketControlServer.swift:36-44 \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 \u0060Tools/BidiHarness/BidiHarness/ArtifactCapture.swift:158\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":"Tools/BidiHarness/BidiHarness/ArtifactCapture.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e7797beaf47b01b4ffe88eaf892600dae488d8e796d77e2a8a3ea899be9b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): scripts/regen_unicode_width_data.py:152-163 | scripts/regen_unicode_width_data.py:184-195 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/regen_unicode_width_data.py:181\u0060 calls \u0060split\u0060, \u0060strip\u0060 and \u0060scripts/regen_unicode_width_data.py:151\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":"scripts/regen_unicode_width_data.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"171ba3d416b5de14a0efa8107ac3258762f20577e55e8a03342773e80604d7e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): scripts/regen_unicode_width_data.py:257-268 | scripts/regen_unicode_width_data.py:275-286 \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":"scripts/regen_unicode_width_data.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f18f824a284b1c687ff3c28b6e6da2cc25325ff004898d982dc2f3f68aecb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): scripts/regen_unicode_width_data.py:365-374 | scripts/regen_unicode_width_data.py:410-418 \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 \u0060scripts/regen_unicode_width_data.py:365\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/regen_unicode_width_data.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"2945298f8c9be83e2efe723a52ed173929cec18199c0317950003196c8b4fb0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): scripts/regen_unicode_width_data.py:262-269 | scripts/regen_unicode_width_data.py:280-287 | scripts/regen_unicode_width_data.py:298-305 \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. 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":"scripts/regen_unicode_width_data.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"5082526c34d6ed41383c9ed069bf521990c2e43d99cb18537b8838ce400508aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): scripts/regen_unicode_width_data.py:255-260 | scripts/regen_unicode_width_data.py:273-278 | scripts/regen_unicode_width_data.py:291-296 \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. 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":"scripts/regen_unicode_width_data.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"515e97fe51e092d1b2c010b7aa76f3d1b15b0ea78dc742cb84b020d46bb7e091"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: VTEBenchWorkloads: VTEBenchWorkloads: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"655a90d6aa676935274d9735260fc18595311bb4e34c76cf6810d39390604afc"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: SwiftTerm: SwiftTerm: abstractness 0.04, instability 0.00, distance 0.96 \u2014 zone of pain \u2014 concrete and depended on by 8 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0ab299ba5ba97cbaeb1282d284c0d2bea534be1d7a2e13444dfb1e74683453fc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TerminalView (LCOM4 27): TerminalView\u0027s methods fall into 27 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 27 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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2679405800990e7c4c82315fe5582d6cad6cf0663c11e03524addd3f42934e80"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TerminalView (LCOM4 15): TerminalView\u0027s methods fall into 15 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 15 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9d24b24f10574ff8a112374913803d01fa7e2f513866acfb98687b2f3a68be"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Terminal (LCOM4 10): Terminal\u0027s methods fall into 10 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 10 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/SwiftTerm/Terminal.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f9415ae816b1561cd2110790fd551acce79e80a72bf500ca54c38a0371e7a5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SshTerminalView (LCOM4 9): SshTerminalView\u0027s methods fall into 9 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 9 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":"TerminalApp/iOSTerminal/UIKitSshTerminalView.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d68e48f3b3a27dd8002834ee943dc155354ea3f3d38654ff52058e4d943db4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LocalProcessTerminalView (LCOM4 8): LocalProcessTerminalView\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacLocalTerminalView.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b3da61c31019c9bcba7a7d5eab7a654284551d6357565bbdac02fd7996188f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ViewController (LCOM4 8): ViewController\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/MacTerminal/ViewController.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bbcf30aa5369a6d2a207a44506dd4037f18c62988b3aec70921269f02782682"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HeadlessTerminal (LCOM4 6): HeadlessTerminal\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/HeadlessTerminal.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d76b79bcdaefc42eee403a1ae1cce8d385803a63783c5d53538e76d40aa26a0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CaptureTerminal (LCOM4 5): CaptureTerminal\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/CaptureOutput/main.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b4041b0ef92018dd0cf94533689c55f0a9711943c0e4bf59bf03df277ff1fd"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Buffer (LCOM4 5): Buffer\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/SwiftTerm/Buffer.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"72370e7050824f7f51b122f82c3d1f8b75ddcc46d5c001f13474f5010e0198bb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CaretView (LCOM4 5): CaretView\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/SwiftTerm/Mac/MacCaretView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96311495ddf870313075e1497cf9d5cb2dbe0aa390785ebcb86ea809cb18418"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LocalProcessTerminalViewProcessAdapter (LCOM4 5): LocalProcessTerminalViewProcessAdapter\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/SwiftTerm/Mac/MacLocalTerminalView.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"979eca0dbdc4d59c0ee046c710d86087eae810bb63c7c75f02de5c8d3b50a650"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FrameDriverSignal (LCOM4 4): FrameDriverSignal\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/FrameDriver.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"351d8774a81c6d3e60abc032143cb413b08d747ef29dfc0e7922c015adbadc51"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TerminalRenderView (LCOM4 4): TerminalRenderView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7b124576fc4d90de8c1bec213f8b366787694c7bbdca679a3eb0ac5acae633"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MetalRedrawState (LCOM4 4): MetalRedrawState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad84e64ac2a06bf4a394a2dea4142c696b56a4310f46a9c496c43034bdfeac8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MetalTerminalRenderer (LCOM4 4): MetalTerminalRenderer\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"739ff03f58f5ef259319886a9560d4f6cd2a36eb4580e1da18d94c2eb47e8405"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCheckedLaunchWriteAndResize: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftTermTests/LocalProcessLifecycleTests.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"75282a404339b40374ed0990bc763c7c25fe488961a1540987b0e7acd18fa9f8"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testPendingWriteCompletesWhenProcessIsReleased: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftTermTests/LocalProcessLifecycleTests.swift"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f03a804ed225bd4d8f85bb49ecc4dfba96f4af758e9a0a2723a3d20ea05996"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScrollWithCorruptedYBase: 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/SwiftTermTests/BufferTests.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"49516076ee7c1e5a1c04f613f95aa3729c714eab660a06c564db0e5eb16e0d36"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: unfocusedCaretRestoresGraphicsState: 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/SwiftTermTests/CaretViewGStateTests.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb4aac97e619e1328cee5c7c6e649d6a32fbdc92ca58840a05e84a5b5197c73"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nonBlockCaretRestoresGraphicsState: 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/SwiftTermTests/CaretViewGStateTests.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb30e8345dadf4ca6469bac83424df62e5522dce3662a383e19b080c23726325"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: blockCaretRestoresGraphicsState: 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/SwiftTermTests/CaretViewGStateTests.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4f6a321cfdeeff7a752da488b707a62fd8a08d45e048f5a4155e2f9ba6fc39"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: powerlineBlockCaretRestoresGraphicsState: 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/SwiftTermTests/CaretViewGStateTests.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e60e7d5717d47f778a0a40a89aabc27f1399fcd293ea77ed51e046b1d7969d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorUpDefaultParam: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96280676be3b2f9922274fe6272d7b1a0e8741daa5ad96a383c0cbb78ee6b8a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorUpExplicitParam: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f38484fbaac69b366ccaaa84be25f19978ec2f72aae8222ac17ad113f5c45f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorUpClampedToTop: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"515666da9bda075da7e5dffa7631310d3ee9c05fdfa3eeae65e25ffe65bc3bc0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorDownDefaultParam: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb75359cac413f0d4ed8fc658f7216965396cc1425f3784ac9f3a5d05a183e5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorDownExplicitParam: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b8ebbd27a75d55debd514dd012e15ad725316498aff51ded12aab3e701dc80"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorDownClampedToBottom: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1a75e9d266cd94d082724386f21295ee2026cc1aa61f645ebea138f750cb41"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorForwardDefaultParam: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04c0ae9fd3ce9adef8bb0d833b7d2036a4dc82d0eecdf93ca850a30df8e4d76"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorForwardExplicitParam: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb886f9805fc2101288fa492d0f46eaa506ffd92a8c45142a889a092c4ab0e73"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorForwardClampedToRight: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e29cdefdee2efe4b4e4662bbab87105f9255bd5951665f09ab688413a0bc1c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorBackwardDefaultParam: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffd1ae84aaca42930fed3dcffb55cbb5d691a849da52f48b43b58710e9cfa79"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorBackwardExplicitParam: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c19aca3bb391906ec2a3d62859a37bf4841ed44cbdac82c6766124212fc683"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorBackwardClampedToLeft: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5608ae181d9221dee7bc018fe94ff39deca233e94e8ca76fab985eca49584ac5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorPositionBothParams: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53dd7c72ecf6d1f0a9ea745a54ea57f587496acf27a96705d16b49fbb47f272"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorPositionRowOnly: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74f906822810995d3f092fadd3b7685e34680264b93ba38a4ad5fe4a2f281e2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorPositionNoParams: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e74daab83b91e0a7ff695e740f49223f9e23fa96e6fb07e8a5b76a0679f422"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorPositionZeroParamsTreatedAsOne: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e96022f56e7c7b55d723b0fc94023e6a1daf9809f5a86d9b30365227560f82d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEraseInLineFromCursorToEnd: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"05425e2381b7e863bd9957929dc3959b65f6f69eca96dba7fc151eb0d7bd027b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEraseInLineFromStartToCursor: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e189802341e37a284079a5e946a457d7f27671bb73a4538275294d5ea1e7161a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEraseInLineEntire: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e79563e992fa50329156d5db8a8e9989c0f88bdf671732e5445d0773363cefb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEraseInLineDefaultParam: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5e162fbc39ef3741cf5da48fb611aafa4b97ed2163937d92070c1247018c49"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEraseCharsDefault: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a55e13e295c58e1ce0dbcf0d3831595cc920d399c33b4e7358a72469094c99"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEraseCharsExplicit: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda3566f9d8cd51ed7a4d05b7392db9ad4f0288ea40f59189d165df8494d8881"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRepeatCharDefault: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"81eab82793fd0d9c432e6a782a3977e9a26f6ff6472ec0d4792d2360fdc8499f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRepeatCharExplicit: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95e34decb0e7382a3254ed3853280b2c08e3ced86edb0d7b2e28b6cdd95b27d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInsertCharsDefault: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c91840c48dbe295897fab29b881cbcb67db94f14c8952817812619d7b09403"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInsertCharsExplicit: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebd3128cac59ed66625ccfb9053d42bc429e3d3d7c3ef3ec12a2fd059b6f987"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDeleteCharsDefault: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ab6ce1fa15b52602ae3dc93588cf5f7d1c77927aa8bf2636cd48fe1002630f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDeleteCharsExplicit: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"db62782b2075de82cd87eb72ae7e2f24695be1e51cbb70e81b1a16337bbf1c0c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMultiDigitParam: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"55502d1ec11a4d9f703e9c847481bcf8876a3e30d5af16fe4209f25791f998b1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLargeParam: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"114476abe13b983dae17c3650d5ccf7cef312e37abc3c12b95acd463a74f1f7d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testZeroParamTreatedAsDefault: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"794e61b2aa5c156015e19cb2e15b07911e47b4f934f10825720ac68d19595d06"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSemicolonOnlyParamsDefaultToZero: 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/SwiftTermTests/CsiParameterParsingTests.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"8522b49d5b96bc0a2848604a8ba327f0c14fe50c9f34f1a071582a65babb1512"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDcsWithParams: 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/SwiftTermTests/DcsTests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a4dfc2a2a9c4c5ef09efef996af46c34f53d70f2719a51da4cbb047e28fba8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDecrqss: 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/SwiftTermTests/DcsTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"97869035ffec4d82085e5b0db1130ced21badc344888671bb8947d5914be6628"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDecrqssNonAsciiPayload: 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/SwiftTermTests/DcsTests.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede52d80fe4e9a597c4da0e9311bb793063ab0dfc141aaa80db4a705e5d9947c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDecrqssDecstbm: 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/SwiftTermTests/DcsTests.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bc7fface1f795d315cecc1f539a028b414fa820ec11b1f5c7dcc0d10abc246"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDcsSixelBasic: 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/SwiftTermTests/DcsTests.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"96eb3198a59f04e8bdb4f02c7519325b22223023a4003eb3c2fd6ab7f68ac604"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDcsSixelWithParams: 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/SwiftTermTests/DcsTests.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3128221641e9588eb0a937d776aea9d8e90feb82fe9f668f73c02435a7a65fa4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDcsTerminatedByBel: 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/SwiftTermTests/DcsTests.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf414eccafcbf0a33e1198f2cb3f2f758b7b378e57a19a3dd21ef89cde2f2c2e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDcsC1Terminator: 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/SwiftTermTests/DcsTests.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc30a6f6f3e7ac333ab6346a473757e21efbf846be018b2092bba4e8369b7f49"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDcsUnknownCommand: 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/SwiftTermTests/DcsTests.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb24e2b05173316c6f301e6eb8e3cfe86ed09e480844cd5e7a4d6f885805719e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDcsPassthrough: 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/SwiftTermTests/DcsTests.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"65abdc24ea09b87eecb27f75108e3555dd2740320499feeae2a5be4739d0a1fb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMultipleDcsSequences: 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/SwiftTermTests/DcsTests.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a25c5a8b45f8456cb305e6e26e1d15a3f0081fc8d4b061dbba7e06d3ef8a484"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: saturatedParametersRemainSafeInTerminalCommands: 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/SwiftTermTests/EscapeSequenceParserHardeningTests.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"892e4e1b1249a01654f0002e6a3913a10422ebe5db91c791ac07120f4450118f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: risAbandonsTheCurrentParserSequence: 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/SwiftTermTests/EscapeSequenceParserHardeningTests.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd4bb30213b1527e09e041157062f57a7674de493d44e87bbbf2058eedc8400"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: producerSignalIsCheckedSendable: 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/SwiftTermTests/FrameDriverTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc22af8df97e91c5c6c07ea5c6a54af27ee1c5c75dd286ff7e8f0fe2e3dd93a"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): testCrashes: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftTermTests/FuzzerTests.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"45abf95379449e3908542a14934358314c76bc38b4d3b7e35032fcf9ad36091d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTimeouts: 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/SwiftTermTests/FuzzerTests.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b12b2885fbe1d09c1f172d65056057a2284d402c9ac68fa349cf4dca4057f8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: replayOscCorpora: 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/SwiftTermTests/GhosttyFuzzCorpusTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d28997e81a628b1d2c47aec8f2f7c52feed03941eacbd1b1f76ad89cbc4ba2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: replayParserCorpora: 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/SwiftTermTests/GhosttyFuzzCorpusTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"df34c4707cf1934e5a32bf2e9da4f273aec7e3e1072c395b52d94108585c8f35"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: replayStreamCorpora: 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/SwiftTermTests/GhosttyFuzzCorpusTests.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a5477c60d732f098abe32d3ecc1c99df73e5a638b2664761b4b26858f58ea9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: insertCharactersAtWideRightMarginKeepsValidCells: 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/SwiftTermTests/GhosttyFuzzRegressionTests.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fb7843ba9e5a4537385ed5b0ec916db2badb58f1aeb43a30f4c9ae904b9e09"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: fullWidthInsertionDoesNotLeaveOrphanedWideTail: 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/SwiftTermTests/GhosttyFuzzRegressionTests.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eac0cd324303cc9ffad77fe1805028de682da3adec5ad47a4f4b8a90fc10d46"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: fullScrollWithWideCharacterAtMarginKeepsValidCells: 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/SwiftTermTests/GhosttyFuzzRegressionTests.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4a717893fc7be8b0e6ecceb84790d67336364c7be8850f49b598e7ff2d1dc9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: wideningAlternateScreenClearsStaleSpacerHeads: 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/SwiftTermTests/GhosttyFuzzRegressionTests.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"be888001739f68ac5d4a9cfcf7e0d2c7e266c46bb21b127e9c64085f1b1ef7c6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: chunkedAndSingleBatchOperationsStayEquivalent: 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/SwiftTermTests/GhosttyFuzzRegressionTests.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42f4fe7334df4d9d4acee4eab840627f7a70cabc3a6127f4c98ed25933a421d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testGhosttyStyleImplicitPositiveCases: 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/SwiftTermTests/GhosttyImplicitLinkDetectionTests.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2901b8a86e364d174b81bad0f35b564134b07b0e628cd4ebf23dff1b0ac4289e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAdjacentPathsAreSeparateMatches: 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/SwiftTermTests/GhosttyImplicitLinkDetectionTests.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc90aa8b5b70582f32a30228384c124380973154fd352dc159c98ea11cc4bf8f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSchemeURLWithLongTrailingPunctuation: 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/SwiftTermTests/GhosttyImplicitLinkDetectionTests.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18873fd078c7382db649c33145db5d878183668dcbb75ecc2c1476868309ac8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testGhosttyStyleImplicitNoMatchCases: 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/SwiftTermTests/GhosttyImplicitLinkDetectionTests.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e39c6221a08bb6371dc469c8db93c82568b1b293da0db3c1265ecf9d585170"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: emptyResultsSurviveAtlasResetAndClearOnRegistryTeardown: 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/SwiftTermTests/GlyphMetricsCacheTests.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bed202255c05053bc9caff0924315c5b9db66d2c818956a89b1b96bcc499ab6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: scaledMetricsFitMatchesCoreTextReference: 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/SwiftTermTests/GlyphMetricsParityTests.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff45b9caf1f4d0f0bfd40be1161c28eaeed5ffc8773a881c35e6ba564961698"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: emptyAndTransientRasterizationResultsAreDistinct: 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/SwiftTermTests/GlyphMetricsParityTests.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a60f63731d5a289702ffd50df2fdf1b9cac38dbdee5525283004195abc0c6fc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: roundedZeroBitmapDimensionIsEmpty: 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/SwiftTermTests/GlyphMetricsParityTests.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9fd3cd085fdb71119ad84267457bd6a8540c368178bd768810644ca8532ff1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: asciiOverwriteRepairsWideCellsAtBothSeams: 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/SwiftTermTests/HardeningBoundaryTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4e92b6e8df79fac0f46edc5d0e7544dbff0caee38a9c588b2d841e4366190a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: characterEditingAtMarginSeamsKeepsCellsAndExteriorValid: 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/SwiftTermTests/HardeningBoundaryTests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a86ed3d401511bd3e904185b9e8f1ea188a84e497f6dc988e2e3013c4d0b1d4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: verticalMarginOperationsKeepExteriorAndWideMarginsValid: 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/SwiftTermTests/HardeningBoundaryTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1438e272fbd329adb7bca195ab07f222383510c30c9f52736ad2c72a8332b160"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: randomisedWideAndNarrowWritesKeepCellsValid: 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/SwiftTermTests/HardeningBoundaryTests.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91b664ef165cb3b69de5b1d18e62e4281ff384142b781e2f894a4afbe502f7f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPlainTextWithDisambiguate: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6537f5061ed412929e1a01c41df2fc7c34961f0f863cd0ae3b12e7a98835bc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRepeatWithJustDisambiguate: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f542ef861f8a8c836422699d0bc34648fded8c8a06ee76bf581972ba18f3fe5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportEventsCtrlRepeatUsesCsiU: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c13b732d644695cc1b4f530760bce5a9a2b3dee9a12c289e3115c49fb7db476"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportEventsCtrlRepeatWithoutTextUsesCsiU: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"8418c7063ec4de5577ad999fd95f80304c7fbeb28476cba87a25631b68d59a8f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPureTextWithReportAllAndReportTextUsesKeyZero: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07852aa20f5f78839c421a172a992a6fb76819b3527ad03624ea965cb308304"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPureMultiScalarTextWithReportAllAndReportTextUsesKeyZero: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"167b1563ff0fdb177c07a543594ffa92608ed56e6b2d1f4c8afb587b5c567f18"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPureTextWithReportAllWithoutReportTextStaysUtf8: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d829bb8c9ea464e6e10eb3cb61f77d512c91eb5cd4018b25735d6adb777633"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSingleScalarTextWithTextPreventingModifierEncodesAsKey: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"261bbdd0b484416a6f0455934ebfa8e0bcd141f5e9c44871e23b7a0228786af3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMultiScalarTextWithTextPreventingModifierStaysUtf8: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"07be2f5f73009c65aae6e949a7e90b51fc4df9bb2ef9ae66ff4634ce132cdfca"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testKeylessEventWithoutTextIsSuppressed: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79f1a772eeb588c8d82486bf6c07ec65e8d62312150eca41d25e11d852f8b67"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEnterBackspaceTabWithDisambiguate: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed53f4d6454b409c53a0c42d1a1ef0680cb006cf6dafe8d165e85a04429a8d11"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testShiftTabWithDisambiguateUsesCsiU: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"06661fb44fec632378f9d1f05570f969b27b5eff079ab7fe76ddf0668513e289"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testShiftBackspaceWithDisambiguateUsesCsiU: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"8708d66bd4b6ee0bb4199f2ddd504d6ca9b6ea437bd1271985b7afe862f13938"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testShiftEnterWithDisambiguateUsesCsiU: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9fbd326c46d1c61e0032b16246a04e1bd8a72493ca19638d217d186f6dc3f63"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAllReleaseEnter: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"62203ce334859b5189bc50da6ed3ebf174793b8117a08fe8989d2f750260247a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEnterReleaseWithoutReportAllIsSuppressed: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46849f61ac283eeb2cccdcbd674f430aa4bb37aab14b513c8c49bd35139b9b6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAllAssociatedTextWithoutModifiers: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"659d654d3b517f18a772a1712aa105665ff2577297ef2fc9286399834c497e94"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAllAssociatedTextWithShift: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa89ddb5fc49ae48955ef3acd51dc6de3de2ef43ceb9fa65f2bc061fc5d785d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAssociatedTextDropsControlCodes: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"27824acc57e66e998eb3828825420b9b28defce7875aa1f3470c5434eef2ada1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesShiftedAndBase: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c98da031b2cf4e71a7e360529d363876d972b8f409122d9112f9d021fb203ac"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesDoesNotChangeTextProducingKeys: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e51232bb42cb2b0a3e3ea1930257cae1e413ce716248d3c84307482e8dbb59"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMatchingUnshiftedCodepointWithTextRemainsText: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"86edb7b9d9deff353768be7afc0ae983fed5681fc256e3227564aa46a2409f75"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesBaseOnly: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dc5828db5385bfcdb26f9887322eee5b2464f33fd927caed26ba1343da19dd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesOmittedForControlPrimaryKey: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"248c72b00f20e679cfb743462c06f91cef5563ddfd9b740d6a2b04c5751adb46"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesOmitPrimaryKeyDuplicates: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"81aba78378318fbfa72ab56911e9e788be714141de09a7731476362a6a6d9adb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesOmitBaseEqualToSingleTextScalar: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e3f81eb3d29755d36bdbabf7bdc423092a3cbf620a5f59e473046395ebf15b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesOmitBaseForMultiScalarText: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fc27ed3a5a7d11b090183176b4f873c7b0b93460cd6dd9222daf37314c84cc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEnterWithAllFlagsUsesCsiU: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"55995b8dc97cf5f75fc78c187e561f5103e7648f212ad63a81dc8f699eebb445"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCtrlWithAllFlags: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79e579d66eaf99edca754f675258348dea7789a11614c1b771a88457bb02bc5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCtrlReleaseWithCtrlModSet: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ce273e143ccca5926f391939d49336347c1cd9bb79e4a8f2ce336ca77d8c4d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLeftShiftWithReportAll: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"470eda7c8b0ba2dc6ab1f3ad35a222cd7bf5d5193acd94e706ae8a34428180fa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLeftShiftWithoutReportAllIsSuppressed: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bbf8e3d0d9e5761992172a32b7a674f6f1adfee08a1ad3f88655f8bf3629ff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLockKeysFollowTheModifierRule: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1606717953adb19dc098415da9537a51943dac1d151c78ca71fd2bf2f8b332"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testComposingWithNoModifierIsSuppressed: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f86b2c23310097af6ddf093a18f64edecc797c12a959ac2d675657234c59e3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testComposingWithModifierAndReportAllIsReported: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d05cd51acd94b601c2bb96810b9a8ffd2334b607bf8c6ab2adc91d0a70ff4e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEnterWithUtf8DeadKeyStateEmitsCommittedText: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"464e704221c449318d07d410ab2b489014b9bb595b3550d9eafccefc4769715c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBackspaceWithUtf8DeadKeyStateIsSuppressed: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d708974093006ccf0986a8e21b05176538a70403252782d744f961bccebc2e9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDeleteWithControlUtf8StillUsesDeleteSequence: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79714752bd16ba49aae6b3e2d2e954adc590e4ccbe743f8bf4775e77f9bb670"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUpArrowWithControlUtf8StillUsesArrowSequence: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"241ccdfedd3626cb3c164a1fba8352dc992bf4fea59f507c3ae0238e5c4e864a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testKeypadNumberIncludesAssociatedTextInReportAll: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9f368f340cb85ca1c4cf27dc6055f983f2cf000223b60bbd31217c0199dd3f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAssociatedTextSuppressedByCtrlModifier: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c04f55c1209a6eb5c1c04bed23e25673a87977ff5a7eea4fc1f21f3543a6036"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAssociatedTextOmittedOnRelease: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0bdaa3963d8b750ff28c3d2a1dc379e7bfe1d2d37958452d90a7518f7b4fd8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesWithCapsLock: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"decf3045c1c82acee6b378055044356a96062c29bf0a57ca70e7b81c05456180"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesColonShiftSemicolon: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"9812621f01403ee041262b9afecaaac0a44f606f9b65be9d35a5a3b0cc37ef66"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesRuLayout: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63335a364b86ef92bdd2defc1da881bf5237475b8552bc5bffce8f27a9460b3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesRuLayoutShifted: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d1c7adf313353d537fc1182e926e9be782951e8f9a27b2ea7f23a55a0050c2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesRuLayoutCapsLock: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"9676c5aa6fbf533fc06d37c4f37af0abebac9038db4be61dccf258227b2b9ab2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReportAlternatesHuLayoutRelease: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7cdb78034071a483dccb49535dd87bdcbc82de6076550d8255fee6370cb2e79"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testF3UsesCsi13Tilde: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6263f86a89fa13766b10a131f75b866b4d2271ab9e81202aa37a6b25019f0b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testKeypadBeginUsesKittyCodepoint: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bafca4471e13ea395450b4e340b7214ee4794a5ce8ca3bceccd82f1edb4854"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCapsLockModifierIncludedForFunctionalKey: 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/SwiftTermTests/KittyKeyboardEncoderTests.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"90510de8e4c27a97efc845d1991614033c1c0db23279a8bf7076f9b717173fee"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPlainCsiURestoresCursor: 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/SwiftTermTests/KittyKeyboardProtocolTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e52b4d7dfa877dbbdc2b6655d4c2a19b2cce906e214ae6ba3bbbb6c97664cd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUnknownCsiUIntermediateDoesNotRestoreCursor: 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/SwiftTermTests/KittyKeyboardProtocolTests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d8868b6ab467791037ee9bdc602fa34321f50d2d8105fb67be1e5d6f8d7659"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCtrlCInterruptsCatWithDefaultSignals: 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/SwiftTermTests/LocalProcessLifecycleTests.swift"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c2648578f7489b2c6d816c3a20d787854213e18ab848fcdd692c889f0dd780"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCtrlCInterruptsCatWithInheritedBlockedSIGINT: 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/SwiftTermTests/LocalProcessLifecycleTests.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"33edc7623b575ecdc23261895cd355bcba2ddc193bc060fe5df520fde989c344"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCtrlCInterruptsCatWithInheritedIgnoredSIGINT: 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/SwiftTermTests/LocalProcessLifecycleTests.swift"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1d3bef3a1611842aa43d580d672bd16d9a6fb5d5b6e64cc59bf5a5221941c5"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testInvalidMargins: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SwiftTermTests/MeanTests.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"66456b5be7160f4c05d3a4fe70f741d8cd5bfea16dfe83a9a03c30b2a4bdd52a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOscIconTitleBel: 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/SwiftTermTests/OscTests.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"defd3b960cebefa15a4c7a8afe82e4faa40feea98e6bd494cfb0f4bcbed60e6c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOscHyperlinks: 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/SwiftTermTests/OscTests.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"924956eac4ba0925718a8390bd67131faf8c4e9ce8ea4f0338d2e5e9114ecf6e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOscHyperlinkWithId: 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/SwiftTermTests/OscTests.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"255f75036e35823a2844edd718fb862f6d05a6e654ad2d42c7886fae23b88939"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOscClipboardReadDefaultDenied: 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/SwiftTermTests/OscTests.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"242922397181cbeb682aad381b962d1b9722e12676f2465529aec7c8d1c0d549"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOscEmpty: 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/SwiftTermTests/OscTests.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"4845567ef43a27845f5f7690bf9f0c2fba9cda7ece0815927231e904f3a96714"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCsiTooManyParams: 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/SwiftTermTests/ParserTests.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffc8db04c5bbe9c4bd1719b9815da210a2f46465170c3d928707508eecb21b8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCsiMaxParams: 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/SwiftTermTests/ParserTests.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b71b4b76634898db6375370684f980a6b9f8f320a8f2e681f0da3d3404b724"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCsiColonOnlyForSgr: 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/SwiftTermTests/ParserTests.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b2e425b96d335012487a4b23cf3f6f614c76a3d7e451bffa17c151d20fdb4b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCsiDecrqm: 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/SwiftTermTests/ParserTests.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"adca755b44cbdf9d46443ee98dd456bf7008723564775b9cb48575d7c0ce2005"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCsiCursorShape: 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/SwiftTermTests/ParserTests.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7910f37b5ae97ac281ff26507698548a1b543b5e61ece7c763023b3bd529c873"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCsiCursorPositionNoParams: 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/SwiftTermTests/ParserTests.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"57eccdcb7691f5e5d06b4c12a269f1fe861f25e829e2e31095569fe63248d88a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCsiCursorPositionWithParams: 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/SwiftTermTests/ParserTests.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a457cdff0135b9e788af4f39d5c3d5da702532b793d74a893fad5514ce67f3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSgrFollowedByCsi: 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/SwiftTermTests/ParserTests.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b199f1d1c278ccb1c12c1a215cdfb264e1588ab9a78599b9c352470f72373e00"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPerformance: 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/SwiftTermTests/PerformanceTest.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"927f77bb60672d523448aff9be0374d536287a94a59ba54ead56bc61b383eb3f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPerformance2: 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/SwiftTermTests/PerformanceTest.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c47fbc9962d6a9eacfce730eb1182757fa25a99f46ff8f0eb045075e97eed84"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: measureSIMDParserCorpora: 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/SwiftTermTests/PerformanceTest.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc88db0735666a7b2a01a4d99211e17578a4177d3b2d8f96a42e33b8d1dd251e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: measureSIMDScannerAgainstScalar: 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/SwiftTermTests/PerformanceTest.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"90bc29defd0e365cc7b943aed891dfc18ad5be1751541198d19280a0418c7105"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: measureBigBlogFeed: 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/SwiftTermTests/PerformanceTest.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"512086266379e96f49c854038c687fcbb0dd8ddda06d951abb67c37eec6f81ec"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: repeatBigBlob: 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/SwiftTermTests/PerformanceTest.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d579e75250a0fcb7c91b33897988ffe45ba09df0bbf30b4b78b1aa3eda1049e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: repeatDataFile: 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/SwiftTermTests/PerformanceTest.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66c9415b553bcb818d5e683e0fe1d78a85084694d2daa58ad835ebbe7e43e02"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTriangleDirectionsAndJoinOverdrawAtTwoAndThreeX: 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/SwiftTermTests/PowerlineRendererTests.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb09390eed745d262cec57dc9d1e5e2c652411550b73fdaee5c8da30089939fe"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRoundedDirectionsAndJoinOverdrawAtTwoAndThreeX: 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/SwiftTermTests/PowerlineRendererTests.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba34ab11d876c0b64743ca1d9d73612da01a26bca7215db864765b1e52880ae"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: tagNameRoundTrips: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0df41e0a61c038584a7a09e3b3aa49cbf6395e69922fbd0a9cae965b2905d8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: displayNamesAreUnique: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"be96c0c0bddf349eb3386d9aa7b69f4b120b4e68a423642dce70862efd030a33"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: unknownTagNameFails: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b05a6c2a6ca7b9d6b90189b160dabc8fe09cdaa038c2204788912b29ffa1d3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: interpolationIsUnchanged: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad064f4334f07b69434e9ad0195eaf9ed0b6a7053b3fef2fa0e8e71f97b04a79"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: parsesSixDigitHex: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a041716e40e1ea2bfb084207cfade79357a1c29006f73a6c838cdcd48b95598"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: parsesThreeDigitHex: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef396f2adf3526202143a8e13ebe877c446a7ff5f23dac4dbfd921212aee661"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: parsesXParseForm: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"92effe77be667aa8fe02c6a95abfef7618d9e5b80c15b736f7874da701a3f1f2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectsGarbage: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa03a4523f421947f0288270fd522df465b96eb32241e7e2cdc4aef1ef407014"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: formattedRoundTrips: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57bf41f85e65df455d02be3b164adeac52f1ff4c307b5751ec56f29f3360522"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: eightBitInitScalesAndClamps: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b9a803d974a4d4d6ed0790ae863ef874707851d0bd9a5e6ac64431f854e0b0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: builtinPalettesHaveSixteenColors: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"decba36d55c06f0ef359adccb7441fa4fd3a2aa56cd2c0f5bd1809122fccf4e5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nativeBridgeRoundTrips: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da95df35f6d537ff210cc7c0cb55f4d4e91e98a55e1ae38e048e2bbf0497ce2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: tagNameRoundTrips: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2c836f497f9a8a682bf1c9cddb7c722e447a8b27e66969ab68e7d9acc9c738"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: bellStyleGatesDelegate: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa8dbe8d7a7256744b4c2d11a8ad561f8e1242ad3df6dcfeb40e0f49b64ddf4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: clearScrollbackDropsHistoryKeepsScreen: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"43046d39263c42e028550ff543a45af7804e6b88cd8c3474e2689feb9803fb4f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: clearScrollbackKeepsTheSavedCursor: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e9b8b642ecb180ab7f3ba8b9ebbe6b3968e6336ba8562a0142f23922cb8cb0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: clearScrollbackInAlternateScreenKeepsTheCursorToRestore: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b4b32d8116e007944826bb755ad4b748e6bbf02783414e81c15fd68e3a198a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: clearScrollbackOnEmptyBufferIsANoop: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d77ad07fb70d09d6287e694922d0bdc2b7138cdef908abb39aefe4c92009b65"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: opacityIsClampedAndCarriedInAlpha: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d50a84274cc4fb4898fd915523b43d0619f86500e6dd6d879ccd97e47d6d23"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: alphaBearingBackgroundReadsAsOpacity: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02677e79595d8abf83159d627c6a9b3e10b7c7ebe8d319bda9a30f373cdea11"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: opacitySurvivesTheTerminalColorCallback: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4a9c761b7a8eea61dc2414cbf01b9fcb14d5ee61e6f594252ee71bbf4739ef"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: startupOptionsReachTheTerminal: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a0b811237e0f4cb45488f5ce240d5eabc0fbbeb33aea96bbdd7623f9c7c094"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: sizedFrameRecomputesGrid: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"b783676965acc1bd32114981326a2a3cdd8f7f13f1fd58e46a1d7573d8606b2b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: resetFontSizeRestoresCellDimensions: 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/SwiftTermTests/ProfileSupportTests.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79282e7f845906d2bfb6870525f9d2b13f95b20250c5dfce4eeea7528640670"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: inactiveIntervalsAreSafeToEnd: 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/SwiftTermTests/ProfilingTests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76a67b3fa9cabc1f52ed2c16b2de9e841299cb1cd6996b6739c794915b6d2e1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testResizeReflowsWithScrollback: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d6aef47d7475d497060c80aa53a2bbca36c34ac3ae547a85197d7a00235283"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testResizeNarrowerReflowsWithScrollback: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b8afa2707400852d6bbfcda018d096d6048b628ebe0cd1fb6fc802d0408e8f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testResizeWiderReflowsMultipleWrappedLines: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb9b3d922e9035229a7771994a15acf2f4f30672189203db8f7280d22405677"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReadWriteNewline: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2be697efe51118cd20c11765ac2c219b9b1a6e2066de8e2a7a568accb1b00c5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNoScrollbackLargeDropsOldLines: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b3c4cc04a40d0687bb94dc7a69a32ee37d16d5b160bb9399baba1b01193acb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testResizeNoReflowWithoutScrollback: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"815d59eca0a64b824d8247b1766c18c488c16b27aba85ac07b294e779958480e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEraseDisplayToCursor: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"499a8788cea843afb74e06f965123b881d09c31893adeaacc209a68c4584d964"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEraseDisplayAll: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"660d62cdb2dcf1b48533d8c2b28f2d189b4aefe78432198250ea0736421174f8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEraseLineAll: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f7b3f42c1734094625b31a2b854b9d3ba0588271426d5c30df37a65776da0e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInsertLines: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58b26b7c90b26e4164164cd50f40c1c7f0759af27407426f1d03b66544196be"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDeleteLines: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca723690ef70a1b250d4d1a17a609da482395c4c2c4317fd5c84c67354d5ff7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScrollRegion: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef353098a4a4ed3b1618a1d08c8b6f8545a4ba79aa77248725aadda4caaa4c2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScrollUp: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"315000af5fbc333478e9f277b5c0b0b067fdeeb5c8dd8a373a2f6db0cb095140"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScrollDown: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddffd2d084a485912034d302893184f4a68e7332fcad792d7fe5ffc11a649af"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScrollDownLeftRightMargins: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6e9c5c2e4f680abe4992d8f932d94a0ff83681c9720d675eee65bae47dfcbc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScrollUpWithMarginModeAfterWideningMovesWholeLines: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffee05238d291670fd7701bc5f03f2d9096dfeef93fb86b309f322ab173fe88"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScrollDownOnAlternateBufferUsesFullWidthByDefault: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"70047916c4b8c92e843e0e253e10d06153b40ccb87d543b89dcec61a685f11d2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorMovement: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bb2f9e9705d2e07e85dae5e6dc41bc3cd32ecae25e8bfd72b1ff72ea153d49"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReverseIndexAtTop: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"90323423a186032b747da9bf2025c4720b2c8ea0d938b4d54965fe6c4f0cad15"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReverseIndexInScrollRegion: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6c3d0dc9a9f9a9de0c2e609175f0e6b30138209982bf966393f4b1cb16c76d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIndexAtBottom: 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/SwiftTermTests/ScreenTests.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"71cfff6dc4daa830d86ccffb3c0863cb224cda174e05095968001f741ba899b0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDoesNotCrashWhenSelectingWordOrExpressionOutsideColumnRange: 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/SwiftTermTests/SelectionTests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f61abb26a0fb7a939f99fe6d034026ac98a166fc19dd37e091a444931891fc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDoesNotCrashWhenSelectingWordOrExpressionOutsideRowRange: 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/SwiftTermTests/SelectionTests.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1e81862407639452fb4a6c7e6d19ced0bc6fa22947e136e1b5c34429be7788"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: valueTypesAreCheckedSendable: 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/SwiftTermTests/TerminalContentSnapshotCoreTests.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01c41c47534b208e4a4964f7dec079076318afa74d6abbc868223d30e90dc10"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWraparoundEnabled: 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/SwiftTermTests/TerminalCoreTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"33090345644a3e1a0bdfc8da0bd0e7f0d29c6d4d38370407d9dde707d232c705"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWraparoundDisabled: 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/SwiftTermTests/TerminalCoreTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58bede2a4a5a30c32f26bf9144df1e5ebcabec22ac56aa27febe012a1b650b5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUnicodeRunWithWraparoundDisabledOverwritesLastCell: 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/SwiftTermTests/TerminalCoreTests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6381aefe59f87f28fc8afe21118915e3b67427e181d83c9aad81d67e433baf02"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBatchableScalarAtChunkEndDoesNotReadPastInput: 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/SwiftTermTests/TerminalCoreTests.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"718a60a62cd98dddd94dcc1fc9593e77dbd2db62a77c23730b4c867f5dba9594"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReverseWraparoundBackspace: 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/SwiftTermTests/TerminalCoreTests.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb67e7c42d8d4c821f402004a39ab815779569b2936b2f8e2e0e2ca95717929d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInsertLinesInScrollRegion: 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/SwiftTermTests/TerminalCoreTests.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33e73aeec221d8631d8a7a4e2ed90d404ba3893465981c81f0c139f222d0c12"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDeleteLinesInScrollRegion: 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/SwiftTermTests/TerminalCoreTests.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ec9c6801497811b94a97f778118a15374bd4be2f2c4ed8e38e28ce6fb3a753"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCursorSaveRestore: 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/SwiftTermTests/TerminalCoreTests.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"22042d11e0ddcf52c265bc555a541317cfa44ea9cd823d8e43c1b7e5c198e7e1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: valueTypesAreCheckedSendable: 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/SwiftTermTests/TerminalEmbeddingSnapshotTests.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf666e6b2ec89a577017a9f1afb7b1afa4faf29b5c9587b3cc2efdb65bea734"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: controllerHasCheckedSendableConformance: 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/SwiftTermTests/TerminalIOPipelineTests.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1837353057d58a7e1b24ba2fd8f0ddba0fae9e1fbf3e1c6656e766ee194326fc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: linesBuiltDuringLookupDecode: 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/SwiftTermTests/TerminalRenderViewTests.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f83a640b70b6ba3b55e6fd7b065b4fbf40ed1781914a8b581f2611cea78034"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: frameBoundaryMessagesAreCheckedSendable: 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/SwiftTermTests/TerminalSnapshotTests.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cd80636ed18602821a8009ba78e569c9c45f332145d19e750942a55abcc522"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: ctrlCStopsCatAfterServerSignalSetup: 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":"TerminalApp/WebTerminal/Tests/WebTerminalServerTests/PTYSignalTests.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0715c9c7dc4e99410c3cad7da31eba6ef9bf5ba8151ae5298927490942a236c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/Terminal.swift: Sources/SwiftTerm/Terminal.swift changed 78 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 105 in Terminal.handlePrintSlow at line 2153. 9 of those changes were fix/bug commits, and the other 69 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/Terminal.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/SwiftTerm/Terminal.swift"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8c0631a0195c89b2f0e4551b4304b6769b655a110f80d1d3bc72b16400f4d1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/Apple/AppleTerminalView.swift: Sources/SwiftTerm/Apple/AppleTerminalView.swift changed 60 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 101 in CoreGraphicsPaintHost.drawTerminalContents at line 3406. 6 of those changes were fix/bug commits, and the other 54 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/Apple/AppleTerminalView.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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"0762451d1294dfae681e7ffc518ef690306c37fe28bb167f17920a329196264c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/iOS/iOSTerminalView.swift: Sources/SwiftTerm/iOS/iOSTerminalView.swift changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 116 in TerminalView.pressesBegan at line 3239. 9 of those changes were fix/bug commits, and the other 35 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/iOS/iOSTerminalView.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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":3239}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e2e8e3ab4d9757826a59836923e252a7544d458634cc900e794dc9b3eb6e73"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/EscapeSequenceParser.swift: Sources/SwiftTerm/EscapeSequenceParser.swift changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 115 in EscapeSequenceParser.parseBorrowed at line 1195. 2 of those changes were fix/bug commits, and the other 28 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/EscapeSequenceParser.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/SwiftTerm/EscapeSequenceParser.swift"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c224d4601e3a96d02bbabd8cff512f58fc95848bbc2b4a778fc32f9f2a4d40"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/Mac/MacTerminalView.swift: Sources/SwiftTerm/Mac/MacTerminalView.swift changed 64 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in TerminalView.scrollWheel at line 3731. 11 of those changes were fix/bug commits, and the other 53 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/Mac/MacTerminalView.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/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":3731}}}],"partialFingerprints":{"codehealthFindingId/v1":"7376a6f0fe47f54dbbab64f79505bc793e009fd2ab5a20660ffaa2cad9cdfdae"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift: Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in MetalTerminalRenderer.prepareRow at line 1923. 4 of those changes were fix/bug commits, and the other 21 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.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/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift"},"region":{"startLine":1923}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa5cead45eb655db3184e89051bf777b076728ae887c9368694fc1dee2952e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift: Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in SnapshotTextBuilder.buildAttributedString at line 454. 2 of those changes were fix/bug commits, and the other 16 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/Apple/SnapshotTextBuilder.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/SwiftTerm/Apple/SnapshotTextBuilder.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"a910bf42a4f09e9c051553929007bbbcb4c4fcfbe2137392d1ad3930e9a930bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/Buffer.swift: Sources/SwiftTerm/Buffer.swift changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in Buffer.resize at line 1045. 8 of those changes were fix/bug commits, and the other 23 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/Buffer.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/SwiftTerm/Buffer.swift"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eae294d6aa8cfb2e8d9701a5583d86a1eb927b180094027407fa06ca876349b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/BufferLine.swift: Sources/SwiftTerm/BufferLine.swift changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in BufferLine.copyFrom at line 946. 2 of those changes were fix/bug commits, and the other 20 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/BufferLine.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/SwiftTerm/BufferLine.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37231bb3cbc04e309df0b0565816d6f5c751ceea7465c578823fbc8c8110e78"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/Apple/TerminalSnapshot.swift: Sources/SwiftTerm/Apple/TerminalSnapshot.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in TerminalSnapshot.refresh at line 345. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/Apple/TerminalSnapshot.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/SwiftTerm/Apple/TerminalSnapshot.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"b447621b4fd45114f58f731bdc07a709f3dfe4d35c5b390d391302ce90c7deaa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/TerminalIOPipeline.swift: Sources/SwiftTerm/TerminalIOPipeline.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in TerminalIOPipelineWorker.gatherMain at line 595. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/TerminalIOPipeline.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/SwiftTerm/TerminalIOPipeline.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fc3d561dd14ed1a73cd9b6888cb1bb8a168085440b2787b0d4e7048a46875c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/KittyGraphics.swift: Sources/SwiftTerm/KittyGraphics.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in Terminal.displayKittyImage at line 1567. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/KittyGraphics.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/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"942361bc5038bdaa175eb662e0e19176b8181a18791dfe3afe1754a2781a6888"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/Apple/TerminalRenderOwner.swift: Sources/SwiftTerm/Apple/TerminalRenderOwner.swift changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in TerminalRenderOwner.prepareFrame at line 521. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/Apple/TerminalRenderOwner.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/SwiftTerm/Apple/TerminalRenderOwner.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"8749d4fb34dd0b998e3fa31c09b560a52b9aef69320d0afd035987873f7f342a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/SelectionService.swift: Sources/SwiftTerm/SelectionService.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in SelectionService.urlRange at line 1305. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/SelectionService.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/SwiftTerm/SelectionService.swift"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7ebf40b082ba550a1a08ee42fc8ce237c0972e38e2a346bb8a12e4e8a42ec1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/KittyKeyboardEncoder.swift: Sources/SwiftTerm/KittyKeyboardEncoder.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in KittyKeyboardEncoder.encode at line 168. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/KittyKeyboardEncoder.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/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef39bd5f190c439a941940ecc7cf36c469203e8aa8c5ab50e342402855ab70b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/Utilities.swift: Sources/SwiftTerm/Utilities.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in UnicodeUtil.graphemeJoinNonEmojiModifier at line 428. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/Utilities.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/SwiftTerm/Utilities.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b30cbd954266ff48d69420ca15ec3754b51f961f3c70cffb84b6aae84a405e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/Apple/CaretView.swift: Sources/SwiftTerm/Apple/CaretView.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in CaretView.drawCursor at line 14. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/Apple/CaretView.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/SwiftTerm/Apple/CaretView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f12b42a491eef9578a77ca467e1ac717ef345f9ac977afb65858431612eade8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Tools/RenderBench/Sources/RenderBench/main.swift: Tools/RenderBench/Sources/RenderBench/main.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in main.swift.top-level code at line 36. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Tools/RenderBench/Sources/RenderBench/main.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":"Tools/RenderBench/Sources/RenderBench/main.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eae86e0a2f1cea97d47c50efea8bae277a937c4f7652fd04cd1fb58ec844d32"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/Pty.swift: Sources/SwiftTerm/Pty.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in PseudoTerminalHelpers.fork at line 62. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/Pty.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/SwiftTerm/Pty.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"408ed4dba2c64f1efe7c11ec5ce12107221e2c2a139db25875a8324ce422da2d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/regen_unicode_width_data.py: scripts/regen_unicode_width_data.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in regen_unicode_width_data.terminal_width at line 308. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- scripts/regen_unicode_width_data.py\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":"scripts/regen_unicode_width_data.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"657b9b92c1120bbc5c90d4cc996bfc3045465bb91d307b81979fda803c3fd003"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/SwiftTerm/SixelDcsHandler.swift: Sources/SwiftTerm/SixelDcsHandler.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SixelDcsHandler.unhook at line 128. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 11:51:26 -05:00\u0027 --until=\u00272026-11-14 11:51:26 -05:00\u0027 --full-history --no-merges -- Sources/SwiftTerm/SixelDcsHandler.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/SwiftTerm/SixelDcsHandler.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"169b6530dbf8455e96ec84f5b5f74634c27b9b10ac2fa28e8a1665ae96c609b9"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 40 significant file(s) lose their only recent owner: Sources/SwiftTerm/KittyClipboardProtocol.swift, TerminalApp/MacTerminal/ViewController.swift, Tools/BidiHarness/BidiHarness/HarnessViewController.swift, Sources/SwiftTerm/KittyKeyboardEncoder.swift, TerminalApp/MacTerminal/IOBaselineHarness.swift, Sources/SwiftTerm/CircularList.swift, scripts/regen_unicode_width_data.py, Tools/RenderBench/Sources/RenderBench/main.swift (\u002B32 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d0f63f22cf226aa5c9021288725aa8c3769473ae5f8de036b40d0f34035d0254"}},{"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 (41 single-owned of 143 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; 143 of the 190 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/SwiftTerm/Apple/ColorContrast.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: When double underline is implemented, verify it\u0027s set here \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/SwiftTermTests/SgrTests.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55e74cb11de4c5afdc5a3c4299383da15b1eee75123774946f74cc61c51a9e6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: limitation in original, this does not cope with partial fills, it is either zero or nothing \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/SwiftTerm/Buffer.swift"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c2ca58eb69a8a0fea352359b1b82c49427a46da8c427d08a30dfa3bba7b5e8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: needs a global min terminal width of 2 \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/SwiftTerm/Buffer.swift"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9834ced4aa19b97e1056c2ab64caa94924f642e8f159060c445de207e9111f9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: review every place that sets cursor to use setCursor \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/SwiftTerm/Terminal.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e6701cd048b5df0485d5c2cd78b12edd8556343b730c72a1ad0f6fffa08f42"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: audit every location to use restrictCursor \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/SwiftTerm/Terminal.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5839e3403f6399214e8089dc2e632658215ae5bc3a1e65c6ba6b92025b3a2d7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: report real settings instead of 0m \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/SwiftTerm/Terminal.swift"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c31f7604afe4ef61db03a5c6673e7dcd87fc4da81ed9d16fd4009890436bd18"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: was this unused \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/SwiftTerm/Terminal.swift"},"region":{"startLine":1942}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a29e2eda25971bb8c18f68de1b5bbff4cbfb28d0145b225820a5265144fefe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //        // TODO: needs a global min terminal width of 2 \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/SwiftTerm/Terminal.swift"},"region":{"startLine":2789}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc632aa348a00305279e6c2e6c7520081669975eaa100a708db7a9ab886afadb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //        // FIXME: additionally ensure chWidth fits into a 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":"Sources/SwiftTerm/Terminal.swift"},"region":{"startLine":2790}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c5494eac4fd4431db9a9755918bd995f94dc652b492b5f4403812f70d69b20"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //                    // FIXME: check for xterm behavior \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/SwiftTerm/Terminal.swift"},"region":{"startLine":2810}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c440b42c754b00526b70cc2ea4899036aa0e3e36a6d0eabb33f22917fbdd9f6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //                // FIXME: Do we have to set buffer.x to cols - 1, if not wrapping? \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/SwiftTerm/Terminal.swift"},"region":{"startLine":2814}}}],"partialFingerprints":{"codehealthFindingId/v1":"78be62377f1b63dbf0c03ecd1e0e1064ee951500934b7b89b00cac6313788164"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should surface that to the UI, should not do this here \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/SwiftTerm/Terminal.swift"},"region":{"startLine":5659}}}],"partialFingerprints":{"codehealthFindingId/v1":"a884584acfa456a9340cee9ccb7f09dec874b10ce1acc3b41cc01ef1d49b306e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // MIGUEL TODO: \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/SwiftTerm/Terminal.swift"},"region":{"startLine":6438}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da950adafa71aec71d51ed3022bc0270c020e3dc46e3a5bad1ff6afa5791f9b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: audit any new variables, those in setup might be useful \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/SwiftTerm/Terminal.swift"},"region":{"startLine":6439}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2248122235b8c8fde4ec693ed8424a31336a349c1e62bd5bf4d6e2fc5cd2729"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // We respond \u0022American keyboard\u0022, TODO: worth plugging something else?  Mac perhaps? \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/SwiftTerm/Terminal.swift"},"region":{"startLine":6511}}}],"partialFingerprints":{"codehealthFindingId/v1":"94302594cce77541a4fc677bb0dd92f5aa048ad7d9adac701b3aa631655fb4c2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: no dec locator/mouse \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/SwiftTerm/Terminal.swift"},"region":{"startLine":6516}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cd344d5fcf9e4fa82e78e4ae87401e5254a4b6c27df15215eba85e49477910"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: XTMODKEYS \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/SwiftTerm/Terminal.swift"},"region":{"startLine":6623}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d1514869dc7da836c5ce3fa2378c9442e1f49cbe82a5377e5fea65feb07f53"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \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/SwiftTerm/Terminal.swift"},"region":{"startLine":9500}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbe16a8d5d6964aad2729cd92db9e7c0e3faeb30bf43d3009710c64cbb4e686"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: what scenario would have this? \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/SwiftTerm/iOS/iOSTerminalView.swift"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"702fb0c3db5e763afe4a656c01b0bfcfae3cdee0f570faf557bbce48ec48929e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: looks like I can kill sub now. unless it can be used to draw a border when out of focus \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/SwiftTerm/Mac/MacCaretView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a572e150b8d48bc5cc8402ad758e492103512273fba1169aa86c8d58e24b6ff1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: view should scroll one page up. \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/SwiftTerm/Mac/MacKeyboardRouter.swift"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfa6e815701519351db01ba5b074f7a684fe7d9f6905fb0276fdb140a3c1d43"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this should not render any lines outside the dirtyRect \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/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3405}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b106716db20b524105e2045cb641ec993f217892b6ce0aff1ec8894ce055377"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 6 project(s) overshoot their size bounds, lowering Project Cohesion to 6.7/10. The most over is \u0060(repository root)\u0060 (71029 LoC, 586 module-visible types across 18 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"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":"c5e65ae40c758327ffbad01e10db3c09a08123891bdb75c9f667eb31ad1c8ef2"},"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":"276b0b68b7ef1af250d3b2c9c3bd4eff05f3ae4787cc95e36189ded0782c1694"},"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":"50b2a253e21cf98b3688fdf1123ab8dd7193814a68d24bd6a64a06ea5a73b43c"},"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":"5065bbede27cee129b1c8def5357d9c77abbbad41e633ece41ad7faa2a5173e5"},"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":"11a66104ddfbcc446c86bb376c900e0aaa54df8cf5e1f8d1dc74f97acb576e0a"},"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":"bcdffef50cc15623e92011955ccb1e97e52f9ab9c94ed1ab932a4d6b07b66b4c"},"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":"6bea3f6233185a20ba9f9e57cccde13b7f89e9398265346e40ece97188028360"},"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":"4e3b9988b8899d5e44d6cbd11de41b793cd200e94405cc340d5426421b3a094b"},"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":"0e4f3f382e3c08ed5456d36061322a2f5fe62fd8210777722952516b78f15712"},"taxa":[{"id":"CWE-494","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":"2cee8f94b7abe8303bc99245ca6e7465ae95eee2f066b613ac167033e5c2fe6d"},"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":"5b0b0ff3b842571f8eef2521054c415f0b358b9949fe6a939741b9a0382b9bb6"},"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":"e66bdcd21a83bdc185f755f58c2a94d20a17f4e98f74fb6e73d1c5f4d081bc7c"},"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":"2eda12f8acc4ed3f790733069e32a5dfb8c61785184939263c4fe60a34202149"},"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":"7b91b6c29a4aafd4a8985a338ecbc6f57c8d2cf88c51309499a7a3720224d9de"},"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":"61d3eebb6f3e87c0815eb7ae118ddc18b1af57e1306789441c5a4355ee3f44d7"},"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":"f5276ed5c7dd5bc6e30e2617dac2b10da968db4061f017333b39786e8fd8b863"},"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":"eec44f9bc5eb7a2e4c12558765b38c925aca17a6abbb3dce2dc168f22b54831f"},"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":"8a0438fd2f9778eb6a9760ce8e148580d04a77fb212ad4890ebe39b9731f9913"},"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":"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":"2a199290f44ad62f4ae54bcdefcccd22ac2bd01fda6da2d821bc5cff94e5b6f5"},"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":"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":"4fcfdad29c8a1c5e25adbd07b66fdf15e5d4a1a2834f81056ed7564b39de3cad"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"4e7314eaf0a44bbfb461a1435835baa4bc1b4dd6171ff696414f2e020741b367"},"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":"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":"7c09a12740d5eb7bc8d2f6ffb1b37dc00090c3f85fa72032dfbeefe045b82360"},"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":"D35","level":"warning","message":{"text":"Change coupling: CircularList.swift \u2194 MacDebugView.swift: \u0060Sources/SwiftTerm/CircularList.swift\u0060 and \u0060Sources/SwiftTerm/Mac/MacDebugView.swift\u0060 change together 54% of the time (7 of the 13 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 different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060fe3f9e5e\u0060 Store terminal rows as compact packed cells; \u0060690e6c62\u0060 Bring back some debugging code I removed for the sake of performance; \u0060435a5266\u0060 Remove unsafe code, make a few other things private, not clear if it \u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/CircularList.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4864b2a7b4bc9fb33cb4f3f9c6ec232ff769e87a95bf04cd956ab818cc0a72f8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MacTerminalView.swift \u2194 Profiling.swift: \u0060Sources/SwiftTerm/Mac/MacTerminalView.swift\u0060 and \u0060Sources/SwiftTerm/Profiling.swift\u0060 change together 50% of the time (6 of the 12 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 different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060d689589b\u0060 Reduce terminal frame lock time and harden PTY benchmarks; \u0060b50e3b68\u0060 Coalesce terminal resizes during live macOS window drags; \u0060c1e97639\u0060 Fix the attribute cache. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed211ea478ec4bb5e0f1707ba3085d978757c4030952e9288055072dc6917511"}},{"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":"6cc4f6cb5328ae042c1ab75b26b6d36fb9e8b630690fbfb7185f0c8324d0de0b"}},{"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":"6db6399d09e88f29b9eab4dc312ac0f26f20d43f0d3614757741c9477c31a38f"},"taxa":[{"id":"CICD-SEC-4","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":"9ed9eb315b60e5914b89000d6b39606ff4af493ec3a135980a5ac26a5f0180e9"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060#terminal-input\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/styles.css"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3aa9af9d60320aed49cc8c9d509139b31ef1938308b4f2ac823bf98aa56349"}},{"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":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060TerminalApp\u0060, \u0060TerminalApp/WebTerminal\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"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 3 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/web-wasm.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060Web/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/package.json"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd23673ecb8cc499ab25d29a8b781d1ed162cd7e189b8c1f42c8c0f4c0a8e3ff"}},{"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":"PF1","level":"note","message":{"text":"Benchmarks don\u0027t track allocations: A Swift package-benchmark suite exists but nothing turns on its allocation measurement \u2014 allocations (the main way hot code pressures a garbage collector or allocator) aren\u0027t being measured."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tools/SwiftTermBenchmarks/Benchmarks/SwiftTermBenchmarks/SwiftTermBenchmarks.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e61ee7e3ff82606af3e7397d9b7ff906649d907189ffd65783eb3b7b41a912e"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 16 plain JS \u2014 the untyped files are TerminalApp/WebTerminal/Public/app.js, TerminalApp/WebTerminal/Public/clipboard.js, Tests/WebWasmTests/browser-input.mjs, Tests/WebWasmTests/browser.mjs, Tests/WebWasmTests/canvas-grid.mjs, Tests/WebWasmTests/conformance.test.mjs (\u002B10 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): TerminalApp/WebTerminal/Public/app.js:206 \u00B7 TerminalApp/WebTerminal/Public/app.js:237 \u2014 the two spans are one implementation copied and then locally edited \u2014 83 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/app.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbe8bd77daa273cdf01e9a4ad01b257c8432b2106e1f2fb6702ce65029c48c4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function run (cyclomatic 27, cognitive 46): run has cyclomatic complexity 27 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/clipboard.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ff757966896a9d6a93a18ea4642d75055eb40de6ea71753718e38c4c51b813"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function accept (cyclomatic 16, cognitive 17): accept has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/clipboard.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e0177e5a8665bc9a4592fc827a757a2d5cdca3bd8fbcc4ee1fe4d598ee37ad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function show (cyclomatic 16, cognitive 17): show has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/clipboard.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0077db71eb2151d1a621cdb7991a4050db57dc230d7c46eedcbdc9b683f9df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pump (cyclomatic 15, cognitive 14): pump has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/app.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d399254c0891fcefaf370fda24ad340f942c6a58fdf169dd844e6567b9a7ac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function paste (cyclomatic 14, cognitive 15): paste has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/app.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"751f2527a27f7a88ce2715265eb562e9d6ebe30958dfa9ba9e6f047ce8f91afa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function makeClipboardItem (cyclomatic 13, cognitive 15): makeClipboardItem has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/clipboard.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6f97a6347d837488f171fb9e4b440fb0cd14ba4f3159d6e41c8afc14498fc2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 19): (anonymous) has cyclomatic complexity 12 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/app.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77a9bfeb429dafab4e73bbcfe7e14fd55404f8ff17c0b585de9ffb91b32aa31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function decodeServerMessage (cyclomatic 12, cognitive 11): decodeServerMessage has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/app.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cdacb1025eff00a2831818b302e0bcc0a672875dec9dbee35786bd1ee704ed8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateInput (cyclomatic 12, cognitive 11): updateInput has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TerminalApp/WebTerminal/Public/app.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a2dbf67d922acf3d72f6320db9f22df9278c84fa395b6ba10aea843a3d9001"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 32): (anonymous) has cyclomatic complexity 11 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/WebWasmTests/canvas-grid.mjs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e20de0dfe30e0e27058144f147826337bff0cba67674da3f454058bf549089"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027playwright\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/WebWasmTests/browser.mjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fc993bbe5373705779ddc8b75f94a552607f94fc068458871829ff1ca6537a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!os(iOS) \u0026\u0026 !os(Windows) \u0026\u0026 !os(WASI) \u0026\u0026 !os(Android)\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/HeadlessTerminal.swift, Sources/SwiftTerm/TerminalIOPipeline.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/HeadlessTerminal.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a967f67ce1a2debd660d864789367eefe882d469de169ef42c18cb5d5bf3816b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Thread.isMainThread \u0026\u0026 !source.terminalLock.isLockedByCurrentThread\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/Mac/MacTerminalView.swift, Sources/SwiftTerm/iOS/iOSTerminalView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":4207}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1f4966e8be1ac8f13eafc425fbeec4086a05d967d63bf9e7aad5e3def31565"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data.cellAttribute.style.contains(.invisible) || (!data.textBlinkVisible \u0026\u0026 data.cellAttribute.style.contains(.blink))\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/Mac/MacCaretView.swift, Sources/SwiftTerm/iOS/iOSCaretView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacCaretView.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0f17613d90021d1f9bcb3c6fa800ea8ec575fac1e8942ccacd171cb17bd476"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060drawRect.width \u003C= 0 || drawRect.height \u003C= 0\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/Apple/AppleTerminalView.swift, Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3323}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb721dc0fbdc60793361cf9c0142bb3e94ea4107fe12da202605a9405aa24e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060grid.columns != lastGrid.columns || grid.rows != lastGrid.rows\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/Mac/MacTerminalRenderView.swift, Sources/SwiftTerm/iOS/iOSTerminalRenderView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalRenderView.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe7cd689f0434227500fd42b6f08321885c69bda1c4f7de633b8c2ee56dea30"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060linkHighlightMode == .hover || linkHighlightMode == .hoverWithModifier\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/Mac/MacTerminalView.swift, Sources/SwiftTerm/iOS/iOSTerminalView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Mac/MacTerminalView.swift"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f30ffd155799dcc46157258e5cecf6e4aed7ec45f4778843061f2252fbdb2b2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os(macOS) || os(iOS) || os(visionOS) || os(macCatalyst)\u0060 appears character-identically in 10 files \u2014 Sources/SwiftTerm/Apple/ArabicShapingData.swift, Sources/SwiftTerm/Apple/BidiMirroringData.swift, Sources/SwiftTerm/Apple/Metal/MetalRenderTarget.swift, Sources/SwiftTerm/Apple/Metal/TerminalMetalLayerView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/ArabicShapingData.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6baad256eb1f0419a03e45b673a3025d11d1c458f1b5dfee5ba75715739f56"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os(macOS) || os(iOS) || os(visionOS) || os(tvOS)\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/Apple/FrameDriver.swift, Sources/SwiftTerm/Apple/TerminalProgressBarView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/FrameDriver.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f94a68e0c6f81a3bc6535393a606944d5f00a3aa00e512e12ceadda7f47d709"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060placeholder.placementId != 0 \u0026\u0026 record.placementId != placeholder.placementId\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/Apple/AppleTerminalView.swift, Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3929}}}],"partialFingerprints":{"codehealthFindingId/v1":"823a674f8ae4bc58f758f9448e5c08745e73e58644e45c7965ccedb78270ae20"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060placementRect.width \u003C= 0 || placementRect.height \u003C= 0\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/Apple/AppleTerminalView.swift, Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3953}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d05f02b1950a01de16c8fbea1fde6f4f761df2bf19e2ba5cf2987185f28b356"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060position.row \u003E= 0 \u0026\u0026 position.row \u003C buffer.lines.count\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/Apple/AppleTerminalView.swift, Sources/SwiftTerm/Terminal.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":2932}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb13d2de6bf86839596a38edcfe78449ddb869c5ea9cefe49e2c95e011ad6ce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060record.geometry.columns \u003E placeholder.placeholderCol \u0026\u0026 record.geometry.rows \u003E placeholder.placeholderRow \u0026\u0026 record.geometry.columns \u003E 0 \u0026\u0026 \u2026\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/Apple/AppleTerminalView.swift, Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3932}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5b35bdbea110a73a668d295e70f561ffe1290ea6554c8040b706c1ce26ef67"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scalar.value \u003C 0x20 || (scalar.value \u003E= 0x7f \u0026\u0026 scalar.value \u003C= 0x9f)\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/KittyKeyboardEncoder.swift, Sources/SwiftTerm/Mac/MacKeyboardRouter.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyKeyboardEncoder.swift"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc44f522559ff8fefccbbc08cad63dcc0b728063cd6ad010ab1fe0b0f0f99417"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060underlineStyle.contains(.patternDash) || underlineStyle.contains(.patternDashDot) || underlineStyle.contains(.patternDashDotDot)\u0060 appears character-identically in 2 files \u2014 Sources/SwiftTerm/Apple/AppleTerminalView.swift, Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/AppleTerminalView.swift"},"region":{"startLine":3173}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a1f684c9c86b912a80d24ba402d658366e4125f996072a4e5b824c5d688191"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTermBuildInfoGenerator/BuildInfoGenerator.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a263ca41a9666dd6da5042f7df79146680edbb6311cadcbdb66be2b4818444"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/KittyGraphics.swift"},"region":{"startLine":2763}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba5bb1fe1e49ca916540f31d0f8d8ea458ab12dd391ff40bb8478e9e4abe66a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SwiftTerm/Apple/Metal/PlainTextFont.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a29996e197be7c34445b0c9fb1a1b03e5aa405dacc2bae20bc126c87ad9cc30"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060percent_delta\u0060 returns \u0060\u0027na\u0027\u0060 when \u0060(KeyError, ValueError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tools/run-pty-benchmark.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f3bf4514961ab1223282a3f7b52c3efaacf7e15b980d6c2ca19769d577c677"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060errorDetail\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Web/src/loader.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1ba9e5019026d9a131f2a3b0f6919c5ee3d1b9f50eb54c826934fff30c8b6c"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-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-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"}]}],"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":26,"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."]}]}