{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","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-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"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":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"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":"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":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"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":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"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":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"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":"MarkdownHighlightSource.preparing (cyclomatic 36): MarkdownHighlightSource.preparing has cyclomatic complexity 36 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 9 of the 25 methods over the threshold \u2014 including the worst \u2014 and 84 of the 192 points over it (44%), 4.9\u00D7 the next-largest file (md-preview/Rendering/MarkdownWebView.swift at 17). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceccc4e085606fca63fbe385295a894bea92fc52b5b73f9b3e46a3bc45ab4736"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownTableSource.applying (cyclomatic 35): MarkdownTableSource.applying has cyclomatic complexity 35 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 9 of the 25 methods over the threshold \u2014 including the worst \u2014 and 84 of the 192 points over it (44%), 4.9\u00D7 the next-largest file (md-preview/Rendering/MarkdownWebView.swift at 17). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4b1ac806213c9aa9f8ebb817fe67c3139b4fcec60777759455f74e8d46486e"}},{"ruleId":"D1","level":"warning","message":{"text":"EscapingHTMLFormatter.sourceIndentedListLine (cyclomatic 32): EscapingHTMLFormatter.sourceIndentedListLine has cyclomatic complexity 32 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 9 of the 25 methods over the threshold \u2014 including the worst \u2014 and 84 of the 192 points over it (44%), 4.9\u00D7 the next-largest file (md-preview/Rendering/MarkdownWebView.swift at 17). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"8267df541bdd27bdcd96a7178567c52335f60ecccb0eb0b4af9c652478ad4a33"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownWebView.didReceiveHostMessage (cyclomatic 32): MarkdownWebView.didReceiveHostMessage has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/MarkdownWebView.swift"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5c98418ad18f5a5f12f20ed632039e2adf38ea3d652e5af54dbfa3c85a9866"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownAssetResolution.imageDestinationRange (cyclomatic 31): MarkdownAssetResolution.imageDestinationRange 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":"md-preview/Rendering/MarkdownAssetResolution.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7653345d06b302529e6a05ff3626d632848ec531228e1344e40d23d36b3768a2"}},{"ruleId":"D1","level":"warning","message":{"text":"DocumentExportSession.writeEPUB (cyclomatic 27): DocumentExportSession.writeEPUB 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":"md-preview/Rendering/DocumentExportSession.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"5562d69aceb0140fb440a07962f8b0a1490cbd758fa3576c41106744c99a1574"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.handle (cyclomatic 27): EditorViewController.handle 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":"md-preview/Features/Editor/EditorViewController.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a37c789c5da01e8c1ffe9a4096be3048aa7159d0d3bb560d62ee0e699874c1"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeFenceLanguageDetector.detect (cyclomatic 24): CodeFenceLanguageDetector.detect has cyclomatic complexity 24 (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":"md-preview/Rendering/CodeFenceInfo.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e347fe5fe7c00fc0f2b8707beae15e7b66b810c28842a58d77ee8b895c2e0897"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownHighlightSource.protectHTML (cyclomatic 24): MarkdownHighlightSource.protectHTML 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 9 of the 25 methods over the threshold \u2014 including the worst \u2014 and 84 of the 192 points over it (44%), 4.9\u00D7 the next-largest file (md-preview/Rendering/MarkdownWebView.swift at 17). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb69ac9731991ddd0f728dacf189338c544cd3429df9a72e3d7f5f216d42a75"}},{"ruleId":"D1","level":"warning","message":{"text":"FileSearchMatcher.align (cyclomatic 24): FileSearchMatcher.align 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":"md-preview/Features/FileSearch/FileSearchMatcher.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa4134bab6416e9c9faf6c669bd2b009086c96d7e77b2172fb5f853062e0de3"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownHTML.render (cyclomatic 21): MarkdownHTML.render 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":"md-preview/Rendering/MarkdownHTML.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"39dcd497a8a5a5ea119c70e6fdcd718af6e9bfd19e4f16ee11623da3b89f2aa4"}},{"ruleId":"D1","level":"warning","message":{"text":"DocumentWindowController.applyImageRename (cyclomatic 20): DocumentWindowController.applyImageRename 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":"md-preview/Document/DocumentWindowController\u002BImageHandling.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2db4e52ca0a10a55b04e22c45a0f018ee8a8e6102a6e112becb54ef230a076"}},{"ruleId":"D1","level":"warning","message":{"text":"MainSplitViewController.enterEditMode (cyclomatic 20): MainSplitViewController.enterEditMode has cyclomatic complexity 20 (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":"md-preview/Document/MainSplitViewController.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8744a9eef6f21273eb6a0a93dea955ba9f4a667fa379c85350748ae7cd916cd"}},{"ruleId":"D1","level":"warning","message":{"text":"EscapingHTMLFormatter.renderAlertIfPresent (cyclomatic 20): EscapingHTMLFormatter.renderAlertIfPresent 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 9 of the 25 methods over the threshold \u2014 including the worst \u2014 and 84 of the 192 points over it (44%), 4.9\u00D7 the next-largest file (md-preview/Rendering/MarkdownWebView.swift at 17). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a174e87fa02cb5f62bcd127dd6db7bebe6c1fae20c194e3cce7a93b15d4493a6"}},{"ruleId":"D1","level":"warning","message":{"text":"EscapingHTMLFormatter.visitCodeBlock (cyclomatic 20): EscapingHTMLFormatter.visitCodeBlock 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 9 of the 25 methods over the threshold \u2014 including the worst \u2014 and 84 of the 192 points over it (44%), 4.9\u00D7 the next-largest file (md-preview/Rendering/MarkdownWebView.swift at 17). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69b96fb32305d968f3d5f09c6b03b6e6dc761791e32c7b76705a38b8893ef2e"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownFrontmatter.parseYaml (cyclomatic 20): MarkdownFrontmatter.parseYaml 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":"md-preview/Rendering/MarkdownFrontmatter.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aba276de77d504a398d95d02fd0a02ef168fb67329e8bbef7ddbade1e856c36"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownHighlightSource.protectLinkDestinations (cyclomatic 19): MarkdownHighlightSource.protectLinkDestinations 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 9 of the 25 methods over the threshold \u2014 including the worst \u2014 and 84 of the 192 points over it (44%), 4.9\u00D7 the next-largest file (md-preview/Rendering/MarkdownWebView.swift at 17). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"590b5b5a271fd4a0fc191d2dc45be3ae01b628b7b7a923258992519a7e4fa774"}},{"ruleId":"D1","level":"warning","message":{"text":"MainSplitViewController.exitEditMode (cyclomatic 18): MainSplitViewController.exitEditMode has cyclomatic complexity 18 (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":"md-preview/Document/MainSplitViewController.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72d25fca47305ab45341593eac1b4d357a66ba21c93fedc148bea63492c59a6"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickLookWebView.updateCursorRegions (cyclomatic 17): QuickLookWebView.updateCursorRegions has cyclomatic complexity 17 (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":"quick-look/PreviewViewController.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d147280f68ee74b550cc1d8dbba91b32dd2f94dc877242971d39bcdb75a282"}},{"ruleId":"D1","level":"warning","message":{"text":"DocumentWindowController.scheduleInspectorRefresh (cyclomatic 17): DocumentWindowController.scheduleInspectorRefresh has cyclomatic complexity 17 (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":"md-preview/Document/DocumentWindowController\u002BEditSession.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5444c4df410efe60abb3845e58eafb777f71821ddc968523b30515c2de525c00"}},{"ruleId":"D1","level":"warning","message":{"text":"LayeredContentViewController.updateChromeOverlayLayout (cyclomatic 17): LayeredContentViewController.updateChromeOverlayLayout 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":"md-preview/Document/MainSplitViewController.swift"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc75fb4bf5e8702c0f91cd7086fcfbd4870f755cfb2156d9da514d2f512ae24"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownHighlightSource.htmlBlockTag (cyclomatic 17): MarkdownHighlightSource.htmlBlockTag has cyclomatic complexity 17 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 9 of the 25 methods over the threshold \u2014 including the worst \u2014 and 84 of the 192 points over it (44%), 4.9\u00D7 the next-largest file (md-preview/Rendering/MarkdownWebView.swift at 17). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e5873709d74f7160b7887dcbeba626eadd9fa04e884d36d28071a68028399c"}},{"ruleId":"D1","level":"warning","message":{"text":"ReleaseNotes.fetchAuthors (cyclomatic 17): ReleaseNotes.fetchAuthors 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":"md-preview/Features/Updates/ReleaseNotes.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6b67b89859346b2f5da95b7696a4653fade89e2afa303476e68e60ea0f1cf1"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockGlassHUD.show (cyclomatic 16): BlockGlassHUD.show 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":"md-preview/Rendering/BlockGlassHUD.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacb02d0bb823d74d3cd7c7de520e22628859398cf1c39fb5c8f08fc32e1df52"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownTableSource.splitRow (cyclomatic 16): MarkdownTableSource.splitRow 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 9 of the 25 methods over the threshold \u2014 including the worst \u2014 and 84 of the 192 points over it (44%), 4.9\u00D7 the next-largest file (md-preview/Rendering/MarkdownWebView.swift at 17). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e4fafd45581ad6acc0d87329ba40487d8afd7e854ffad0d93977d901539429"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownHighlightSource.protectHTML (cognitive 53): MarkdownHighlightSource.protectHTML has cognitive complexity 53 (threshold 15). Drivers by points: if/else 14 (34 pts), loops 7 (16 pts), boolean chains 3 (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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a384b7e421d7d5e31f59913bb85d90678f289e784f0ba93ed759d258aaebbed9"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownHighlightSource.preparing (cognitive 52): MarkdownHighlightSource.preparing has cognitive complexity 52 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 14, loops 7 (12 pts), ternaries 3 (6 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"27375db7dd611bca3731d1507a30109f854830a18f283ad6559f435f330e63c9"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownAssetResolution.imageDestinationRange (cognitive 45): MarkdownAssetResolution.imageDestinationRange has cognitive complexity 45 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 6, loops 4 (5 pts), match/switch 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":"md-preview/Rendering/MarkdownAssetResolution.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c4ba7fa4daad176a797045e9e1aad9c7ecaf003fb33df7e30044bfe9739444"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSearchMatcher.align (cognitive 44): FileSearchMatcher.align has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (33 pts), boolean chains 5, loops 4 (5 pts), ternaries 1 (nesting depth added 21). 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":"md-preview/Features/FileSearch/FileSearchMatcher.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"174586d1544b4017675019b9afe7804817e47fd6bf75f026b2d82826d9beda11"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownTableSource.applying (cognitive 38): MarkdownTableSource.applying has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 12, loops 3 (6 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eefdb5cb5fd6c09334ed27a9ddbd0110f29c8924c636ed962eedef5c2406080"}},{"ruleId":"D2","level":"warning","message":{"text":"EscapingHTMLFormatter.sourceIndentedListLine (cognitive 37): EscapingHTMLFormatter.sourceIndentedListLine has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 19, if/else 10 (12 pts), loops 4 (6 pts) (nesting depth added 4). 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 file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e4829fd1933bb5bf96e30b3f14478d5095a56e1672ee6a03cd770e10983a49"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownHighlightSource.protectLinkDestinations (cognitive 33): MarkdownHighlightSource.protectLinkDestinations has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 4 (8 pts), boolean chains 4 (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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd919f1ea4643a77a4790cbc6dbf835fdcf74523424e43656b88104b5b0c070"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownWebView.didReceiveHostMessage (cognitive 33): MarkdownWebView.didReceiveHostMessage has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 5, match/switch 2 (3 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":"md-preview/Rendering/MarkdownWebView.swift"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdef0bb2119775e6e907065b45c54bbc235cf7aa1dc839e3e0cebc945f76691"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentExportSession.writeEPUB (cognitive 32): DocumentExportSession.writeEPUB has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 11, ternaries 4 (7 pts), 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":"md-preview/Rendering/DocumentExportSession.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"414c658d99cdc5fcb1b5f10d1fa7cd2de041c57ae0d3312ed911dc11c4199de4"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownFrontmatter.parseYaml (cognitive 30): MarkdownFrontmatter.parseYaml has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 7, ternaries 2 (4 pts), loops 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":"md-preview/Rendering/MarkdownFrontmatter.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9c50fdbec8305a4815225e6711caf7bd5b863829ec4d028d40d506a73089dd"}},{"ruleId":"D2","level":"warning","message":{"text":"ReleaseNotesFormatter.document (cognitive 30): ReleaseNotesFormatter.document has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 3 (6 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":"md-preview/Features/Updates/ReleaseNotesFormatter.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b446ec1a9996bd4f3be5455d875be419db0e100efd982c6dc12c4bc8ae6a9f"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.handle (cognitive 26): EditorViewController.handle has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 7, 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":"md-preview/Features/Editor/EditorViewController.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"475bec82306b3ba1616d4ca753d6728a446283772d0e7d70608b0bb28ae03c1c"}},{"ruleId":"D2","level":"warning","message":{"text":"EscapingHTMLFormatter.renderAlertIfPresent (cognitive 25): EscapingHTMLFormatter.renderAlertIfPresent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 4 (6 pts), boolean chains 3, match/switch 1, ternaries 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64301ea20b127815d31c4d8e4187bff20847dec3b403399868e1b35d42c4f6e"}},{"ruleId":"D2","level":"warning","message":{"text":"ReleaseNotes.fetchAuthors (cognitive 25): ReleaseNotes.fetchAuthors has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 5 (6 pts), boolean chains 3, 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":"md-preview/Features/Updates/ReleaseNotes.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5cefb0d4a810101b958e6966e4dc397b9c6abd5679505986a22ec585bcbc77d"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownTableSource.splitRow (cognitive 24): MarkdownTableSource.splitRow has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6, 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"381f92b6a4fd82dd7c63ae8b8cead6fe04c22274ff2bdeb4da52b15bbf64c124"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeFenceLanguageDetector.detect (cognitive 23): CodeFenceLanguageDetector.detect has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, boolean chains 9. 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":"md-preview/Rendering/CodeFenceInfo.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f857fbeab5e235e086bdb6f4f7c1ac19ba5f78f42a1a9a06b3f226725a03e5"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentWindowController.updateFormattingSelection::update (cognitive 22): DocumentWindowController.updateFormattingSelection::update has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 3 (12 pts), if/else 5 (8 pts), boolean chains 2 (nesting depth added 12). 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":"md-preview/Document/DocumentWindowController\u002BFormattingBar.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"387107aed125341ea11583b4035390a54cfd77f36b2cc3ddbbe3717854bdc730"}},{"ruleId":"D2","level":"warning","message":{"text":"EscapingHTMLFormatter.visitCodeBlock (cognitive 22): EscapingHTMLFormatter.visitCodeBlock has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (7 pts), ternaries 5 (6 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, 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"066ca71fa99e231e92ff41e0f461e9632daa2f82bdfebbb1fe97f408e3f43e02"}},{"ruleId":"D2","level":"warning","message":{"text":"MainSplitViewController.enterEditMode (cognitive 21): MainSplitViewController.enterEditMode has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (10 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":"md-preview/Document/MainSplitViewController.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b2e254922a4b9321bb0712d8744b29ea47a6617928025137243723eaf8eed6"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockGlassHUD.show (cognitive 21): BlockGlassHUD.show has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 6 (7 pts), boolean chains 5 (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":"md-preview/Rendering/BlockGlassHUD.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f218c7a195a72d72c0cc5db87857ee60ec6c9a5f8aa66d3f0a181e9b0cce9d4e"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownHTML.splitFootnoteDefinitions (cognitive 21): MarkdownHTML.splitFootnoteDefinitions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (4 pts), boolean chains 1 (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":"md-preview/Rendering/MarkdownHTML\u002BFootnotes.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"464085bf72ee2f65b9d7d6a9ddd3d667cf5c85922a0545333f5aa3f953900e8b"}},{"ruleId":"D2","level":"warning","message":{"text":"EscapingHTMLFormatter.swift.insertingCJKPhraseBreaks (cognitive 21): EscapingHTMLFormatter.swift.insertingCJKPhraseBreaks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 6, match/switch 2, loops 1 (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 4 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"4616bdf4bda495f86b7a67b7659b632ee960effc4964d570ef12fca3b7a6e1fb"}},{"ruleId":"D2","level":"warning","message":{"text":"MainSplitViewController.exitEditMode (cognitive 20): MainSplitViewController.exitEditMode has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 9 (10 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":"md-preview/Document/MainSplitViewController.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51ddc8519ebf92e1c11a966de9bf1dc0f0a4a152d53a6372df1a13a21f3f51f"}},{"ruleId":"D2","level":"warning","message":{"text":"EscapingHTMLFormatter.visitParagraph (cognitive 20): EscapingHTMLFormatter.visitParagraph has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"2090b2631e3421a7c441a2a11b0dbde9de82e596f5b513449c2933771ae19e46"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownHTML.render (cognitive 20): MarkdownHTML.render has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 11, boolean chains 4, if/else 4, match/switch 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":"md-preview/Rendering/MarkdownHTML.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69e1b634a140a731fc8b2903e4b0ed89deb59b2dd73424bc131e1b34451ccfa"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentWindowController.buildOpenActionsMenu (cognitive 19): DocumentWindowController.buildOpenActionsMenu has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 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":"md-preview/Document/DocumentWindowController\u002BOpenTargets.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acb2c1c77411bcfc69542b70a20f8e44dbfae6c1bd38d21964605e89c7fa750"}},{"ruleId":"D2","level":"warning","message":{"text":"LayeredContentViewController.updateChromeOverlayLayout (cognitive 19): LayeredContentViewController.updateChromeOverlayLayout has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 8 (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":"md-preview/Document/MainSplitViewController.swift"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8799d99d5689f7d697adc92f7fb8218bc386ea8341fbe682c04b678863eaf1c"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentWindowController.applyImageRename (cognitive 18): DocumentWindowController.applyImageRename has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (6 pts), error handling 1, match/switch 1, ternaries 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":"md-preview/Document/DocumentWindowController\u002BImageHandling.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b49948711a00e0780b5788bc9ad4ea97f1c332a9a8dc972c4de19b40066aa00"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeHighlighter.decorateShellOptions (cognitive 18): CodeHighlighter.decorateShellOptions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 1 (3 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":"md-preview/Rendering/CodeHighlighter.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff4fb5e27887d7f8c1392a27282cb5515046dd4f1f1e0565c7548bc679727dd"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownHighlightSource.protectIndentedCode (cognitive 18): MarkdownHighlightSource.protectIndentedCode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (6 pts), boolean chains 5, loops 3 (5 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"70dd57d2fc1feab0180346c796d4aea6a289d38c4b0f402956e4964375a43e35"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownTableSource.escapedCell (cognitive 18): MarkdownTableSource.escapedCell has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 4, loops 2 (4 pts), ternaries 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"502cb15ed531873ac522c82150e57b22484f5955d3cfea6d1f6364f8ad5232ca"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownHTML.renderMathBlocks (cognitive 18): MarkdownHTML.renderMathBlocks has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 3 (5 pts), boolean chains 2, 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":"md-preview/Rendering/MarkdownHTML\u002BMath.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fb9276c6d3bc65722051c2e6442b861968c9f4d9b10f62df8b07484da8ae6a"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectNavigatorView.rebuildFolderMenu (cognitive 18): ProjectNavigatorView.rebuildFolderMenu has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), boolean chains 1, ternaries 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":"md-preview/Features/Sidebar/ProjectNavigatorView.swift"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d899091b633d061962b5181faff4fa960e82b2fe490b11e8172e7f8725b8b2"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareLink.parse (cognitive 17): ShareLink.parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5 (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":"md-preview/Features/ShareLink/ShareLink.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ae1249bdc3898b3d6cfb79f845dd871d9e7f8d8e72015688299c23db366e93"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickLookWebView.updateCursorRegions (cognitive 16): QuickLookWebView.updateCursorRegions has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 4, match/switch 1, 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":"quick-look/PreviewViewController.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3b779d8ddd1418f0920e966065d6758951a6bb61ab03fc377d3a84ca2fc263"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentWindowController.scheduleInspectorRefresh (cognitive 16): DocumentWindowController.scheduleInspectorRefresh has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 4. 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":"md-preview/Document/DocumentWindowController\u002BEditSession.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"3808d512a9f75e03d6748b1476ec2d1a58659953110fbed24089ac1d8a66433f"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentWindowController.syncSidebarToolbarState (cognitive 16): DocumentWindowController.syncSidebarToolbarState has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 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":"md-preview/Document/DocumentWindowController\u002BSidebar.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e799dd253e1d34672f654d4dbdaa8dabd0756c41d49643268eb8d73759fbbb68"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownHighlightSource.htmlBlockTag (cognitive 16): MarkdownHighlightSource.htmlBlockTag has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 5, loops 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: md-preview/Rendering/EscapingHTMLFormatter.swift holds 13 of the 39 methods over the threshold \u2014 including the worst \u2014 and 182 of the 396 points over it (46%), 6.1\u00D7 the next-largest file (md-preview/Features/FileSearch/FileSearchMatcher.swift at 30). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a56ab81886e12e75fd5c1da80afb2bb0ba5c9c4c17e99e23ca661a034cc5bdc"}},{"ruleId":"D2","level":"warning","message":{"text":"PreparedText.init (cognitive 16): PreparedText.init has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, ternaries 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":"md-preview/Features/FileSearch/FileSearchMatcher.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"d049e6c7f2b832a3fb01800e05fde57101fdf182a69aede3a86c57fcc5b2d9a4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DocumentWindowController: TooManyMethods \u2014 259 methods, declared across 15 files: Document/DocumentWindowController\u002BOpenTargets.swift (44), Document/DocumentWindowController\u002BToolbar.swift (40), Document/DocumentWindowController.swift (29), Document/DocumentWindowController\u002BEditSession.swift (26), \u002B11 more file(s). The bar is 30 methods; this is 229 over it, 8.63\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":"md-preview/Document/DocumentWindowController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"173de158f072705e1beeb4b56e0491eae36817e0da10536e49111a9126b1431e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorHTML.render: MethodTooLong \u2014 render runs 591 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 491 over it, 5.91\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":"md-preview/Features/Editor/EditorHTML.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f9c56d407af7f4ef2e6b650697306fbe10b3fe7f24451389c82632305cf51f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppDelegate: TooManyMethods \u2014 92 methods. The bar is 30 methods; this is 62 over it, 3.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":"md-preview/App/AppDelegate.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d1c7c041fc5e0185e6a20ae26a007e6aa8ce4b166b09314cef1fa364f91919"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MarkdownWebView: TooManyMethods \u2014 91 methods, declared across 2 files: Rendering/MarkdownWebView.swift (84), Rendering/MarkdownWebView\u002BPDFExport.swift (7). The bar is 30 methods; this is 61 over it, 3.03\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":"md-preview/Rendering/MarkdownWebView.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"2309cd3066b62a8412daec669b142d88ea62de3fd04e7eef49ae709d0bf6bffa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MarkdownWebView: ClassTooLong \u2014 1120 significant lines (blank, comment-only and punctuation-only lines excluded), 91 methods. The bar is 400 significant lines; this is 720 over it, 2.80\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":"md-preview/Rendering/MarkdownWebView.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e1625f40a5405e3a228604a34766c7be03df909d08a817ed470e9c4ebfb1bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Rendering/EscapingHTMLFormatter.swift: FileTooLong \u2014 1386 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 886 over it, 2.77\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":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"574726cfd64e2ef1e342128e29cabb0e730a6f5c0b381b7a8d289cb2a36bcff7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Rendering/MarkdownWebView.swift: FileTooLong \u2014 1385 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: MarkdownWebView (187-1840). The bar is 500 significant lines; this is 885 over it, 2.77\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":"md-preview/Rendering/MarkdownWebView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe35413d1ce0022e233f009eaae184865e50c46c53b0270e2fb179a468b57ff"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProjectNavigatorView: TooManyMethods \u2014 71 methods. The bar is 30 methods; this is 41 over it, 2.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":"md-preview/Features/Sidebar/ProjectNavigatorView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef61ebe533b62769e3dfb45453346ada2cf80e8fa44238feaa8ace85835111a5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ContentViewController: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\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":"md-preview/Document/ContentViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec20245f098c208acc8072012fa93ad92347697598f4141fc5b01a0f9c53794"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sidebar/ProjectNavigatorView.swift: FileTooLong \u2014 882 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: ProjectNavigatorView (51-983). The bar is 500 significant lines; this is 382 over it, 1.76\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":"md-preview/Features/Sidebar/ProjectNavigatorView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1c65e1f7a785208be7085533f6476b72c408bddb40467b003458517fffc71c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MainSplitViewController: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Document/MainSplitViewController.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aad6ed87bbf3680ed7c7ba8f743864a423265a8749176d1d7a8e3d63c8ad776"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MarkdownHTML.render: MethodTooLong \u2014 render runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\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":"md-preview/Rendering/MarkdownHTML.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"85248d7b658d3fcda0903df17446a2b7f26b15da1d434b7a9d42d8ef25c77220"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProjectNavigatorView: ClassTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 400 significant lines; this is 217 over it, 1.54\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":"md-preview/Features/Sidebar/ProjectNavigatorView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4f74cc85c36ff30010a68b5bd7629cf18b563d0e1dc08589b5e75732baf5ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Rendering/MarkdownWebView\u002BPDFExport.swift: FileTooLong \u2014 714 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 214 over it, 1.43\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":"md-preview/Rendering/MarkdownWebView\u002BPDFExport.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53258dbe51449811bdb3e984ac71c1109e3dc6127e170b1675ce60479971fa1e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Document/DocumentWindowController\u002BFormattingBar.swift: FileTooLong \u2014 713 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 213 over it, 1.43\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":"md-preview/Document/DocumentWindowController\u002BFormattingBar.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"710a143a6c6e4d8dc3eb1e882ad07645a5c8821307fa25cdba36fa13677e6eab"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ContentViewController: ClassTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 400 significant lines; this is 134 over it, 1.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Document/ContentViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"089d895cec537a10ec1ccc2c8f1fcda656bfbed5d7b3393052ec925a916bac83"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EscapingHTMLFormatter: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"752d2acb15287f57a9f19d9a8c736069d93814724a0b72e373ff64227e6f3359"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DocumentWindowController: ClassTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded), 259 methods. The bar is 400 significant lines; this is 131 over it, 1.33\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":"md-preview/Document/DocumentWindowController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec93538958b151db8188e66902914e7712ebaa922bd36773e35ad141e05d989c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FileSearch/FileSearchPanelController.swift: FileTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 141 over it, 1.28\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":"md-preview/Features/FileSearch/FileSearchPanelController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a35f44fd1080c4dca9e789bcfb06e7b5158e3a91b28d7d4a44d4c71fd336851"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Editor/EditorHTML.swift: FileTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 110 over it, 1.22\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":"md-preview/Features/Editor/EditorHTML.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20e00989291b7510e510a580f36dce368dabd1316f7385eff1ab047a1e44a01"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MermaidDiagramPopup.load: MethodTooLong \u2014 load 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":"md-preview/Features/Mermaid/MermaidDiagramPopup.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"587b45d6b0a52baa09a9cb2cf50d3d75336b7a9386153eda2babf7e3f830a6e3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MainSplitViewController: ClassTooLong \u2014 469 significant lines (blank, comment-only and punctuation-only lines excluded), 47 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":"md-preview/Document/MainSplitViewController.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"bace3b9ea16b5f3cf3b347608f287cd90d9b305383f0ca10d84769ac3e418de1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: App/AppDelegate.swift: FileTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 79 over it, 1.16\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":"md-preview/App/AppDelegate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"650d5a4b8667389039b7ff7d26e5a113f3573afd6a0630da08680c0c9b74b329"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Document/MainSplitViewController.swift: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: MainSplitViewController (8-773). The bar is 500 significant lines; this is 72 over it, 1.14\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":"md-preview/Document/MainSplitViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"526951f241a2f4657d067ddb542439b6a3639a776a8df9e1c93c0bae8377f7ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Document/DocumentWindowController\u002BEditSession.swift: FileTooLong \u2014 570 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 70 over it, 1.14\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":"md-preview/Document/DocumentWindowController\u002BEditSession.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd862cc2e52860c8942163877c071a1fddd75c50f640fa62f19ed672406e9757"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Document/ContentViewController.swift: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: ContentViewController (17-928). The bar is 500 significant lines; this is 65 over it, 1.13\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":"md-preview/Document/ContentViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6035d5615a64ecca8845772883fadcdfe3c8df92cf734c1999b36aa802eca1d2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorViewController: 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":"md-preview/Features/Editor/EditorViewController.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e28e37803bb07e0410651f1fd999e4849e5c5072e2c34def03e182819a6907"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DocumentWindowController.showLiquidGlassEditAccessory: MethodTooLong \u2014 showLiquidGlassEditAccessory 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":"md-preview/Document/DocumentWindowController\u002BFormattingBar.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"f785da45c2394e7e16271d0ec7ded5d0132bb33e22343578a65ade8f31298e58"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FileSearchPanelController.loadView: MethodTooLong \u2014 loadView 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":"md-preview/Features/FileSearch/FileSearchPanelController.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"36861c285ad12134e39c3b04d0a31796b19641b735656e3fd4c06c3a9a35d166"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Document/DocumentWindowController.swift: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: DocumentWindowController (17-899). The bar is 500 significant lines; this is 34 over it, 1.07\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":"md-preview/Document/DocumentWindowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec316debb9315f4016753b40dae4b9a4d680a5d62d7903e285ac3714a4f1531"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MarkdownWebView.highlightMatches: MethodTooLong \u2014 highlightMatches runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/MarkdownWebView.swift"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa54c6d95ba9fd3e83935d37107f5677ddcaca1bc8bc0d2f00323a76dd402d7e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MarkdownHTML.extractMath: MethodTooLong \u2014 extractMath 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":"md-preview/Rendering/MarkdownHTML\u002BMath.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4f6bb5b597ad390a327a997477c65361e3cb402282e280e7a00842ab22e99e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): md-preview/Document/DocumentLoadingOverlayView.swift:16-79 | md-preview/Document/DocumentWindowController\u002BFind.swift:100-138 | md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:130-264 | md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:266-293 | md-preview/Features/Editor/EditorViewController.swift:42-72 | md-preview/Features/Sidebar/ProjectNavigatorFilterBar.swift:117-145 | md-preview/Rendering/BlockGlassHUD.swift:63-112 | md-preview/Rendering/BlockGlassHUD.swift:212-232 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Document/DocumentLoadingOverlayView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7f077acccee9f606f0f7cd565d588a5fe81b1825433b7807aa69261d1a8089"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:773-802 | md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:851-884 \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":"md-preview/Document/DocumentWindowController\u002BFormattingBar.swift"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"a559c2ba7f0b24d072d369217c127853efddc3f87b4ad0f0d33c8921df1d191b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:286-321 | md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:560-595 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Document/DocumentWindowController\u002BOpenTargets.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0772061e2c68d09073c64d502a1d61ddcfa4466325c9d0f29aa560c9e8d8c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): md-preview/App/AppDelegate.swift:1352-1388 | md-preview/App/AppDelegate.swift:1390-1426 \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":"md-preview/App/AppDelegate.swift"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"371dc977019cfa43dec639a963f737bf56117bfb8e3626cc02156ecd270add76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:369-391 | md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:443-462 | md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:555-574 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"md-preview/Document/DocumentWindowController\u002BFormattingBar.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba0798be0191495b0afa951082577bc07b22d73c8c68b068d4286f88ccc1b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): md-preview/Rendering/MarkdownHTML\u002BFootnotes.swift:184-208 | md-preview/Rendering/MarkdownHTML\u002BUtils.swift:56-79 \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":"md-preview/Rendering/MarkdownHTML\u002BFootnotes.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f8a4be6ed180053ee79f2b8112ca42de4505ed329d5f755ab13abd75d6f555"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): md-preview/Rendering/MarkdownHTML\u002BHighlight.swift:246-289 | md-preview/Rendering/MarkdownHTML\u002BMermaid.swift:597-655 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/MarkdownHTML\u002BHighlight.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"12632c2fca8a450b6bc58814bc9ee099435194be37e4c4e72df3c2679102c066"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): md-preview/App/AppDelegate.swift:539-561 | md-preview/App/AppDelegate.swift:1175-1191 \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":"md-preview/App/AppDelegate.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d0d2fdb497bd002e4df1362d34fa8fcba59c2880d991709650a59a7469d769"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): md-preview/Features/ShareLink/ShareLinkClient.swift:60-70 | md-preview/Features/ShareLink/ShareLinkClient.swift:73-83 \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":"md-preview/Features/ShareLink/ShareLinkClient.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1cf0d883ecc77ed632865f3b60aa1bb2b89205e8144fd0945a1e9ccf02e3703"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:57-80 | md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:518-532 \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":"md-preview/Document/DocumentWindowController\u002BOpenTargets.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d29989d7f7dd04ea43c4034513a01a184555d83067f930409fdccfc31b0a7a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:370-390 | md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:392-413 \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":"md-preview/Document/DocumentWindowController\u002BOpenTargets.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d09716a76132acb57af8448ffe8a4396811e631c38acddd0d78b452b96e654"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): md-preview/Rendering/MarkdownWebView.swift:1049-1102 | md-preview/Rendering/MarkdownWebView.swift:1104-1146 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"md-preview/Rendering/MarkdownWebView.swift"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"176453253502edac4deb6fa35179a4b608ed9077c4bc5ac2834bf0db8900539e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): md-preview/Rendering/MarkdownWebView.swift:1187-1203 | md-preview/Rendering/MarkdownWebView.swift:1207-1223 \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":"md-preview/Rendering/MarkdownWebView.swift"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b33da3a84cb9205439e8561a6a70eb724b5fb660e436ddffdfb04e6153b2bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): md-preview/Features/Sidebar/ProjectNavigatorView.swift:1079-1089 | md-preview/Features/Sidebar/SidebarViewController.swift:337-350 \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":"md-preview/Features/Sidebar/ProjectNavigatorView.swift"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b8225d162b1b2a6c4e5084d0051f4e746101ffdfa10f630ffcb0d6c1b6eb1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:268-276 | md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:534-542 \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":"md-preview/Document/DocumentWindowController\u002BOpenTargets.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"2630b2f60f3687b766ac16f7ef3a6654d9bc022869232a2e5d64d185ad1cf6fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): md-preview/Rendering/MarkdownWebView.swift:1601-1614 | md-preview/Rendering/MarkdownWebView.swift:1969-1985 | md-preview/Rendering/MarkdownWebView.swift:1987-2002 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/MarkdownWebView.swift"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"58483dc722a94c4f3d620758b65da179e4f4cb62bfe85f3b5b522b8e6def1ce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 13\u002B corresponding lines): md-preview/Document/DocumentWindowController\u002BFileSearch.swift:55-67 | md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:43-55 | md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:226-238 | md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:504-516 | md-preview/Document/DocumentWindowController\u002BToolbar.swift:355-368 | md-preview/Document/DocumentWindowController\u002BToolbar.swift:382-394 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Document/DocumentWindowController\u002BFileSearch.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"c308e0c2c0518676d276839bdecde3ae999d18e15f23cf84f49323faf2bbffb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): md-preview/Document/DocumentWindowController\u002BToolbar.swift:344-353 | md-preview/Document/DocumentWindowController\u002BToolbar.swift:370-380 \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":"md-preview/Document/DocumentWindowController\u002BToolbar.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a81ec2245f19c6782d06586906ba84ec66820f7d1057290f56971fab7ea01c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): md-preview/ExternalOpenScheme.swift:28-40 | md-preview/Rendering/MarkdownAssetResolution.swift:51-57 \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":"md-preview/ExternalOpenScheme.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a964f9f641b7fc119d458b3d7e9a5e67b5bacfc848febc0102e2b0e59334422c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): md-preview/Rendering/MarkdownAssetResolution.swift:304-312 | md-preview/Rendering/MarkdownHTML\u002BMath.swift:363-369 \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":"md-preview/Rendering/MarkdownAssetResolution.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"5757730410c00b52504f5afeff1c9ed30e00470f87a53f133af3f3b6cbeee9b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): md-preview/Rendering/MarkdownHTML\u002BUtils.swift:175-181 | md-preview/Rendering/MarkdownWebView.swift:1381-1386 \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":"md-preview/Rendering/MarkdownHTML\u002BUtils.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a1180f3d0441dbee983f350134350f39967d00de537453e91bb0f2fc2950ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): md-preview/Theme/FullscreenToolbarTheme.swift:121-124 | md-preview/Theme/FullscreenToolbarTheme.swift:126-129 \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":"md-preview/Theme/FullscreenToolbarTheme.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b08c1cd0071a6ab8802a852df7e5513771959b9d43cd6c8d984bbd2b6e5966"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:576-587 | md-preview/Features/Sidebar/ProjectNavigatorView.swift:1055-1064 \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":"md-preview/Document/DocumentWindowController\u002BFormattingBar.swift"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"285d6e065ce7fecbe78e456ddc790f75f1be2cb18f444a2eda9b462caa27d785"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): md-preview/Document/ContentViewController.swift:680-698 | md-preview/Features/Editor/EditorViewController.swift:243-251 \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":"md-preview/Document/ContentViewController.swift"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"43de91011135450cb50a03b37c42821394ed5d000b85570269919bd62d53b345"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): md-preview/Features/ShareLink/ShareLinkClient.swift:85-90 | md-preview/Features/ShareLink/ShareLinkClient.swift:96-100 \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":"md-preview/Features/ShareLink/ShareLinkClient.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"77257ca860593d1c3530363a9c13edfeec97797b510546b3befb12545ee05330"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): md-preview/Rendering/MarkdownAssetResolution.swift:294-302 | md-preview/Rendering/MarkdownHTML\u002BMath.swift:354-361 \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":"md-preview/Rendering/MarkdownAssetResolution.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ee010d5fcd344cd0870f6e115a3984fc04912ac013192a604a7d1eb4b915b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): md-preview/Rendering/DocumentFontSetting.swift:121-127 | md-preview/Rendering/TextAlignmentSetting.swift:19-25 \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":"md-preview/Rendering/DocumentFontSetting.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b98c361ce2d2cd1115c62ab4fb8f712721bf137de792baba29b56579cc97f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): md-preview/Features/Sidebar/ProjectNavigatorView.swift:1073-1077 | md-preview/Features/Sidebar/SidebarViewController.swift:328-332 \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":"md-preview/Features/Sidebar/ProjectNavigatorView.swift"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"9837f0972a0c95fd5a844c25a37a746ea39136d90593ab3ccf58fea0f23c290c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): md-preview/Helpers/FileURLHelpers.swift:13-17 | quick-look/InlineLocalAssets.swift:240-244 \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":"md-preview/Helpers/FileURLHelpers.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de573425e8a09ca3bb88c5d41f60c90c9b67b0d42155066bdf578b023450fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): md-preview/Features/Editor/EditorViewController.swift:116-119 | md-preview/Rendering/MarkdownWebView.swift:1016-1019 \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":"md-preview/Features/Editor/EditorViewController.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e01965395ec4016887a53e1d20cb5327456635e796bf33afb02fa5ff7844034"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): md-preview/Features/Sidebar/ProjectNavigatorView.swift:1104-1107 | md-preview/Features/Sidebar/SidebarViewController.swift:460-463 \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":"md-preview/Features/Sidebar/ProjectNavigatorView.swift"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"184d2fc9695295f55f18f2066f966a9b204b8df1ccdaeb4e085111dda169f228"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): md-preview/Features/Editor/EditorViewController.swift:610-613 | md-preview/Rendering/MarkdownWebView.swift:1885-1888 \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":"md-preview/Features/Editor/EditorViewController.swift"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b1a3b6fb55acda833e985190ae3850abe02e0539bb993109ada4a177fec8ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): md-preview/Features/Sidebar/ProjectNavigatorView.swift:873-876 | md-preview/Rendering/MarkdownWebView.swift:1746-1749 \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":"md-preview/Features/Sidebar/ProjectNavigatorView.swift"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3793a9b52d238a1e997d9de16b2ac60d48333c2fefc7579febc2cdb125914c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): md-preview/App/AppDelegate.swift:1632-1635 | md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:595-598 | md-preview/Rendering/MarkdownWebView.swift:104-107 \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":"md-preview/App/AppDelegate.swift"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc568a6cf8bd608e155cdda27c09df2181f0b7ea9eb7765b4f72a07cd02cce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): md-preview/Features/Sidebar/ProjectNavigatorView.swift:856-859 | md-preview/Rendering/MarkdownWebView.swift:1740-1743 \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":"md-preview/Features/Sidebar/ProjectNavigatorView.swift"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"172e2664eda42385dba61925f8302386299ca49d047f3b6eb80b59015920bc6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201324 lines \u00D7 2): md-preview/Rendering/EscapingHTMLFormatter.swift:839-862 | md-preview/Rendering/EscapingHTMLFormatter.swift:920-939 \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 \u0060md-preview/Rendering/EscapingHTMLFormatter.swift:839\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":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"5985dd774ec07634e95fdfe1480ef759eb8dfb86051aa4bd15dca84d250a9dd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): md-preview/Document/ContentViewController.swift:625-641 | md-preview/Features/Editor/EditorViewController.swift:193-211 \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 \u0060md-preview/Document/ContentViewController.swift:625\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":"md-preview/Document/ContentViewController.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"895cec193b895b171748a75ddee290a345bd1e35947644805d8966cd36511b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:288-305 | md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:562-579 \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 \u0060md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:288\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 \u0060candidates\u0060 to \u0060[LLMCandidate]\u0060 in one and \u0060[EditorCandidate]\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":"md-preview/Document/DocumentWindowController\u002BOpenTargets.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33a9c21f64c0db3d2a60b95046076634a699bbb2047f35e690599bb2e5842c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:138-153 | md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:299-314 \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 \u0060md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:138\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":"md-preview/Document/DocumentWindowController\u002BOpenTargets.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14322100f3bf281136ad095c604e1f641e95f3288460d2434880421be61ce30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:167-182 | md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:573-588 \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 \u0060md-preview/Document/DocumentWindowController\u002BOpenTargets.swift:167\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":"md-preview/Document/DocumentWindowController\u002BOpenTargets.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40b46a662375560458a86e3f6e8a072ee4c29cc5c25906c4c4130d2162a7fac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): md-preview/Features/Settings/SettingsModel.swift:302-316 | md-preview/Features/Settings/SettingsModel.swift:364-378 \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":"md-preview/Features/Settings/SettingsModel.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"225f8ea4f32314480f4852a8ccd295d556dd156499a290f650df765bc302be3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): md-preview/Document/DocumentWindowController\u002BFind.swift:122-134 | md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:109-120 \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 \u0060md-preview/Document/DocumentWindowController\u002BFind.swift:122\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":"md-preview/Document/DocumentWindowController\u002BFind.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63b22a8c77895b762ef138e0320818a86c1081aeffd4a8c4420421610b55f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): md-preview/Rendering/EscapingHTMLFormatter.swift:1955-1967 | md-preview/Rendering/MarkdownHTML\u002BUtils.swift:127-139 \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. 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":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":1955}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89ee32c62f9b4d5299dba4bee00dc41777c818246704becd830532bc5ba375c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): md-preview/Rendering/MarkdownHTML\u002BFootnotes.swift:188-200 | md-preview/Rendering/MarkdownHTML\u002BUtils.swift:62-73 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060md-preview/Rendering/MarkdownHTML\u002BFootnotes.swift:188\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/MarkdownHTML\u002BFootnotes.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c353f81bc4b430926adaaeaf6bfc05a95cd625f42f8cf73f1eb7c7f34f8c13dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): md-preview/Rendering/MarkdownAssetResolution.swift:314-325 | md-preview/Rendering/MarkdownHTML\u002BMath.swift:371-382 \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":"md-preview/Rendering/MarkdownAssetResolution.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd933a9b2e3d3cf1846b9751f144bdddac7ff05b0b36d3b7b5edb813df7b01ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): md-preview/Rendering/MarkdownHTML\u002BMath.swift:99-109 | md-preview/Rendering/MarkdownHTML\u002BMath.swift:141-151 | md-preview/Rendering/MarkdownHTML\u002BMath.swift:290-300 \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 \u0060md-preview/Rendering/MarkdownHTML\u002BMath.swift:99\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":"md-preview/Rendering/MarkdownHTML\u002BMath.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"de874866f388f973872f71ca3f4697de09cd128c04930ce1d50b570bbaa5cb2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): md-preview/App/AppDelegate.swift:1356-1366 | md-preview/App/AppDelegate.swift:1394-1404 \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":"md-preview/App/AppDelegate.swift"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cb12f27744e3087efde2f7ac2c614b0386bba3af06c8de4f8a19bfd91fc021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): md-preview/Features/Sidebar/ProjectNavigatorView.swift:1080-1089 | md-preview/Features/Sidebar/SidebarViewController.swift:341-350 \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 \u0060md-preview/Features/Sidebar/SidebarViewController.swift:341\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 before the matched lines, \u0060md-preview/Features/Sidebar/SidebarViewController.swift:340\u0060 calls \u0060refreshRowTextColors\u0060 and \u0060md-preview/Features/Sidebar/ProjectNavigatorView.swift:1079\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":"md-preview/Features/Sidebar/ProjectNavigatorView.swift"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88d98b0d603658450d8fc5e46bed9e3beeec3c56dfa1745e6414441a921f04d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:282-290 | md-preview/Rendering/BlockGlassHUD.swift:223-231 \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":"md-preview/Document/DocumentWindowController\u002BFormattingBar.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"0913decd868a4bf90ac1942cd8bdc668fea1ba35a12acab6894144715694d9cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): quick-look/InlineLocalAssets.swift:41-49 | quick-look/InlineLocalAssets.swift:91-99 \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 \u0060quick-look/InlineLocalAssets.swift:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060quick-look/InlineLocalAssets.swift:100\u0060 calls \u0060hasPrefix\u0060, \u0060String\u0060, \u0060dropFirst\u0060 and \u0060quick-look/InlineLocalAssets.swift:50\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":"quick-look/InlineLocalAssets.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"39750866ac7887ac924b07cc132973029b14668628c55771e8b920e3f262e07e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): md-preview/Document/DocumentWindowController\u002BFind.swift:124-131 | md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:110-117 | md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:242-249 \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 \u0060md-preview/Document/DocumentWindowController\u002BFind.swift:124\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:238\u0060 calls \u0060EditAccessoryContainerView\u0060, \u0060addSubview\u0060 and \u0060md-preview/Document/DocumentWindowController\u002BFind.swift:122\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":"md-preview/Document/DocumentWindowController\u002BFind.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02ffcbbab0dda87d1afc19bf15a7d2ce7c9d3429c8cb60ab9a6025089f786ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): md-preview/Rendering/MarkdownHTML\u002BFootnotes.swift:193-200 | quick-look/InlineLocalAssets.swift:39-47 \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 \u0060md-preview/Rendering/MarkdownHTML\u002BFootnotes.swift:193\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":"md-preview/Rendering/MarkdownHTML\u002BFootnotes.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadb8ce1ecc9b5ceaaa3c1558816a4d6c8fe354ac5c714aa86936b62956c78d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): md-preview/Rendering/MarkdownHTML\u002BMermaid.swift:59-65 | quick-look/InlineLocalAssets.swift:43-50 \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 \u0060md-preview/Rendering/MarkdownHTML\u002BMermaid.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/MarkdownHTML\u002BMermaid.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ba91e4ef35f8a4ea4bb9aaf489421811eb6ef88a19190eff0723306e035893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): md-preview/Rendering/EscapingHTMLFormatter.swift:1933-1939 | md-preview/Rendering/EscapingHTMLFormatter.swift:1955-1961 | md-preview/Rendering/MarkdownHTML\u002BUtils.swift:127-133 \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 \u0060md-preview/Rendering/EscapingHTMLFormatter.swift:1933\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":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":1933}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc33c8d12c5a23ac539e1d7a8c48a8f62a24b6c751ad2aed4c6c3e29357373e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:283-288 | md-preview/Features/Sidebar/ProjectNavigatorFilterBar.swift:136-141 | md-preview/Rendering/BlockGlassHUD.swift:224-229 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:283\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":"md-preview/Document/DocumentWindowController\u002BFormattingBar.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"edca2fa750d3ae9e9032441e61a4b47e50ff9a467ebf59c967c33895337fb37e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): md-preview/Document/DocumentWindowController\u002BFind.swift:114-119 | md-preview/Features/Editor/EditorViewController.swift:58-63 \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 \u0060md-preview/Document/DocumentWindowController\u002BFind.swift:114\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":"md-preview/Document/DocumentWindowController\u002BFind.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2272d24047a2e78120d985296c3ca924e4d2ba35f93b9af3109b7f72d154d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:231-236 | md-preview/Features/Editor/EditorViewController.swift:60-65 \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":"md-preview/Document/DocumentWindowController\u002BFormattingBar.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfc6ba934b7661946f34175dd8fb07acab2e7e421e8c3d320cd6d27e7f88ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): md-preview/Document/DocumentWindowController\u002BFind.swift:116-120 | md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:284-288 | md-preview/Features/Sidebar/ProjectNavigatorFilterBar.swift:137-141 | md-preview/Rendering/BlockGlassHUD.swift:225-229 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060md-preview/Document/DocumentWindowController\u002BFind.swift:116\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":"md-preview/Document/DocumentWindowController\u002BFind.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1edfd2e09b9139471d1d377468dd97bc087dba4f621fbdd9a5e61c0cd4b4a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): md-preview/Document/DocumentWindowController\u002BFind.swift:116-120 | md-preview/Features/Editor/EditorViewController.swift:60-64 | md-preview/Rendering/BlockGlassHUD.swift:97-101 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060md-preview/Document/DocumentWindowController\u002BFind.swift:116\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":"md-preview/Document/DocumentWindowController\u002BFind.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc1b074f2477ea83b384a7fa0be99d13f618fc1a2141ca6af164e7412207bc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): md-preview/Document/DocumentLoadingOverlayView.swift:72-76 | md-preview/Rendering/BlockGlassHUD.swift:100-104 \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":"md-preview/Document/DocumentLoadingOverlayView.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad909b4b8b99f4658223da72be894c8d6eef82e71b20b4677bd624eb55898f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:58-64 | md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:324-330 \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 \u0060md-preview/Document/DocumentWindowController\u002BFormattingBar.swift:58\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":"md-preview/Document/DocumentWindowController\u002BFormattingBar.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e8e3145c332c6a815c065a319bb4292601dc4c4b7fb72bf3ac53efc1d72a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): md-preview/Document/FileWatcher.swift:125-130 | md-preview/Features/Sidebar/ProjectNavigatorView.swift:1317-1322 \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":"md-preview/Document/FileWatcher.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"56439426044943af943ba8903088a5cb6226f65242213109ea7244e06eb18f6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): md-preview/Preferences/AlwaysOnTopPolicy.swift:74-80 | md-preview/Preferences/TabOpeningPolicy.swift:60-66 | md-preview/Rendering/StrictLineBreaksSetting.swift:17-23 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Preferences/AlwaysOnTopPolicy.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f78a017d1c187c34444d7fb3ad2b038a28a9f3438174f81b283c845219270f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): md-preview/Rendering/ReaderLayoutSetting.swift:90-103 | md-preview/Theme/ThemeColorsSetting.swift:247-260 \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":"md-preview/Rendering/ReaderLayoutSetting.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9bf390ffebb2ea09bafaa78dc3345527bc9fcdb5137fc4fee3a6f3c2643576"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PreviewWKWebView (LCOM4 10): PreviewWKWebView\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":"md-preview/Rendering/MarkdownWebView.swift"},"region":{"startLine":1875}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2945616d9a2ffd06b5ad8dfe2e45bc258201ee0e719dcfe14406d58b170a18"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppDelegate (LCOM4 8): AppDelegate\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":"md-preview/App/AppDelegate.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0933cd0993543a85d4c942797decdc437ba4d7502a93f0a3f8a2fcc8e74599"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ProjectNavigatorView (LCOM4 8): ProjectNavigatorView\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":"md-preview/Features/Sidebar/ProjectNavigatorView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a933aca2e1d4d6f8f6563724a1c2f27c1e492a9d85e8159f7057ead2e35e2e6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DocumentWindowController (LCOM4 7): DocumentWindowController\u0027s methods fall into 7 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 7 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":"md-preview/Document/DocumentWindowController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"691068f5bb56b67128d366b6a1c18d555845cef12c1cfbdbc3bc14ff5ec67d3e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FormattingGlassView (LCOM4 5): FormattingGlassView\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":"md-preview/Document/DocumentWindowController\u002BFormattingBar.swift"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"8786955e5745a73e2a9d9d39573f1ec76be2733368fc35f0ddd33c60595bb789"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainSplitViewController (LCOM4 5): MainSplitViewController\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":"md-preview/Document/MainSplitViewController.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2e1610803c793223a2601843490f6b233311d54d48a5201dd63f3759570564"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SidebarViewController (LCOM4 5): SidebarViewController\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":"md-preview/Features/Sidebar/SidebarViewController.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec445e34324c5b3aa7962eb3c958e897596f9f31e2a55e64cc99f78050ee54cb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MarkdownDocument (LCOM4 4): MarkdownDocument\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":"md-preview/Document/MarkdownDocument.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ad1c44f73d8dace7a8e1ef3e2e6009434ad82889376d1afc365cfb49f938db"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MarkdownWebView (LCOM4 4): MarkdownWebView\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":"md-preview/Rendering/MarkdownWebView.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf2cb0d7eba904d23960d3c8583c0f4ee3a7601f7725b7a4ac9c1aa523571c4"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript and Swift suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 server/share-worker/ runs vitest but declares no coverage provider, so the suite can run and still produce no lcov \u2014 add \u0060@vitest/coverage-v8\u0060 (or \u0060@vitest/coverage-istanbul\u0060) as a devDependency; the Swift half could not be measured \u2014 the Swift suite in tests/swift-tests produced no coverage export. This repository\u0027s production source spans both ecosystems, and no partial figure is published as if it were the whole: coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRenderScaling: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/swift-tests/Tests/MarkdownHelpersTests/InitialRenderProbeTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0856fcab2772f34fb92fccd778abbca280e35e837a19385e867b308ce4c43f7a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRenderSealUploadFetchAndOpen: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/swift-tests/Tests/MarkdownHelpersTests/ShareLinkWorkerRoundTripTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83666e52170404380abf93643470d92d762d42314cd71711ef59ea0c10f6cbd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDisplayMathSpacingMatchesPreview: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/EditorPreviewLayoutTests.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ed62df7abb5e3b3629dd72a4596fa19308d1aabcfe7d1db8574a9107ef9c8b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testParagraphAndHeadingAlignment: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/EditorPreviewLayoutTests.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9e2344983f4f351b3d28108349b80c2f7c149c7d8f94c8669ac6470d6967e0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testImageAlignmentAndSpacingBeforeAndAfterImages: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/EditorPreviewLayoutTests.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7a3678e33ab378e998bffc09711fbe654aaaab72ef4683668cf23a8c3a0942"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLinkedImageAlignment: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/EditorPreviewLayoutTests.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6fc286a50700600bf9c654a8c71d0a3f6dd9c900fd2fc453fd52084dc1cf90"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWrappedParagraphAlignment: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/EditorPreviewLayoutTests.swift"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d99f5af68f0e39976cf16862df6e42f5c137928f4217560c3c4e0e423df893"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWrappedInlineCodeKeepsPaddingOnEveryLine: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/EditorPreviewLayoutTests.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc30c51d6b4fc590bb5fbee752090ca43be49d93f042c59f7d0fb7ee80ab36e1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testQuotePaddingAcrossWrappedAndHardBreakLines: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/EditorPreviewLayoutTests.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a53e9f35d3df88a16d491bc0f68dddf827a71cfb151f0df41bfec313163d968"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOversizedImageResizesWithTheContentColumn: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/EditorPreviewLayoutTests.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d276547e7dd7e82fec945bdf4cd2101280017b56699b2e2bab4cf5cbe2b592"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testListAndQuoteAlignment: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/EditorPreviewLayoutTests.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab6bb34e488b523262e89e077301273cac11d510b30356735c56fd11f353ad5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLongOrderedListMarkerGutter: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/EditorPreviewLayoutTests.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4d56e355e08781fe93d8c0117158a62ff89a7f77df1cddb2100952fd389689"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testQuoteAtDocumentStart: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/EditorPreviewLayoutTests.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"168ce9279c5640dd42c4219baa79914a781a043df73b20139a8921bc3c9bebc8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAlignmentAfterReplacingMarkdownAndResizing: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/EditorPreviewLayoutTests.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de72bf57ec73a6f0c34a73550286b462a696c504fd0547455c0808d8b67144f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCompleteMixedFormattingDocument: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8720482f6fa678d909df17525077ca91afc2ff993d7a3edd4030eb86b626eede"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCompleteDocumentWithAllSupportedStyles: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d0639c6e581e22ac9b7198ae48c8b98c151bbd65af8ad95d6a22db1e67d328"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTOMLFrontmatterSourceRepresentation: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ce3b1a7ab70a1672759cddd4545b01babbb72f869e928f1fd26600f3b46d1f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMixedSourceOnlyFeaturesRenderAndPreserveSource: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb79be8589ff5ff857ea2ad73eaceecb335f93749b40b134367ad57079d52717"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInlineFormattingAcrossTextNodes: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e243d46cd5409c15c97338da19673ab8eebfb919582565676d1d81853355d7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNestedAndLooseLists: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a7d35c146ee90977989c13b724caace348b7d00193efe0e731c43ef72dd294"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNestedQuotesAndParagraphs: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa61b307bd46c963b822b739e3adba33be2a3bc16cf6bf639f2136b6dce9806"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCodeNestedInListsAndQuotesKeepsTheContainerIndent: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5f20c7e1a43b027f0994d97aa065d89621d17938af9c7559fbb552ce11f84f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFencedUnlabelledAndIndentedCode: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1fc2e2fdd2063baffc707cd3928653665feb13c29a774fb91b4040256dfb25"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTableColumnsAndWrappedCells: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78b9d10e8764ab83a054ef5981436fdfed739239db147b123995aa8696a2af1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMermaidWithRealBundledRenderer: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d31033ead31270442f9e048b86d85c6b078207c7ec28f51c0939dea1306770"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNestedMermaidDiagramsMatchTheReader: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13b39566811a8879d8222e6275c1b82a759c4c21f9ded39385e1a028a358bb2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testListItemsThatOpenWithADiagramMatchTheReader: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb1837132f55e8719edb7cbdbffe75dd35b069ced04c7361bc51e5f46787544"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUnicodeAndRightToLeftParagraphs: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"886c273b9b7f189c9b278ac65b8a72eb669c5fd6a78b285e8dc40fc9253bb329"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBlankLinesSoftBreaksHardBreaksAndRules: This method\u0027s body runs code, and 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/swift-tests/Tests/MarkdownHelpersTests/MixedMarkdownLayoutTests.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f324c29a0f8c1449fbbd4409fe1681646a6ccc97b6903efe34878a8465320b2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/editor-bundle/entry-cm.js: scripts/editor-bundle/entry-cm.js changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 262 in entry-cm.buildDecorations at line 2221. 10 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 18:14:36 \u002B08:00\u0027 --until=\u00272026-11-14 18:14:36 \u002B08:00\u0027 --full-history --no-merges -- scripts/editor-bundle/entry-cm.js\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/editor-bundle/entry-cm.js"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a516c19394053b7a1402d74ffbbe9d1108eb0cca9b85ebd2feba3e1d60ff48e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: md-preview/Rendering/MarkdownWebView.swift: md-preview/Rendering/MarkdownWebView.swift changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in MarkdownWebView.didReceiveHostMessage at line 770. 5 of those changes were fix/bug commits, and the other 22 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 18:14:36 \u002B08:00\u0027 --until=\u00272026-11-14 18:14:36 \u002B08:00\u0027 --full-history --no-merges -- md-preview/Rendering/MarkdownWebView.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":"md-preview/Rendering/MarkdownWebView.swift"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"23322befa35675796c4161b4098035873c5347f72d47c313a653d6f0a535950a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: md-preview/Features/Editor/EditorViewController.swift: md-preview/Features/Editor/EditorViewController.swift changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in EditorViewController.handle at line 419. 14 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:14:36 \u002B08:00\u0027 --until=\u00272026-11-14 18:14:36 \u002B08:00\u0027 --full-history --no-merges -- md-preview/Features/Editor/EditorViewController.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":"md-preview/Features/Editor/EditorViewController.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5352e45699b31b4a61f65033acfb0cba4c0e45deb3788008862989dcffd71f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: md-preview/Document/MainSplitViewController.swift: md-preview/Document/MainSplitViewController.swift changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in MainSplitViewController.enterEditMode at line 427. 12 of those changes were fix/bug commits, and the other 19 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 18:14:36 \u002B08:00\u0027 --until=\u00272026-11-14 18:14:36 \u002B08:00\u0027 --full-history --no-merges -- md-preview/Document/MainSplitViewController.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":"md-preview/Document/MainSplitViewController.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ff2c4e6c1e733de44f7ea3d6c2b7e47dc8fd84a0e654d6dbe38c38abcc037e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: md-preview/Rendering/MarkdownHTML.swift: md-preview/Rendering/MarkdownHTML.swift changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in MarkdownHTML.render at line 320. 2 of those changes were fix/bug commits, and the other 22 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 18:14:36 \u002B08:00\u0027 --until=\u00272026-11-14 18:14:36 \u002B08:00\u0027 --full-history --no-merges -- md-preview/Rendering/MarkdownHTML.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":"md-preview/Rendering/MarkdownHTML.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3964b01db829b0f46dee39503c2d2d7f7d991dc67516d8396c6d7d2e3afe5d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: md-preview/Rendering/EscapingHTMLFormatter.swift: md-preview/Rendering/EscapingHTMLFormatter.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in EscapingHTMLFormatter.visitCodeBlock at line 1325. 1 of those changes was a fix/bug commit, and the other 10 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 18:14:36 \u002B08:00\u0027 --until=\u00272026-11-14 18:14:36 \u002B08:00\u0027 --full-history --no-merges -- md-preview/Rendering/EscapingHTMLFormatter.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":"md-preview/Rendering/EscapingHTMLFormatter.swift"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4c086b5475d1076e882d6d13778c7aec3fee4c8e6d2f879abc625802e63e03"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: md-preview/Document/DocumentWindowController\u002BToolbar.swift: md-preview/Document/DocumentWindowController\u002BToolbar.swift changed 14 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is DocumentWindowController.showThemesPopover at line 497), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix (toolbar): show one sidebar item in Customize Toolbar instead of two (#605)\u201D; \u201CFix toolbar spacing when the sidebar collapses (#482)\u201D; \u201CFix navigation collapse and file-search field alignment (#452)\u201D; \u201CFix back and forward toolbar appearance (#418)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:14:36 \u002B08:00\u0027 --until=\u00272026-11-14 18:14:36 \u002B08:00\u0027 --full-history --no-merges -- md-preview/Document/DocumentWindowController\u002BToolbar.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":"md-preview/Document/DocumentWindowController\u002BToolbar.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"484668e1c4d54705ee66a5e87d52ff18dccb0d0ff5221e5f2c7122bb2e68d5e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: md-preview/Theme/ThemePreset.swift: md-preview/Theme/ThemePreset.swift changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is ThemePreset.migrateLegacyValues at line 119), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix overlapping text when switching reader and editor modes (#432)\u201D; \u201CLock fixed-color themes to their intended appearance (#421)\u201D; \u201CFix Original appearance persistence and native document backgrounds (#420)\u201D; \u201CFix toolbar backdrops and Sequoia search and edit controls (#362)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:14:36 \u002B08:00\u0027 --until=\u00272026-11-14 18:14:36 \u002B08:00\u0027 --full-history --no-merges -- md-preview/Theme/ThemePreset.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":"md-preview/Theme/ThemePreset.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be397452786bf388ad57aa989a14fa38de7bcf7556edf9aad687b965c40fe48"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: md-preview/Document/DocumentWindowController\u002BFind.swift: md-preview/Document/DocumentWindowController\u002BFind.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is DocumentWindowController.searchModeDidChange at line 180), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix (search): keep the current match when you click in the document or the search field (#604)\u201D; \u201CFix toolbar backdrops and Sequoia search and edit controls (#362)\u201D; \u201CFix window drag under the transparent titlebar and move the edit/find bars below the tab bar (#331)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:14:36 \u002B08:00\u0027 --until=\u00272026-11-14 18:14:36 \u002B08:00\u0027 --full-history --no-merges -- md-preview/Document/DocumentWindowController\u002BFind.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":"md-preview/Document/DocumentWindowController\u002BFind.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae04c8085c5bd4400a855658f364352b700db3a520eb964c25b29e3600a0bd2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: md-preview/Document/DocumentWindowController\u002BFormattingBar.swift: md-preview/Document/DocumentWindowController\u002BFormattingBar.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is DocumentWindowController.updateFormattingSelection at line 494), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix saving pending edits in preview mode (#436)\u201D; \u201CFix toolbar backdrops and Sequoia search and edit controls (#362)\u201D; \u201CFix window drag under the transparent titlebar and move the edit/find bars below the tab bar (#331)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:14:36 \u002B08:00\u0027 --until=\u00272026-11-14 18:14:36 \u002B08:00\u0027 --full-history --no-merges -- md-preview/Document/DocumentWindowController\u002BFormattingBar.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":"md-preview/Document/DocumentWindowController\u002BFormattingBar.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"b446c9a61a2a25d7f42d66d6ff745fddf048c40ddd846991548470c196dfec06"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: md-preview/Features/FileSearch/FileSearchPanelController.swift: md-preview/Features/FileSearch/FileSearchPanelController.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is FileSearchPanelController.handleNavigationKey at line 416), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix file search palette placement across displays (#463)\u201D; \u201CFix middle truncation of long search result paths (#455)\u201D; \u201CFix navigation collapse and file-search field alignment (#452)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:14:36 \u002B08:00\u0027 --until=\u00272026-11-14 18:14:36 \u002B08:00\u0027 --full-history --no-merges -- md-preview/Features/FileSearch/FileSearchPanelController.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":"md-preview/Features/FileSearch/FileSearchPanelController.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"603404971110df923862bbcfc1ead822caa9e97f76c57d8fd29cddf3aed78c10"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: md-preview/Features/Sidebar/MarkdownTOC.swift: md-preview/Features/Sidebar/MarkdownTOC.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is HeadingCollector.lines at line 88), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix (outline): open files with an empty heading such as \u0060- #\u0060 instead of crashing (#628)\u201D; \u201C[fix] Refresh left/right pane in realtime \u002B make sections clickable while editing  (#521)\u201D; \u201CFix TOC parsing for code blocks inside lists (#349)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 18:14:36 \u002B08:00\u0027 --until=\u00272026-11-14 18:14:36 \u002B08:00\u0027 --full-history --no-merges -- md-preview/Features/Sidebar/MarkdownTOC.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":"md-preview/Features/Sidebar/MarkdownTOC.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dcac4d5f6d5682798365cd672fb76c08e0dec1016adb373a933be8d8c7bf52"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060md-preview.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4033397f670d5a5468115ab04b0ec474598ead78608037623994c1093944a3e0"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060avatarUrl\u0060 spells \u0060Url\u0060 where 119 names in the project spell it \u0060URL\u0060: 119 of 120 names in project repository spell the token \u0060URL\u0060 (119 of 120; unit: names in project repository containing \u0060URL\u0060). Peers: AppDelegate.pendingOpenURLCount (md-preview/App/AppDelegate.swift:130); AppDelegate.presentUnsupportedSchemeURLAlert (md-preview/App/AppDelegate.swift:460); AppDelegate.makeCommandLineToolInstallerScript(commandLineToolURL) (md-preview/App/AppDelegate.swift:894); AppDelegate.bundledCommandLineToolURL (md-preview/App/AppDelegate.swift:1063); AppDelegate.writeCommandLineToolInstallerScript(commandLineToolURL) (md-preview/App/AppDelegate.swift:1072). Rename to \u0060avatarURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Features/Updates/ReleaseNotes.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1ab8f929b11047d00c6ce83496dbfb93ce27f580301fe0c9189a8aa19cbebd"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 3.3/10. The most over is \u0060(repository root)\u0060 (36799 LoC, 242 module-visible types across 21 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":"1361988a30bf0013ce135f8442ac36c0ac48f7acd19e37c12874537ba87c2ccc"},"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":"7b55cc6565071feafe7390965973e5ddb1178e1052c6225a0276d94e45195a4d"},"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":"3334cfb1d06e9ff7158ac22261eaa939e461419949e7b9a13ea6b0cd08c0be79"},"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":"a9e968cbe10da89cf0d84c0b1daf1b428e0aed09cc8aeb6f88cbdf0098f36df4"},"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":"46f096ea6e1e4fe48c899a5c5c0e033e50470639f6f99b483a03b3a14445afd5"},"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":"ab145f11f1eb5c5d723be19cbf6b9472583e5d250b3fe8ffb664bb738b7ffe72"},"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":"5621d670a77abc369b4acacca063800af01aab4bc76fbd46557e03df6ab1839b"},"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":"24817630481915259f54602505bc470d603d80aeed8c1af1daec92ec46e9776d"},"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":"8eed8d3b19719e8ee168396f76d2ff3a634b275088fcd0c793a2b484ce2f57aa"},"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":"c76718cac8c3eb6060da48a508969c9821a1220c5ab3af224d2ffdf7d2a12c04"},"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":"cda498f9a11fe7cd52f3e3fbb8e1ba55e2b4db5037f693dd1070d64fe91f0fef"},"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":"25441515c2a697dde90541bdde506c723b86217b83660ae7a51e1460a227fb63"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"ee737efaeb493a601b58ac741ae3e4f6f9284f06c4fbd48fa53f0a3444f98e08"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f2e6eacf806c04077078e3d5de2ebeb46bdd0f165126fcde696f885bcdec404"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"77034b7f89f5c7bea323af9c1c0e4b9fe65b5dad33b189858227248affc549cc"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"adac1b4bb93dc7c10e56564fdb7132046fbdcf0256c99d2bf07f93007ea39455"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cb0570a32b741274e497aa89bc8bf7a66e1606285a4f0ca3cd27d7c4ae95706e"},"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":"AC3","level":"warning","message":{"text":"Multiple navigation landmarks without distinguishing labels: With more than one navigation landmark, each needs an aria-label/aria-labelledby (e.g. \u0022Primary\u0022, \u0022Footer\u0022) so assistive tech can tell them apart. At least one nav here is unlabelled."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8496f634d8279877919fa99745bb204da2cb2eb71328e7036d7a6eee21d64e58"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060:is(.bar, .reading-panel, .contents) :is(button, a):focus\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":"server/share-worker/viewer/viewer.css"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb18c10ccfbfceed02acfea15cf198f4fbca7e83bc3125fd29ef061158a83f1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.resizer:focus\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":"server/share-worker/viewer/viewer.css"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa1abf211373459be3cbff7339f0396b5563df5243a6856dac83d2f805fa071"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.md-table-expand:focus-visible\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":"server/share-worker/viewer/generated/markdown.css"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"271aeec07e393f6c46434288d014fc24b8b1e4d9b03c732eb5070f2f07ec46c0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.markdown-body .mermaid-figure:not(.mermaid-error, .mermaid-empty):not(:has(.mermaid svg))\u0060 moves (\u0060animation: diagram-skeleton 1.6s ease-in-out infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/viewer.css"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"44849ac261364d5667c26af8bedb6f9d861502ddd12792f6ee1dd710a74eb377"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 4 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/performance.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060scripts/editor-bundle/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":"scripts/editor-bundle/package.json"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2524e71ade5e3920aca5371cfcd4528ecae6172e0a9714ef1245f7732666138e"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 9 typed \u00B7 12 plain JS \u2014 the untyped files are scripts/editor-bundle/build.mjs, scripts/editor-bundle/entry-cm.js, scripts/editor-bundle/math.js, scripts/editor-bundle/smoke-test.mjs, server/share-worker/viewer/boot.js, server/share-worker/viewer/build.mjs (\u002B6 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): scripts/editor-bundle/smoke-test.mjs:1084 \u00B7 scripts/editor-bundle/smoke-test.mjs:1108 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"8481faf8d91cfd297ba6076b28bdcb357cf48998957e15285b474eaa497f6069"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): scripts/editor-bundle/entry-cm.js:2580 \u00B7 scripts/editor-bundle/entry-cm.js:2606 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f99d6ec22dc344693b755887760c734ff99cf0c3dd693d8cc5b31f1b914f004"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): scripts/editor-bundle/smoke-test.mjs:153 \u00B7 scripts/editor-bundle/smoke-test.mjs:249 \u00B7 scripts/editor-bundle/smoke-test.mjs:276 \u2014 all 3 copies are in the same file, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS \u2014 bindings the module declares and exports \u2014 rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER \u2014 the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration \u2014 one binding per distinct thing, differing precisely in the thing each one names \u2014 the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33d6f797782bccfec951dffd81c489dc2710c3e5bcfb79b3c827fb41c4537b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): scripts/editor-bundle/smoke-test.mjs:1185 \u00B7 scripts/editor-bundle/smoke-test.mjs:1260 \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":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d629e4eee02f9b060b3ccc3edf53e5731f59655685bcba8b7f053af0756a51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): scripts/editor-bundle/smoke-test.mjs:764 \u00B7 scripts/editor-bundle/smoke-test.mjs:798 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"7159060cc051cd81b3af5ca52e567266f934fbea85f79d48d10e76eb2915de73"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): server/share-worker/src/index.ts:301 \u00B7 server/share-worker/viewer/share-crypto.js:109 \u2014 the two spans are one implementation copied and then locally edited \u2014 71 tokens are still identical, in the same order in both files, 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":"server/share-worker/src/index.ts"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc01af04c1886f121526d266afd5b3adda211e04b8a1e7605412a95d25b23e81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): scripts/editor-bundle/smoke-test.mjs:182 \u00B7 scripts/editor-bundle/smoke-test.mjs:202 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4d6052029fdb6c5e1d5206082f3265ba0f8268e3e822ce8ef9151b3e1261e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): server/share-worker/src/index.ts:92 \u00B7 server/share-worker/src/index.ts:125 \u2014 the two spans are one implementation copied and then locally edited \u2014 97 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":"server/share-worker/src/index.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d139255ebf3c19cd294478461ecb87cefe29fd7146c505de3137be9c44008cd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): scripts/editor-bundle/smoke-test.mjs:1013 \u00B7 scripts/editor-bundle/smoke-test.mjs:1041 \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":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a37a353712a65cedda7f3d0a070da7fec75dfae11a9b9c551d82a259556473"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/editor-bundle/entry-cm.js:2469 \u00B7 scripts/editor-bundle/entry-cm.js:2480 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":2469}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbd002cb05c2695228588d5ceb440457c5f2cfbd8aa215097d6772d9e1c94e6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): scripts/editor-bundle/smoke-test.mjs:698 \u00B7 scripts/editor-bundle/smoke-test.mjs:715 \u00B7 scripts/editor-bundle/smoke-test.mjs:729 \u2014 all 3 copies are in the same file, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS \u2014 bindings the module declares and exports \u2014 rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER \u2014 the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration \u2014 one binding per distinct thing, differing precisely in the thing each one names \u2014 the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"9facc84d68fb9ccd79793409da35e755e66d9c004868b3d841fdf235e1003e9d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/editor-bundle/smoke-test.mjs:112 \u00B7 scripts/editor-bundle/smoke-test.mjs:121 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e111e026953d4229114c93a0853b2ce10098bf51cec685aca1eb8220bbc4ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/editor-bundle/entry-cm.js:617 \u00B7 scripts/editor-bundle/entry-cm.js:685 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59d54a8f6adac0b755428147c79c18140fe870247dbcb3f60817f6004a69608"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/editor-bundle/entry-cm.js:1913 \u00B7 scripts/editor-bundle/entry-cm.js:1923 \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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":1913}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75efc71b495110b30b4156bd08be44b0221972c2aa0ae30b1ef401a9e16ebc5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/editor-bundle/smoke-test.mjs:245 \u00B7 scripts/editor-bundle/smoke-test.mjs:887 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed64bc91d1160053c428a9d8dfa93bd6dbe3a67ec8ed3d95cedaf5745145fda"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6 locations): scripts/editor-bundle/smoke-test.mjs:273 \u00B7 scripts/editor-bundle/smoke-test.mjs:394 \u00B7 scripts/editor-bundle/smoke-test.mjs:487 \u00B7 scripts/editor-bundle/smoke-test.mjs:508 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1232b449fe912eecc0a081e17899864378bdb388215a1a004f44dd14f863780a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): scripts/editor-bundle/smoke-test.mjs:453 \u00B7 scripts/editor-bundle/smoke-test.mjs:724 \u00B7 scripts/editor-bundle/smoke-test.mjs:1010 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea22144d8b9320626e3d01df77a738b8858fc5d5c08b26dbdc2c5ef69c0f0a89"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): scripts/editor-bundle/smoke-test.mjs:808 \u00B7 scripts/editor-bundle/smoke-test.mjs:825 \u00B7 scripts/editor-bundle/smoke-test.mjs:839 \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":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"1220f2d9849c2b26b8e871669244a44962a772bb196f650786b912b5f1e6b6fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/editor-bundle/smoke-test.mjs:946 \u00B7 scripts/editor-bundle/smoke-test.mjs:960 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5306ef95b5c954ee525ffe74246e6624bd1178152ff184bb076eb1dc4d7411"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/editor-bundle/entry-cm.js:3196 \u00B7 scripts/editor-bundle/entry-cm.js:3230 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":3196}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd4a0f055717cbc3f1695c580ff7abd69c05976c1075ca6839ff3c62ffde5da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/editor-bundle/smoke-test.mjs:98 \u00B7 scripts/editor-bundle/smoke-test.mjs:105 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"162f7fec59345feaaadd0b15efeb7e880a786cee2f975176f96827c83ffd61d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/editor-bundle/smoke-test.mjs:306 \u00B7 scripts/editor-bundle/smoke-test.mjs:339 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1831a8b381328b744a0c75e07228be5d50ae5da6c5ee0fc8c7db6d0e9e4e94"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/editor-bundle/smoke-test.mjs:235 \u00B7 scripts/editor-bundle/smoke-test.mjs:917 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"af14c9165d2fc256d82d178f849c4c20a38050e78cef29a7b3a2fa0095d481a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/editor-bundle/smoke-test.mjs:1379 \u00B7 scripts/editor-bundle/smoke-test.mjs:1395 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/editor-bundle/smoke-test.mjs"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d56def4d46f561a63b933eb6d2ec14e11999c3da1d4ff4d3a99b3eb908cf34d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function enter (cyclomatic 209, cognitive 368): enter has cyclomatic complexity 209 and cognitive complexity 368; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bc9112b47b50eb0b15fd2b574927e1010c74b0f15aa333740a2011b06ea43c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyBlockStyle (cyclomatic 43, cognitive 48): applyBlockStyle has cyclomatic complexity 43 and cognitive complexity 48; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":3304}}}],"partialFingerprints":{"codehealthFindingId/v1":"817d7e421f8cbc0b3d27846c3f5df9846c4db8be12299b9c03ffeb8869866632"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 23, cognitive 18): (anonymous) has cyclomatic complexity 23 and cognitive complexity 18; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a74d9efe2e93de50368bbb84d4178347f5c193e20634b3490ee4df3ff0b73c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectLanguage (cyclomatic 22, cognitive 22): detectLanguage has cyclomatic complexity 22 and cognitive complexity 22; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0ea21a133cbc80a802ff90536df2e1e4a991f5040aff531f8f71dbef135492"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 21): (anonymous) has cyclomatic complexity 21 and cognitive complexity 21; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":3409}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2ee517b17e2875f721738aeb37cd3e8ba44531bcc0edbe88debd6b84ebe8bb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function enter (cyclomatic 20, cognitive 28): enter has cyclomatic complexity 20 and cognitive complexity 28; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":2118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f10c1b878dab76767b03b475ab92ca3fc6e9bde88d0131e2ee848e58475002f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function insertLinkFromPopover (cyclomatic 20, cognitive 17): insertLinkFromPopover has cyclomatic complexity 20 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 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":3723}}}],"partialFingerprints":{"codehealthFindingId/v1":"954653178bf5e1ea8ae810f879793db2d9f78dcd49050182f459fa2c0d665dcd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parse (cyclomatic 19, cognitive 26): parse has cyclomatic complexity 19 and cognitive complexity 26; 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":"scripts/editor-bundle/math.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"69aac4a258ea91026e496f85ff40ff29a670ad12bbdd314f132823f99d472391"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function performAction (cyclomatic 19, cognitive 21): performAction has cyclomatic complexity 19 and cognitive complexity 21; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"3937b14e93b7975894abb8a15b8621459d70671db61cfd3a65c0d859251b279a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetch (cyclomatic 19, cognitive 20): fetch has cyclomatic complexity 19 and cognitive complexity 20; 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":"server/share-worker/src/index.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5057b7bcb382c7a75a4bfee0730bbfe38d183a00ffe99fac7fc4d647a36321"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function escapedTableCell (cyclomatic 17, cognitive 28): escapedTableCell has cyclomatic complexity 17 and cognitive complexity 28; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab2197434218411331d5cab1ecf64d6ce700c6e010350ac1c31051b796aae23"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function splitTableRow (cyclomatic 17, cognitive 23): splitTableRow has cyclomatic complexity 17 and cognitive complexity 23; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8eb65baff0b1c8e8dab694ce2b79aa26056fbc1ed7866b46621456a85f2adb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 19): (anonymous) has cyclomatic complexity 17 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d83015939ab445f254c7c2f09a4f3d8e3225f6a7a4d806c2a4bf89185b271e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 17, cognitive 15): update has cyclomatic complexity 17 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 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":1955}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21dbb25e6ecef3b544cbe07d6d096af763bcf1cf4747857de56df2d2da7c010"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parse (cyclomatic 17, cognitive 14): parse has cyclomatic complexity 17 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4764fe69c4d9cafc1679e3c4050574be818e0be29e4e729d8ff2b3d6bf2ec4a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 17, cognitive 12): update has cyclomatic complexity 17 and cognitive complexity 12; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":2055}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fefdaeac873e2017efe8c1c2d55038cba69036f684716cce2192974015e129e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function moveIntoMath (cyclomatic 16, cognitive 14): moveIntoMath has cyclomatic complexity 16 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":2083}}}],"partialFingerprints":{"codehealthFindingId/v1":"272453c572fbffb0254fc7d9e342cf5c15b2c8d0dc94ee028c87bb88060db2f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildDecorations (cyclomatic 14, cognitive 22): buildDecorations has cyclomatic complexity 14 and cognitive complexity 22; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b75ca885c865a0e356a25ddb2152e0fb3598cc7dd287d29b7eab46a1fb7c6e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function indentMarkdownListItems (cyclomatic 14, cognitive 18): indentMarkdownListItems has cyclomatic complexity 14 and cognitive complexity 18; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":3482}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc16ff388ee784a20bbb5f1c4d43981f52c30ae0a25f0611ba1f570c369f0ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendNode (cyclomatic 14, cognitive 16): appendNode has cyclomatic complexity 14 and cognitive complexity 16; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2f769360013971199eef2ef9069ae470fff6d224a7eb6a4429eeca5ca54dac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cjkPhraseBreaks (cyclomatic 14, cognitive 15): cjkPhraseBreaks 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3136ddfefb1a6bcc0d27e6473850b89f00d7e8032cde81fa10e717fdbe94a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 13, cognitive 11): update has cyclomatic complexity 13 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":2166}}}],"partialFingerprints":{"codehealthFindingId/v1":"3684b0ea24803623e874653b02e36d60237918f88d87cc21b7b1869170e0e7db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assetPathForSource (cyclomatic 12, cognitive 14): assetPathForSource has cyclomatic complexity 12 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 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":"server/share-worker/viewer/payload.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d369a2fb35a266ee9a9449b9e8f762b4e0d33aa7ce674e7f3f00ea18a124992b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fencedCodeDetails (cyclomatic 12, cognitive 12): fencedCodeDetails has cyclomatic complexity 12 and cognitive complexity 12; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":1779}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca8d2999a63e27c56879980c583d15f528755625c859f9784d7a695cde0e8d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 and cognitive complexity 10; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":3599}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3c6084ce16ec95d2304960385bf4bc625fd5d3e331ac5238a4da355c2091a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function moveCellDrag (cyclomatic 11, cognitive 16): moveCellDrag has cyclomatic complexity 11 and cognitive complexity 16; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"14931dde4860a8061734fa3a00d4e6bda4cbc498c1fecb2bb7507186e5df054c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function decorateRawIndentedListLine (cyclomatic 11, cognitive 16): decorateRawIndentedListLine has cyclomatic complexity 11 and cognitive complexity 16; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":2287}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aef610b2adbd26ea57297f2b3c068c1802c74fc561d8c2d22a8300f09554bc8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function figure (cyclomatic 11, cognitive 9): figure has cyclomatic complexity 11 and cognitive complexity 9; 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":"scripts/editor-bundle/entry-cm.js"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"a957054dd9e10d0208c2d7f32f34e6ecba863a668a68111be5ffe661a835e23a"}},{"ruleId":"R3","level":"warning","message":{"text":"server/share-worker/viewer/main.js: 640 lines of code: server/share-worker/viewer/main.js has 640 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/main.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc12bed1fd16858fc688541a9605dc06fcd8857830832dd1ea765edc27623e10"}},{"ruleId":"R3","level":"warning","message":{"text":"server/share-worker/viewer/generated/renderers.js: 567 lines of code: server/share-worker/viewer/generated/renderers.js has 567 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/generated/renderers.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3b66d085afaf593a62ca86ef09d4408b29cdfb0278d1fce777199e1a734236"}},{"ruleId":"R3","level":"warning","message":{"text":"server/share-worker/viewer/generated/diagrams.js: 555 lines of code: server/share-worker/viewer/generated/diagrams.js has 555 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/generated/diagrams.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c22546205f8f6ce925f5ac79c70bbc06c3191a34117dec42266cd7696f497ea"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/main.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4989507345d101c27c7dc3e4c900630822c8f6f50cae5cb13be4aebe5ccaefa"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/build.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bed3164e6d4c4bd7bbef4e1d6170ea0423a37d80741c1810ea408b5a0c4b941"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/boot.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0061b58c2de0c8c99c30baa461f9beabcb46ea073b0ddcae69c7706c877d214a"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2713 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bc8e67e81453cf5399dd04786d18b232180426b135169175fee670bdd83ccb03"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027stored\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/main.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9e3a44c870658ec8392158a8b317a75fd28d7f286dabb43d6ac8129465619e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasUnsavedEditorChanges || isEditorCommitInFlight\u0060 appears character-identically in 2 files \u2014 md-preview/Document/DocumentWindowController\u002BEditMode.swift, md-preview/Document/DocumentWindowController\u002BEditSession.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":"md-preview/Document/DocumentWindowController\u002BEditMode.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3600744bb2e8174177a09a0a13df21f785970bdb5e4835b018702356bdd9e1e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060row \u003E= 0 \u0026\u0026 row == outlineView.selectedRow\u0060 appears character-identically in 2 files \u2014 md-preview/Features/Sidebar/ProjectNavigatorView.swift, md-preview/Features/Sidebar/SidebarViewController.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":"md-preview/Features/Sidebar/ProjectNavigatorView.swift"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"441dcca829397e0a0319a53a74568a84427c99b36e3e3e2bd8cda41018cca06e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/main.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a081ebb510c44d656e12d8f7c1d31f70a0af6cc334382243ac60c548a0afbede"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/main.js"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"414b4463a57ec62ce462ddab79e4d790676329199baa905ac916b1d5418cfd39"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/generated/diagrams.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcddc85ef64800d221f80ee36a62006ddac039bc3e9dbda5ce0c17b2af4d4f3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/generated/diagrams.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fa56de4262f9e30bfd3e7024cbe664d27da75ba5125e1fcc4cd53e79caae0b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/generated/diagrams.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d0a2f836eef6095a97e026e6609df48ee05ccc707df201d34c66013e14c692"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/generated/renderers.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"950a9f36b6f86eb5febe23b3366efd1c90e038647ca666fc30fde28e9d7bcfe5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/viewer/generated/renderers.js"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ae44951dcbe072385769d205798d549dcf56f56998738855d48707fa57262f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/share-worker/src/index.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e4e258f1abd8d220b7f702f85ca582f267b519a49d774c7e835b0c87d4b9b6"}},{"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":"md-preview/Theme/ThemePreset.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19297660ae09c83476f61bf75ee51883df4e8b5793e796923783bf05e87a711"}},{"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":"md-preview/Features/ShareLink/ShareLinkManageSheet.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"496ac59bc447f999ccb19bd25a02be2151b0f5d262210161966dd31ff162d4a8"}},{"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":"md-preview/Document/DocumentWindowController\u002BEditSession.swift"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca094535ea0d8e17a5f9380baa8963ccd1c86be4a6433640cad0acff4f170225"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~2.3 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 1 assertion(s) across the 430 source line(s) of the 5 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: server/share-worker/src/index.ts (1). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/MarkdownHTML\u002BMath.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8c2e5471b4e9f4be0ad5f6641246c327000f3269f5f674c7272b6233ff0816"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Rendering/MarkdownHTML\u002BMermaid.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"25df340fc933e313f148f89fa6281306f69b0190ea295095bb6094c05e4702ed"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060rank\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). 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 at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"md-preview/Features/FileSearch/FileSearchMatcher.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1f9312c6dcba5e1ad00e198f34219e6ed05d20fa6390e2a9a3b66ea9979351"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-457","guid":"b62874fe-6222-8b5b-8ade-9527ad1cbb4a","name":"CWE-457","shortDescription":{"text":"CWE-457"},"helpUri":"https://cwe.mitre.org/data/definitions/457.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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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":"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":18,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}