{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"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":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"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":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"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":"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":"ViewController.handleKeyDown (cyclomatic 119): ViewController.handleKeyDown has cyclomatic complexity 119 (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":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad2715489782a2b7e4443d3c9e3043ec8708a59346010d83769a24d38475208"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellWindowController.handleKeyDown (cyclomatic 93): ShellWindowController.handleKeyDown has cyclomatic complexity 93 (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":"Shell/ShellWindowController.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9da88928a63e307103bb6da2bbb8d6a6184466b2f01d90749a6ca316da84d51"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownRuleHighlighter.highlightMarkdown (cyclomatic 81): MarkdownRuleHighlighter.highlightMarkdown has cyclomatic complexity 81 (threshold 15). Of this number, 74 points are the body\u0027s own statements and 7 belong to 4 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/MarkdownRuleHighlighter.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d92a44cd15112c3617f6d7fe0c9bcbf5a66d2bcf1bf29a4f782cf76a075e01"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellWindowController.validateMenuItem (cyclomatic 71): ShellWindowController.validateMenuItem has cyclomatic complexity 71 (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":"Shell/ShellWindowController.swift"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"042aced141ab55fe55ee7748056f12222bb234d366d17d33086dc134c1e3de09"}},{"ruleId":"D1","level":"warning","message":{"text":"EditTextView.applyNoteContent (cyclomatic 48): EditTextView.applyNoteContent has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/EditTextView.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf59b44287389ca62f168e5f0e255416c072c97870b9583a18887040480b054"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.configureLayout (cyclomatic 42): ViewController.configureLayout has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cdfc6d6cfc71ce9014d1449c199e1d53be1197b15bd00267c96be8bea982e7"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellSidebarRow.body (cyclomatic 39): ShellSidebarRow.body has cyclomatic complexity 39 (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":"Shell/ShellRootView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebe30b20324cd624ac355fa80e7cffd9af85f0d1db23af89ee29277ad3662ed"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellWindowController.handleColumnKey (cyclomatic 36): ShellWindowController.handleColumnKey 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellWindowController.swift"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c64b59d5488c6791c05222eb087a56ba0b2bdba1361b9ab1b93ff66efa98898"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.validateMenuItem (cyclomatic 33): ViewController.validateMenuItem has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController.swift"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a5bda1f0f17be38568ffc43eaadaa54c9118d4134d1dd7b3e832a9654e0c68"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.disablePreview (cyclomatic 33): ViewController.disablePreview has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8d5197fbd8a12cb15413a31f5ad0bfe53d2d4dc2e9376b0f041d8208ffeeda"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.configureNotesList (cyclomatic 32): ViewController.configureNotesList 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":"Controllers/ViewController.swift"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3644996af17859f67c10271a3e8dcb6dbccdaf3c68fa47da4ac47a12404306"}},{"ruleId":"D1","level":"warning","message":{"text":"TypographyCleaner.parseSegments (cyclomatic 27): TypographyCleaner.parseSegments has cyclomatic complexity 27 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/TypographyCleaner.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aafe628372af598da3d3058c6cffec195c533bd273981a50fcde479aff8913c"}},{"ruleId":"D1","level":"warning","message":{"text":"Markdown.swift.isCurrencyDollar (cyclomatic 27): Markdown.swift.isCurrencyDollar has cyclomatic complexity 27 (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":"Business/Markdown.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54cbfbafff9f6a861d60083d964cef65c4b0794153e0a443a900b7b51e399d4"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarProjectView.outlineViewSelectionDidChange (cyclomatic 26): SidebarProjectView.outlineViewSelectionDidChange has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/SidebarProjectView.swift"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"4edd818bef2ee6e107a6fada8fc152929bc23a63d800eef1e538a2bb30327ea4"}},{"ruleId":"D1","level":"warning","message":{"text":"HtmlToMarkdown.renderInline (cyclomatic 25): HtmlToMarkdown.renderInline has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/HtmlToMarkdown.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"188a4a04b93698923079c88d03c102dd5bf6369f69a10974045c3e1420e0a75d"}},{"ruleId":"D1","level":"warning","message":{"text":"NotesTableView.handleSelectionChange (cyclomatic 25): NotesTableView.handleSelectionChange has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/NotesTableView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6452452010876c79315dd9ac53aeff0e65fd9a2f5529c95a30932121ebb0f52"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.deleteNote (cyclomatic 24): ViewController.deleteNote 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":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e87e6e35b24b74ef6c325799e357fb627324fe3e62137b0e013c16ec208783"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.refillEditArea (cyclomatic 23): ViewController.refillEditArea has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"340aca221643850e2ee602d6af09c6f1c7b141d3e3f56df71269d4527820c2b4"}},{"ruleId":"D1","level":"warning","message":{"text":"TypographyCleaner.clean (cyclomatic 23): TypographyCleaner.clean has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/TypographyCleaner.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec50503723524cf9b2472c3e5c240ebe1dc4dc916719cad1a531e25fdc8107c"}},{"ruleId":"D1","level":"warning","message":{"text":"HtmlToMarkdown.renderList (cyclomatic 22): HtmlToMarkdown.renderList has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/HtmlToMarkdown.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"8220d500829f50a3f966a31a6d5e3046f430ce67d4565593e6b14d15ffbccdf0"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.moveFolder (cyclomatic 21): Storage.moveFolder has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Storage.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a48a5da9f27d3279f7af8c818dcfa7fcaa30c6b2ca1ad8f415ecd611726ae28"}},{"ruleId":"D1","level":"warning","message":{"text":"EditTextView.keyDown (cyclomatic 21): EditTextView.keyDown has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/EditTextView.swift"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b159cf780a3e0ca202fb0a0ebc508e715a997ba20f331d84badd1229ff926e1"}},{"ruleId":"D1","level":"warning","message":{"text":"MPreviewView.updateContent (cyclomatic 21): MPreviewView.updateContent 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":"Views/MPreviewView.swift"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef152eddd6f9a2bfbd14ff476341b63fa212dcdbbccb0fbf5782159e9438f357"}},{"ruleId":"D1","level":"warning","message":{"text":"NotesTableView.keyUp (cyclomatic 20): NotesTableView.keyUp 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":"Views/NotesTableView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"140e16cc490f386f112bee16c2d757564834e5625d8bb96e640678ee1b8ba796"}},{"ruleId":"D1","level":"warning","message":{"text":"HtmlManager.processImages (cyclomatic 19): HtmlManager.processImages has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/HtmlManager.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"135b0d02e09ff7daee6560819a744be1b6b70fe437d916b52daffe4d831a1304"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.getSubFolders (cyclomatic 19): Storage.getSubFolders has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Storage.swift"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"c047193b49a7ba283cc6d35415d708fde819573bf5db92d01fe6f76257b6474e"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.textFinder (cyclomatic 19): ViewController.textFinder has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"795ae0893f0d2ec9447489b73aad136f7bc73aa93f1d31bcbf5c9a03b9e4db65"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.prepareSearchParameters (cyclomatic 19): ViewController.prepareSearchParameters has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BData.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5644b1e9b35a17f0c09a4adbc0e27b936709bfabb2ebca7588be4666341133"}},{"ruleId":"D1","level":"warning","message":{"text":"MPreviewView.performKeyEquivalent (cyclomatic 19): MPreviewView.performKeyEquivalent has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/MPreviewView.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc0e2a68b7c83ddaf5f48ab3ac13907a09767210c1103c375567329b1e70033"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellNoteList.body (cyclomatic 18): ShellNoteList.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellRootView.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9303887e2474a061a9e000e1159aa146af11e3607052f790acaf4248d4635a"}},{"ruleId":"D1","level":"warning","message":{"text":"EditTextView.renderPreviewContent (cyclomatic 18): EditTextView.renderPreviewContent has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/EditTextView\u002BPreview.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df8923cf5cfc2618bd1afceaf5da8f9e50e581ef4fddd7d3597fb4a426a0f37"}},{"ruleId":"D1","level":"warning","message":{"text":"Markdown.swift.maskMarkdownCodeBlocks (cyclomatic 18): Markdown.swift.maskMarkdownCodeBlocks has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Markdown.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea499aea14364aa47d11908f8ff5e6d33e1e4f253da92be2cf358c169549b9a0"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.sortQuery (cyclomatic 17): Storage.sortQuery 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":"Business/Storage.swift"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9accfdd87755f25960ed4248ae0374128137ee660db2f8f4f19365463d0bf66"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.addGlobalKeyboardMonitor (cyclomatic 17): AppDelegate.addGlobalKeyboardMonitor 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":"Controllers/AppDelegate.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d960929ae3998bb76b444b93838412c5c2edafce237ad27def96a8fd71f71a"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.loadMoveMenu (cyclomatic 17): ViewController.loadMoveMenu has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"27072255232ef0a39d96ee097c13a0b0b512c787c0c005a4f136d426a596d49f"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorMenuManager.performFormattingAction (cyclomatic 17): EditorMenuManager.performFormattingAction has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/EditorMenuManager.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c04d6e1e94deb218d52011fe59b676ce81592cb7e92163c668f653c842b5781"}},{"ruleId":"D1","level":"warning","message":{"text":"HtmlToMarkdown.renderTable::collectRows (cyclomatic 17): HtmlToMarkdown.renderTable::collectRows 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":"Helpers/HtmlToMarkdown.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd8330fd2cf172692391d13d54f7f4f161a362733b5d4a24e77b5125bcb94b0"}},{"ruleId":"D1","level":"warning","message":{"text":"ImagePreviewManager.handleImageLinkHover (cyclomatic 17): ImagePreviewManager.handleImageLinkHover 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":"Helpers/ImagePreviewManager.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a645ebd67cde3369a7b403b488535841f11ec93b2c71140a077f88b09caf0a13"}},{"ruleId":"D1","level":"warning","message":{"text":"LinkHighlighter.highlightLinks (cyclomatic 17): LinkHighlighter.highlightLinks has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/LinkHighlighter.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c289169d5dc3d61266949cebf835011aa92beb851e6f8234d29eef4d2205d490"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchTextField.control (cyclomatic 17): SearchTextField.control has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/SearchTextField.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"517e7ea443c7ffd37615d1a2d04c8e0f1736dbbd372670335b8dd61b5a153b2a"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.loadProjects (cyclomatic 16): Storage.loadProjects 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":"Business/Storage.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11c1bfb09e2af5ce43fb144118cf77f7838f1a2607c8c2e5861e364e41cac3c"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.loadMissingNotes (cyclomatic 16): Storage.loadMissingNotes 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":"Business/Storage.swift"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8447d5c5176fdd7ccd5acf8a7497910fba47482979d05edd5a42b53cee4e21"}},{"ruleId":"D1","level":"warning","message":{"text":"MainWindowController.applyMiaoYanAppearance (cyclomatic 16): MainWindowController.applyMiaoYanAppearance has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/MainWindowController.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"003ec27dceb676508563181db80dcced99dd2bccc107911427ecbf69a4d570bc"}},{"ruleId":"D1","level":"warning","message":{"text":"TypographyPrefsViewController.setupFontPopUp (cyclomatic 16): TypographyPrefsViewController.setupFontPopUp has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/TypographyPrefsViewController.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70b4c85b9bc96bfdaa31c2a7d5d7c73aade9efc03431f1c23da1aaabd9d6c6a"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownRuleHighlighter.highlightBasicMarkdown (cyclomatic 16): MarkdownRuleHighlighter.highlightBasicMarkdown has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/MarkdownRuleHighlighter.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"7065a6469e5e868b3c0a49aca052d90340787f122d259ff9c602ca396982eb09"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeTextProcessor.getBlockRanges (cyclomatic 16): CodeTextProcessor.getBlockRanges 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":"Helpers/NotesTextProcessor.swift"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"62de297c3f2d2ed8f908585a6ddf8c1b63cec70aede62e780f98d3e2aa695128"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellEditorController.format (cyclomatic 16): ShellEditorController.format 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":"Shell/ShellEditor.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee5840dc63506d4258b6754da7e59781b6b8cde58fb29d7ce672787d2a3a135"}},{"ruleId":"D1","level":"warning","message":{"text":"ShellWindowController.handleScroll (cyclomatic 16): ShellWindowController.handleScroll 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":"Shell/ShellWindowController.swift"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb3fd1b2ce5deda763e8fe7c471b0bb64429f5354097e25cb62e5e499469b2f"}},{"ruleId":"D1","level":"warning","message":{"text":"EditTextView.showSearchBar (cyclomatic 16): EditTextView.showSearchBar 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":"Views/EditTextView.swift"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a3993eec89544f4d96d8bac1c9a4440b180134ed024aee0da1187b3dd7456c"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarProjectView.outlineView (cyclomatic 16): SidebarProjectView.outlineView 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":"Views/SidebarProjectView.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3595b3216999a053601d348a919b52a1ac0b83156aafeb1c6156ac7725b26c"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarProjectView.deleteMenu (cyclomatic 16): SidebarProjectView.deleteMenu 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":"Views/SidebarProjectView.swift"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2ab5139dcfa7ad22b5923ede063333aa012e070c2e6bf4524a5c986fa752e8"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.handleKeyDown (cognitive 163): ViewController.handleKeyDown has cognitive complexity 163 (threshold 15). Drivers by points: if/else 58 (101 pts), boolean chains 62 (nesting depth added 43). 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":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"d122f5b805920e28571e5a1c40209dff17e108f5a29911ea3c90605c8e0ba6b7"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellWindowController.handleKeyDown (cognitive 107): ShellWindowController.handleKeyDown has cognitive complexity 107 (threshold 15). Drivers by points: if/else 32 (61 pts), boolean chains 45, match/switch 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellWindowController.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d4eebab6895a7949d0619e169f303d402596eff8fdb5654a2a7e613761c9b2"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownRuleHighlighter.highlightMarkdown (cognitive 84): MarkdownRuleHighlighter.highlightMarkdown has cognitive complexity 84 (threshold 15). Drivers by points: if/else 58 (62 pts), boolean chains 22 (nesting depth added 4). Of this number, 77 points are the body\u0027s own statements and 7 belong to 4 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/MarkdownRuleHighlighter.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"096e29616e980514144a8d27eb75b898902771ee2fccc606ecea6ca474a3f027"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.configureLayout (cognitive 73): ViewController.configureLayout has cognitive complexity 73 (threshold 15). Drivers by points: if/else 24 (50 pts), loops 8 (14 pts), boolean chains 9 (nesting depth added 32). 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":"Controllers/ViewController.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d268445ac60dea8ce3ff05fb7bcc8eb7a6856b112216568e702f4521cd019e"}},{"ruleId":"D2","level":"warning","message":{"text":"EditTextView.applyNoteContent (cognitive 62): EditTextView.applyNoteContent has cognitive complexity 62 (threshold 15). Drivers by points: if/else 22 (36 pts), boolean chains 26 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/EditTextView.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9710c3d5e7538d9cc07c33a0f426925ecf7a42db30591afebb84f8633b5c345"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarProjectView.outlineViewSelectionDidChange (cognitive 58): SidebarProjectView.outlineViewSelectionDidChange has cognitive complexity 58 (threshold 15). Drivers by points: if/else 20 (45 pts), ternaries 2 (7 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 31). 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":"Views/SidebarProjectView.swift"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"58fa882510219c91689e678e4e40c590f2e1ac218a3b452f2ad565b1411f9c31"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellWindowController.validateMenuItem (cognitive 54): ShellWindowController.validateMenuItem has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 38, ternaries 6 (12 pts), if/else 2 (3 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellWindowController.swift"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0410ea68f25340844a811632d39cc7388e334e81a44a8b4d0859c0efbed07bc"}},{"ruleId":"D2","level":"warning","message":{"text":"TypographyCleaner.parseSegments (cognitive 52): TypographyCleaner.parseSegments has cognitive complexity 52 (threshold 15). Drivers by points: if/else 13 (32 pts), boolean chains 10, loops 4 (10 pts) (nesting depth added 25). Of this number, 51 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/TypographyCleaner.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f478dc5f2008645dd4e2f7a940e9ca98e0c68b60f176e4186f3353b25ae4d7"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellWindowController.handleColumnKey (cognitive 51): ShellWindowController.handleColumnKey has cognitive complexity 51 (threshold 15). Drivers by points: if/else 19 (36 pts), boolean chains 9, match/switch 3 (6 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellWindowController.swift"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce7a5c16ac4365ee47a075b57d59cbccc347c4e98bcb5102af68c9d8a7971aa"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.validateMenuItem (cognitive 48): ViewController.validateMenuItem has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (34 pts), boolean chains 12, match/switch 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController.swift"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a76ebaec98248ba1cf590ff2955c30cbc6bab57121b0014daacc4eed4dd1dae"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.disablePreview (cognitive 48): ViewController.disablePreview has cognitive complexity 48 (threshold 15). Drivers by points: if/else 23 (37 pts), boolean chains 9, ternaries 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf605192e2b0fa8d6a33bf518f518cd23f19f2d6d87dd4f72ffba76e725c87f"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellSidebarRow.body (cognitive 45): ShellSidebarRow.body has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 17, ternaries 5 (6 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellRootView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"36206b83d5bc6c0438f35ab8189d172812bfad614f065184234a78dd5e05b9a3"}},{"ruleId":"D2","level":"warning","message":{"text":"TypographyCleaner.clean (cognitive 42): TypographyCleaner.clean has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (35 pts), boolean chains 6, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/TypographyCleaner.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"714f15aee3ad933cd4e8b39b65aacff1bd7cf5b600be1014304b1df98d503566"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.configureNotesList (cognitive 41): ViewController.configureNotesList has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 17 (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":"Controllers/ViewController.swift"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd89ddbae80c6f341546f6d116e8e2e7e0a96cf457bee216d18045588addbb7"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesTableView.handleSelectionChange (cognitive 40): NotesTableView.handleSelectionChange has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (32 pts), boolean chains 8 (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":"Views/NotesTableView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2723442525ea1fcd9921aeddaf637a2e3aa935ee0f174de8e3df73a092a7348"}},{"ruleId":"D2","level":"warning","message":{"text":"HtmlToMarkdown.renderList (cognitive 39): HtmlToMarkdown.renderList has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 8, loops 3 (5 pts), ternaries 1 (2 pts) (nesting depth added 15). Of this number, 37 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/HtmlToMarkdown.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b2fc56cb96a9fc1fad52e4a05360f0086bf12a8b5fb72518b51c81326325b0"}},{"ruleId":"D2","level":"warning","message":{"text":"HtmlManager.processImages (cognitive 38): HtmlManager.processImages has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 4, loops 2 (3 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":"Business/HtmlManager.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e790b32a238a4f787f5462f6450c61313b87d88766abea5110bb2818e423faa"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.getSubFolders (cognitive 36): Storage.getSubFolders has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (26 pts), boolean chains 6, error handling 1 (2 pts), loops 2 (nesting depth added 18). 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":"Business/Storage.swift"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e826b815eff33ff815e5b8ca652621e5c8f46e5464fff98ade31a163bad64c9"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.refillEditArea (cognitive 36): ViewController.refillEditArea has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 13 (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":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a8f4a9a4b1523383baabce277c78857e1e8b33aacebcd87e49d12f6186e258"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.textFinder (cognitive 34): ViewController.textFinder has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (30 pts), match/switch 2 (4 pts) (nesting depth added 18). 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":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ddad46d614771b5600efc68eb1cdf3646cd7e01e7ab8a8f1f82bab3eb339470"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.loadMissingNotes (cognitive 33): Storage.loadMissingNotes has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (30 pts), boolean chains 2, loops 1 (nesting depth added 17). 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":"Business/Storage.swift"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"061c10b0818268797c656bb76c8ac0ed3dee529f342c5d0f908bcdf64045a73c"}},{"ruleId":"D2","level":"warning","message":{"text":"EditTextView.keyDown (cognitive 32): EditTextView.keyDown has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/EditTextView.swift"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b0035347b43b5d1ea9a905273e2d38927afc01166d4a228b2dde556ca8062b"}},{"ruleId":"D2","level":"warning","message":{"text":"EditTextView.renderPreviewContent (cognitive 32): EditTextView.renderPreviewContent has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 9 (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":"Views/EditTextView\u002BPreview.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"15fb64d6bd9298e50eee1826033f52e36ea834a32306cc5757680084f9f049dc"}},{"ruleId":"D2","level":"warning","message":{"text":"HtmlToMarkdown.renderTable::collectRows (cognitive 31): HtmlToMarkdown.renderTable::collectRows has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/HtmlToMarkdown.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"202b4c3d0167fdec805b1a88580440ef2db9c2ac1f396f485a0755867bd5cd2e"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.deleteNote (cognitive 29): ViewController.deleteNote has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 11, ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5dfcfd60dbad5f1d1c14ac1a46999333b0cb6dfd067d16c1f42bbddd7f36559"}},{"ruleId":"D2","level":"warning","message":{"text":"HtmlToMarkdown.renderInline (cognitive 28): HtmlToMarkdown.renderInline has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 7 (10 pts), boolean chains 3, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/HtmlToMarkdown.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f41524e7e398b7e15c12a4bad64ed397f6b5bcca05438332fd7d1c0e911c84f"}},{"ruleId":"D2","level":"warning","message":{"text":"TypographyCleaner.normalizeEmDash (cognitive 28): TypographyCleaner.normalizeEmDash has cognitive complexity 28 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 3 (9 pts), boolean chains 5 (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/TypographyCleaner.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84dee9d65d0f2c1a58a4e6b772791615ee7a4aeac5e57fcb54ba371015b45b0"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.swift.isCurrencyDollar (cognitive 28): Markdown.swift.isCurrencyDollar has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 19, if/else 5 (6 pts), loops 2 (3 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Markdown.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3af81aa90e8b0a2d6294ad79301819c4697c584c2078b5d762978f9d79ff0a"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellModel.setPresenting (cognitive 27): ShellModel.setPresenting has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 3 (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":"Shell/ShellModel.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"0059ce2cbeeee18769399a0ed7a42c93af31191e6056d012c13f2fe9c8905476"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.swift.maskMarkdownCodeBlocks (cognitive 27): Markdown.swift.maskMarkdownCodeBlocks has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 4 (6 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Markdown.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6f00ff5fa620bb2e3f77d10096a6366ef9873f03d0e021ae8f4bddeebaf629"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.moveFolder (cognitive 26): Storage.moveFolder has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 6, loops 6 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Storage.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ba08ac23cb840c2aed7d5b53dd70451dea999c1fbee31989b53aaaf36277e5"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSourceNoticeRenderer.attributedString (cognitive 26): OpenSourceNoticeRenderer.attributedString has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (21 pts), ternaries 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 11). Of this number, 24 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/OpenSourceLicensesWindowController.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51a07ca26d56074f53edaeb9db1bf0ed910fb8b097f6bac2f7e98c573cd2b3c"}},{"ruleId":"D2","level":"warning","message":{"text":"HtmlManager.ensurePreviewResourcesAvailable (cognitive 24): HtmlManager.ensurePreviewResourcesAvailable has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 5, error handling 2 (5 pts) (nesting depth added 11). 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":"Business/HtmlManager.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b78d435acba7ddde57a9dd1f02ca1956310a89d26bda5cd4f191f461283549d"}},{"ruleId":"D2","level":"warning","message":{"text":"Note.executeSave (cognitive 24): Note.executeSave has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 2 (3 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Note.swift"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacd39f53ff07588fb7b2a904ba2148dcaa6723e3a3b0cacc84d02173c0edfff"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.loadProjects (cognitive 24): Storage.loadProjects has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 6, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Storage.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a89f6be1ce6b02bf4d9363cf591d1425d669614770e9640750359cf20f6a2d4"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.duplicate (cognitive 24): ViewController.duplicate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f3a118fcc3c81cb59570d0645b9bbf47171ed9b7eb9f3ee1313a68d6a6b0b9"}},{"ruleId":"D2","level":"warning","message":{"text":"TypographyCleaner.cleanLineCore (cognitive 24): TypographyCleaner.cleanLineCore has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 5, 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":"Helpers/TypographyCleaner.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b6871fe4d2605f8d91be33d0680b2495eb018b59cdc3e9a28d57516caea9c9"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesTableView.keyUp (cognitive 24): NotesTableView.keyUp has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 9 (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":"Views/NotesTableView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9daa63dd599d9a4c4856b4887e6b2acef0cb9cfe0a55b044030ad492542c2d62"}},{"ruleId":"D2","level":"warning","message":{"text":"WikilinkIndex.readEntries (cognitive 23): WikilinkIndex.readEntries has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/WikilinkIndex.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa638691c001845bb8e386f68bf77c1d68d7bcb3fdcfa17f70fc743cd95d65b"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.collectImportableFiles (cognitive 23): ViewController.collectImportableFiles has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (3 pts) (nesting depth added 13). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7418de197ec182e958fb04af5c5f143362dbe7a095d1698157a7b575510ce14b"}},{"ruleId":"D2","level":"warning","message":{"text":"ClipboardManager.saveClipboard (cognitive 23): ClipboardManager.saveClipboard has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 2 (nesting depth added 11). 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":"Helpers/ClipboardManager.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"84bbac1425144ab3610cfa16e1d4c7e8a1933ffcfcf52c9b844c13743b5cd9d1"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeTextProcessor.scanCodeBlockDown (cognitive 23): CodeTextProcessor.scanCodeBlockDown has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/NotesTextProcessor.swift"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93e0531d7b1cc999acf4495e79135005663cbd8ef407c06a8a555ed794fce2f"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeTextProcessor.getBlockRanges (cognitive 23): CodeTextProcessor.getBlockRanges has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 7, 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":"Helpers/NotesTextProcessor.swift"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7eb2ec64f79924139392be35b06a81efd9d976adcd889bc2bfa4aac6a2a26b"}},{"ruleId":"D2","level":"warning","message":{"text":"MPreviewView.performKeyEquivalent (cognitive 23): MPreviewView.performKeyEquivalent has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 9 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/MPreviewView.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a3c4e7195d5965f865ea670134e3191e9f7de96eab4f695a5d3d87fb1c4ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.addGlobalKeyboardMonitor (cognitive 22): AppDelegate.addGlobalKeyboardMonitor has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 9 (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":"Controllers/AppDelegate.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4fb41d2a2e64999c2f86419522ae60b0e19942490453fe70f637c909783e9f5"}},{"ruleId":"D2","level":"warning","message":{"text":"ImagePreviewManager.handleImageLinkHover (cognitive 22): ImagePreviewManager.handleImageLinkHover has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7 (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":"Helpers/ImagePreviewManager.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3f1e03b4e79ec6629dcda703d19c68e591415dcde015e5fde95573e0845bab"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellWindowController.textFinder (cognitive 22): ShellWindowController.textFinder has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 2 (4 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellWindowController.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41601bf1a78b2ef25cc57c97fc71e11a8dc9762d0c12d719c4596e1d632df52"}},{"ruleId":"D2","level":"warning","message":{"text":"EditTextView.deleteUnusedImages (cognitive 22): EditTextView.deleteUnusedImages has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 1 (4 pts) (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/EditTextView.swift"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e731f73f211273ede55f8bd5a84b737fe64d6afb3230e91a8ddf3837c13891e0"}},{"ruleId":"D2","level":"warning","message":{"text":"EditTextView.showSearchBar (cognitive 22): EditTextView.showSearchBar has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, ternaries 3 (5 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/EditTextView.swift"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd91aa2ecc20430d4a9bfa81ce5066cfbe9fd334e922795dee80b80da84a48b4"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarProjectView.outlineView (cognitive 22): SidebarProjectView.outlineView has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, match/switch 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":"Views/SidebarProjectView.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"353241daf4e947573ac171f739c4c50d0e8fd205a243ba7a2fc459d01a1213f5"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarProjectView.deleteMenu (cognitive 22): SidebarProjectView.deleteMenu has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 7, error handling 1 (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":"Views/SidebarProjectView.swift"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5e0004763457cbacd74f731fa9a903a6e3aa45139f948946c9fdcf2e598521"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.swift.markdownCodeMask (cognitive 22): Markdown.swift.markdownCodeMask has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Markdown.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5e538c96abacdd893810b212465828be85734df37a624d780f5656997a6ada"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.loadLabel (cognitive 21): Storage.loadLabel has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 1, 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":"Business/Storage.swift"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bc1c6ddc5655d11942ae39b17aa70eb91cab09ce1623b7fd30ae3d30104b07"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSourceNoticeRenderer.inline (cognitive 21): OpenSourceNoticeRenderer.inline has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5, ternaries 1 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/OpenSourceLicensesWindowController.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e90758a331a59e8448ecb6e3a2682dbf2f45f6aab76d1188bbe803aacc77f2"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.prepareSearchParameters (cognitive 21): ViewController.prepareSearchParameters has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (10 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BData.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"71950998b674a130cdcf4a831503a7438c333eceb13c3a0f53c4b414b297e8d5"}},{"ruleId":"D2","level":"warning","message":{"text":"BacktickAndFontNormalizer.normalize (cognitive 21): BacktickAndFontNormalizer.normalize has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/BacktickAndFontNormalizer.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6462a0cab26e386718bf1d58c83ec79de7786c6b8f22368aed6eacf784547ea5"}},{"ruleId":"D2","level":"warning","message":{"text":"MPreviewView.updateContent (cognitive 21): MPreviewView.updateContent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 9, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/MPreviewView.swift"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"44de4b236f26e1d771f2d82a908f1f35db4516f112a313e0350208a0e6b70167"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarProjectView.reloadSidebar (cognitive 21): SidebarProjectView.reloadSidebar has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/SidebarProjectView.swift"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd59689c2c6c5a5a507c441dfc18d38ac65ac2c952c621a3d0e3c7d5c24df319"}},{"ruleId":"D2","level":"warning","message":{"text":"HtmlManager.processImagesInMarkdown (cognitive 20): HtmlManager.processImagesInMarkdown has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 2, ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/HtmlManager.swift"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"4285ab6aff3d63d2e927f431d5bf8fc06cc8b1dd87eadd84a19e415932c7fbb6"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.formatText (cognitive 20): ViewController.formatText has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2191cd979f0510236fee35b6b94b927c29d2a09dabaca9c23ddb20928b6e63d"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellNoteList.body (cognitive 20): ShellNoteList.body has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, ternaries 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellRootView.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3edd3df8a223acdffe3b2e7dd64cea93833668d68fd883135fb3965a69c5cd"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.reconfigureForSingleMode (cognitive 19): Storage.reconfigureForSingleMode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Storage.swift"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b67b7f054ac8ec2c0ee71be1a8d77fed7ae1dd3c41c5df494df354e6343cf62"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.checkFirstRun (cognitive 19): Storage.checkFirstRun has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (5 pts), ternaries 3, error handling 1, match/switch 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":"Business/Storage.swift"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"f604609dd666b2dd20885cb72a9dd7c2b0f0aafa5875011792c36a8c00680964"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.removeNotes (cognitive 19): Storage.removeNotes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Storage.swift"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3edab688f8c0a67da785534f9d5f7dfc38fc538f61b15f57f2ea5d4242fd43"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.findOrphanAttachments (cognitive 19): Storage.findOrphanAttachments has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 6 (8 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":"Business/Storage.swift"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f52dae7811fa4da408d070aab23e8c4dddcebc5656d3be10f79f2f7c1fe79a8"}},{"ruleId":"D2","level":"warning","message":{"text":"TypographyPrefsViewController.setupFontPopUp (cognitive 19): TypographyPrefsViewController.setupFontPopUp has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 3 (5 pts), boolean chains 3, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/TypographyPrefsViewController.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f6249caa71ff3a7c2a5c46b65f9e80754684a3eb6b11bf0a1abd0957c1304b"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.loadMoveMenu (cognitive 19): ViewController.loadMoveMenu has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24d48f7f9efc49f39fdb312109fab5e4b20199394e264e09f35504b8164dec5"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellEditorController.format (cognitive 19): ShellEditorController.format has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, error handling 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellEditor.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f0c0790965195628cdad5be0741c645bea1432b64523e185bebaaf6dbbe228"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellModel.computeNotes (cognitive 19): ShellModel.computeNotes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 3 (5 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellModel.swift"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd77b39987a87e5328740835771837ae77ed02618b90e70742ddf209144b565f"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellModel.group (cognitive 19): ShellModel.group has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 6). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellModel.swift"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5517d577c557362e572584a602f8f98c325605510578a91c19a5aa575c4b1b"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellWindowController.handleScroll (cognitive 19): ShellWindowController.handleScroll has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 6, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellWindowController.swift"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"9274cbc79059cdedbc3f4c7b080896ac0f344ac5f01719003502d82da71ef094"}},{"ruleId":"D2","level":"warning","message":{"text":"MPreviewView.showSearchBar (cognitive 19): MPreviewView.showSearchBar has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/MPreviewView\u002BSearch.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c01c63fbe43eaac7c62fb7cf712a8301c322017f3cb30f47b71319a8c14c88"}},{"ruleId":"D2","level":"warning","message":{"text":"NSTextStorage.expandedSyntaxContextRange (cognitive 19): NSTextStorage.expandedSyntaxContextRange has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/CustomTextStorage.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0e3f7e937d7f626403d2a4081ebdb4cc5294bbcd5d8cf89895a37507ef11bc"}},{"ruleId":"D2","level":"warning","message":{"text":"MainWindowController.applyMiaoYanAppearance (cognitive 18): MainWindowController.applyMiaoYanAppearance has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Controllers/MainWindowController.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f843433eeb5b75e28d4782837384d5d6c6b7df97c8e9c3c475d9ead7c0a957a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.move (cognitive 18): ViewController.move has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace41be7bb9a7e00d4278a6a9067d7b097e3bdc9237f69f941b252b2937b46fa"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.handleNonEmptyResults (cognitive 18): ViewController.handleNonEmptyResults has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BData.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1a1e52048595d28942f37808316a8db94a9955087dae7739e1f130b8a31685"}},{"ruleId":"D2","level":"warning","message":{"text":"ImagePreviewWindow.calculateImageSize (cognitive 18): ImagePreviewWindow.calculateImageSize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/ImagePreviewWindow.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c2cc4941efd8a7e160b14dd5bd864033e44b05d582cc8d1f2b80e58fa7cfeb"}},{"ruleId":"D2","level":"warning","message":{"text":"Frontmatter.looksLikeYAML (cognitive 17): Frontmatter.looksLikeYAML has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 6, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/MiaoYanCore/Sources/MiaoYanCore/Frontmatter.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"7186aa5ae456f1a13ed63dcb51b9d9e9ce96108270c5f43d930165b6047d6b14"}},{"ruleId":"D2","level":"warning","message":{"text":"HtmlManager.embedLocalImages (cognitive 17): HtmlManager.embedLocalImages has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (2 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":"Business/HtmlManager.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fcfaf7b9dceae267a53c1054df671536dea016224705793fb09f4800f4a9cd"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.sortQuery (cognitive 17): Storage.sortQuery has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Storage.swift"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f8cf13b132f96697aaa2616aba6efde211baa141cc948df411e5e9f271cd7b"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.viewDidAppear (cognitive 17): ViewController.viewDidAppear has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"7422a42bfca26e84b4d7f0b033640955ee3f1b6d44d0dc5169584f9d033237dc"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.textDidChange (cognitive 17): ViewController.textDidChange has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController.swift"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d200dfca699cecbb2292303297db8686fea911485360b60a307f563cf33a627"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownRuleHighlighter.highlightBasicMarkdown (cognitive 17): MarkdownRuleHighlighter.highlightBasicMarkdown has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/MarkdownRuleHighlighter.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79df0254a8b641f7542a04be4999da70933b3276ac9a4d5fe10b43bf94e4590"}},{"ruleId":"D2","level":"warning","message":{"text":"TypographyCleaner.trimSpacesAroundFullwidthPunctuation (cognitive 17): TypographyCleaner.trimSpacesAroundFullwidthPunctuation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/TypographyCleaner.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1aad44199c8553f2bc399150168003aec46cc5a025d2ac53b71e7e93de3551f"}},{"ruleId":"D2","level":"warning","message":{"text":"MPreviewView.buildPdfOutline (cognitive 17): MPreviewView.buildPdfOutline has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Extensions/MPreviewView\u002BExport.swift"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"df192a642c3d49fac7ebb26505d23b885b03ffcfaf83bd6bdf5670758e252132"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.swift.protectMarkdownMath (cognitive 17): Markdown.swift.protectMarkdownMath has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (6 pts), loops 2 (3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Markdown.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2cfcb72f9e8a1b23d9ef57392fe28a8e1d8794bdc12657e28f15b523955b49"}},{"ruleId":"D2","level":"warning","message":{"text":"Project.loadSettings (cognitive 16): Project.loadSettings has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2 (nesting depth added 8). 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":"Business/Project.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9f2803f6bc376c79767be112c792321d8b0aae4359a3bc160dcbedbf5d8902"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.checkSub (cognitive 16): Storage.checkSub has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 3 (7 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Storage.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64f887b61c0623854c6b6a710a7017428706d90efa246a3d89d9fe9e588ce29"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.relocateFolder (cognitive 16): Storage.relocateFolder has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, loops 2 (nesting depth added 4). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, 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":"Business/Storage.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dab2cc2ad85770ae003d1a8ad84f14d415c6be959c264b2459d6283d8c6ce87"}},{"ruleId":"D2","level":"warning","message":{"text":"LinkHighlighter.highlightLinks (cognitive 16): LinkHighlighter.highlightLinks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. 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":"Helpers/LinkHighlighter.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fb308d560c35442a377e95c1aade203fcf56c11d738c9abfe6d26746914cb9"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesTextProcessor.convertAppLinks (cognitive 16): NotesTextProcessor.convertAppLinks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 4, loops 2, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/NotesTextProcessor.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce1d4d023daf6cc70fe4ac63b115c2652ad9122a90bf1ee3bb2fafffc851157"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellModel.duplicate (cognitive 16): ShellModel.duplicate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 pts), boolean chains 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":"Shell/ShellModel.swift"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43eee5a6467f058e11b90a39c2d82f56af4553a823d244909aa177e650935e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ShellWindowController.observePresentation (cognitive 16): ShellWindowController.observePresentation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellWindowController.swift"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b6c5ccc3f5e7a2c54ad85b2834451292754d0d0040a7e5898d5943baba8ff5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ViewController: TooManyMethods \u2014 233 methods, declared across 6 files: Controllers/ViewController\u002BEditor.swift (67), Controllers/ViewController\u002BAction.swift (57), Controllers/ViewController\u002BLayout.swift (35), Controllers/ViewController.swift (34), \u002B2 more file(s). The bar is 30 methods; this is 203 over it, 7.77\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":"Controllers/ViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"331cc859d5a63988902959bdf3f4074b82068ac53924af986fa19c8d2ab54c38"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditTextView: TooManyMethods \u2014 120 methods, declared across 2 files: Views/EditTextView.swift (118), Views/EditTextView\u002BPreview.swift (2). The bar is 30 methods; this is 90 over it, 4.00\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":"Views/EditTextView.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8359785ac9eba372c1943b00a903bd0a5f4de8c20c932b3be80f507dbd44e82f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ShellModel: TooManyMethods \u2014 108 methods, declared across 3 files: Shell/ShellModel.swift (89), Shell/ShellModel\u002BFolders.swift (14), Shell/ShellModel\u002BExport.swift (5). The bar is 30 methods; this is 78 over it, 3.60\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":"Shell/ShellModel.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28d67dea9627a723e4e88e2e87eb4c14578eaa96b47a5fa43bbde0bb8a1f645"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EditTextView: ClassTooLong \u2014 1246 significant lines (blank, comment-only and punctuation-only lines excluded), 120 methods. The bar is 400 significant lines; this is 846 over it, 3.12\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":"Views/EditTextView.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f71ce0c07f06594fa47ad2ed950d323e9d831d467310b520b81455c04b51a7c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Note: TooManyMethods \u2014 85 methods. The bar is 30 methods; this is 55 over it, 2.83\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":"Business/Note.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"244d4a01f0bf893a9d6375af05621ce02a457b28fe69c30d8983311242d4be32"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ShellWindowController: TooManyMethods \u2014 85 methods. The bar is 30 methods; this is 55 over it, 2.83\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":"Shell/ShellWindowController.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7871e6c860a0e9c3684847b1e11458753e359f7401687614db9ee1a6a64b6df"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Storage: TooManyMethods \u2014 83 methods. The bar is 30 methods; this is 53 over it, 2.77\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Storage.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6004c2c055783d54232d45fece463f5c2305064f9e6466d7f3ffa2f4c051381"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MPreviewView: TooManyMethods \u2014 82 methods, declared across 3 files: Views/MPreviewView.swift (38), Extensions/MPreviewView\u002BExport.swift (27), Views/MPreviewView\u002BSearch.swift (17). The bar is 30 methods; this is 52 over it, 2.73\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":"Views/MPreviewView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c8804e45467afe31264585fe61f24b7b4de4a53e227bb8f31544c7222348df"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ShellModel: ClassTooLong \u2014 1085 significant lines (blank, comment-only and punctuation-only lines excluded), 108 methods. The bar is 400 significant lines; this is 685 over it, 2.71\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":"Shell/ShellModel.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"251aaac6bb51137130319de2bf33508a4bee11ba5411b191b94f1b0f324ff638"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Storage: ClassTooLong \u2014 1038 significant lines (blank, comment-only and punctuation-only lines excluded), 83 methods. The bar is 400 significant lines; this is 638 over it, 2.60\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":"Business/Storage.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8743bc8cf215f8d2300944ec77f18c73bfbb84aad3518b84572a8d5464c83a48"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/EditTextView.swift: FileTooLong \u2014 1282 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: EditTextView (50-2000). The bar is 500 significant lines; this is 782 over it, 2.56\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/EditTextView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c74d63d79cf774f6ffe1ad6e819c587959dec775a1315c93a7d27a70a57341c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MarkdownRuleHighlighter.highlightMarkdown: MethodTooLong \u2014 highlightMarkdown runs 253 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 153 over it, 2.53\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":"Helpers/MarkdownRuleHighlighter.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"041d35d9dd9e4d2aab9c18cd51dc55dd5f51deb21161b8d28265aef26e0fd62c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SidebarProjectView: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.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":"Views/SidebarProjectView.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda7c0fd5c23474685715eae08900e3a88ff329b37687d3e90954783425eef6a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ViewController: ClassTooLong \u2014 926 significant lines (blank, comment-only and punctuation-only lines excluded), 233 methods. The bar is 400 significant lines; this is 526 over it, 2.32\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":"Controllers/ViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"641a563d17aaee07dc5fa6d9d59514ee98a04a669ba5ac90194d0516397b11c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Shell/ShellModel.swift: FileTooLong \u2014 1098 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ShellModel (11-1784). The bar is 500 significant lines; this is 598 over it, 2.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1236553cb511792c4818909fb574c2d6d37621361e71a3771f0b2bc1659ba0a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Business/Storage.swift: FileTooLong \u2014 1049 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Storage (15-1775). The bar is 500 significant lines; this is 549 over it, 2.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Business/Storage.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a8a7e405777a4c690e9b9b75d5036ab8ed6d1a7b5a37422156e89415327827"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SidebarProjectView: ClassTooLong \u2014 815 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods. The bar is 400 significant lines; this is 415 over it, 2.04\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":"Views/SidebarProjectView.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9dd9c40546d0be188f9a694a188fd81ea6c39ef51e6f97218112706b9ab16eb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ShellWindowController: ClassTooLong \u2014 799 significant lines (blank, comment-only and punctuation-only lines excluded), 85 methods. The bar is 400 significant lines; this is 399 over it, 2.00\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":"Shell/ShellWindowController.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2e80a21c3336358f65874a69b52a330a7df73f70cabae0e267fca92805fa85"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controllers/ViewController\u002BAction.swift: FileTooLong \u2014 959 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 459 over it, 1.92\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":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c3e8162b2c090533e4a33302104a3e66004b50f56176b9244800a0992b9d08"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controllers/ViewController\u002BEditor.swift: FileTooLong \u2014 955 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 455 over it, 1.91\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":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5c80a7d11188cc8dc1be25be5505858fb0a10a73593aeedadd08262179d379"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Shell/ShellWindowController.swift: FileTooLong \u2014 950 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: ShellWindowController (11-1233). The bar is 500 significant lines; this is 450 over it, 1.90\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":"Shell/ShellWindowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72203f1c69428b27657a4e28621466d32aba750eccf709367635b252e26748f4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MPreviewView: ClassTooLong \u2014 758 significant lines (blank, comment-only and punctuation-only lines excluded), 82 methods. The bar is 400 significant lines; this is 358 over it, 1.90\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/MPreviewView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff5caf312160ae1f77f907e0ea6f4d0c95637fd7933a312f79c300fd2c3c1b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controllers/ViewController.swift: FileTooLong \u2014 934 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ViewController (12-1489). The bar is 500 significant lines; this is 434 over it, 1.87\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":"Controllers/ViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8866d73b2a110eec404d86bc18a612ef7ed5b9eb1e9cab2de95ff383642484"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Note: ClassTooLong \u2014 713 significant lines (blank, comment-only and punctuation-only lines excluded), 85 methods. The bar is 400 significant lines; this is 313 over it, 1.78\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":"Business/Note.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6195f87bb54e8c57b43b119cc583b483436d5f1389d9c983490a33be2fc32c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ViewController.handleKeyDown: MethodTooLong \u2014 handleKeyDown runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d03718ee40470d8c760220890bc9de678d5d232c39682c78c79290f73462b0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppDelegate: TooManyMethods \u2014 51 methods, declared across 3 files: Controllers/AppDelegate.swift (34), Controllers/AppDelegate\u002BURLRoutes.swift (15), Controllers/AppDelegate\u002BLifecycle.swift (2). The bar is 30 methods; this is 21 over it, 1.70\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":"Controllers/AppDelegate.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cac5f3c2e590c377a189b6a8c1826b12cdf260a165e7111cf2c32f64b3c5cc0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/SidebarProjectView.swift: FileTooLong \u2014 839 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SidebarProjectView (36-1422). The bar is 500 significant lines; this is 339 over it, 1.68\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":"Views/SidebarProjectView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db96c3150854d3e483c39c1e44a02dc5f0e01bc9516dd8cce8aedce63d0c9930"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ViewController.configureLayout: MethodTooLong \u2014 configureLayout runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\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":"Controllers/ViewController.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d9507649d6ec401b6a9840cc0aeb7393609df4ad3199cd12aa56e46612cc3b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HtmlManager: ClassTooLong \u2014 656 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 256 over it, 1.64\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":"Business/HtmlManager.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c1f3670b300dea1d9fde3cf9affe2bc4de0edfc4762e2d79b4e9724f93310d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UserDefaultsManagement: ClassTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 241 over it, 1.60\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":"Helpers/UserDefaultsManagement.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a2408f341fdfa7483544fc2d3268586e78647cbfb944797cea537905e2cdd1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/MPreviewView.swift: FileTooLong \u2014 766 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: MPreviewView (14-1221). The bar is 500 significant lines; this is 266 over it, 1.53\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":"Views/MPreviewView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b5241603c8d2fd973585a823b57df60cbd0e4aac86ef85aba0adabc8d855fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Shell/ShellRootView.swift: FileTooLong \u2014 760 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 260 over it, 1.52\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":"Shell/ShellRootView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac9045840d929bf4b60d710ec4e9a702e8eba0c10d78442d404b5a904458974"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Business/Note.swift: FileTooLong \u2014 719 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Note (8-1262). The bar is 500 significant lines; this is 219 over it, 1.44\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":"Business/Note.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c219a459ccde30a36d2ac0ba86aa76a3bae0cc8644091c6d67cb48c49f91e8bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Extensions/MPreviewView\u002BExport.swift: FileTooLong \u2014 704 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 204 over it, 1.41\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":"Extensions/MPreviewView\u002BExport.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdbbb766a476607b8ad913ed8a92ef80d2a282d7f684c6150400d5f56aca1b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Helpers/UserDefaultsManagement.swift: FileTooLong \u2014 694 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: UserDefaultsManagement (82-1050). The bar is 500 significant lines; this is 194 over it, 1.39\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":"Helpers/UserDefaultsManagement.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"716b62a596bad989858f9652dff695d6872f17335b94374a234460c97755e905"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NotesTableView: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/NotesTableView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb300c423826c810e2d351319191fa7afa95a98d128b902cb5cef859c08d2c7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HtmlManager: 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":"Business/HtmlManager.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25f09f9538ea4130236c216e23a682f935dc95747267cce417209a65a3dd127"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HtmlManager.paginatedPrintCSS: MethodTooLong \u2014 paginatedPrintCSS runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"Business/HtmlManager.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23c544f0fe056a87decebd926e8f9759259b24deba054ac23fa38637a868f6c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Business/HtmlManager.swift: FileTooLong \u2014 659 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: HtmlManager (5-1111). The bar is 500 significant lines; this is 159 over it, 1.32\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":"Business/HtmlManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"787780bb2fcbf75615edfbbb16505d2d13e76058a3c86dcba43744cd29529b05"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShellWindowController.handleKeyDown: MethodTooLong \u2014 handleKeyDown runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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":"Shell/ShellWindowController.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"0884a102a388db8446b1b50b1887edf230a822a18ef9cfedf68a80d4bb09e7bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Helpers/NotesTextProcessor.swift: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: NotesTextProcessor (5-790). The bar is 500 significant lines; this is 134 over it, 1.27\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/NotesTextProcessor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3873de27c057d51666e3a6d2c770c42d78fb23f398dfaee06e19fcbba7ddbe69"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ViewController.disablePreview: MethodTooLong \u2014 disablePreview runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\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":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a77ab67b33fc1a32230a2d64056b65aaafbb7d0c7d3aa515ab4853131ea1ce"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NotesTextProcessor: ClassTooLong \u2014 475 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 75 over it, 1.19\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":"Helpers/NotesTextProcessor.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e520e9c61984cb6df3fc7c8587937fac3bf1f99887e68d96ebb7e91422d98e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditTextView.applyNoteContent: MethodTooLong \u2014 applyNoteContent 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":"Views/EditTextView.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c30b0e82aca29467382777fed5f74346fe1010496dbef9b6e6c4d1ea17c71dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (41 shared lines): Views/PreviewSearchBar.swift:457-516 | Views/PreviewSearchBar.swift:518-599 \u2014 These two members are variants of one another: 41 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/PreviewSearchBar.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"9284ab21615525d1334d7e9d084d304d31c156c41a9239936fcd8eb5a043055b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Helpers/TextFormatter.swift:49-55 | Helpers/TextFormatter.swift:57-63 | Helpers/TextFormatter.swift:65-71 | Helpers/TextFormatter.swift:73-79 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/TextFormatter.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae01e7363e59acbe6bee14da39fb46cd559540b19033b0e8433ff7f785ec2f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Controllers/ViewController\u002BAction.swift:500-541 | Shell/ShellModel.swift:916-948 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b13366101dcfbf28d99231932cb4a139e3a6aea9011d4c3d48b2bec56048a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Helpers/NotesTextProcessor.swift:845-874 | Helpers/NotesTextProcessor.swift:876-916 \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":"Helpers/NotesTextProcessor.swift"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24f076a8d13ce37c1f9f028692e1b39e8861ed450448512a801d3f214a2befd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Shell/ShellModel\u002BFolders.swift:21-36 | Views/SidebarProjectView.swift:1093-1118 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shell/ShellModel\u002BFolders.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2f5dbb644f1c84345b376cc76b7ec2ab6037be58e254c858f688088bc58e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Controllers/ViewController\u002BEditor.swift:542-588 | Controllers/ViewController\u002BEditor.swift:666-722 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4070a625c4f62e7b991184ba8ebc7cf852424ecd9e9c1da9da8e92282e234d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Controllers/ViewController\u002BAction.swift:543-587 | Shell/ShellModel.swift:1430-1455 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"6180b0f3c03c6431356b94b6a1a259aa5f9929d186815be7124366b78faffdfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Helpers/ImageLinkParser.swift:47-74 | Helpers/ImageLinkParser.swift:76-104 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/ImageLinkParser.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb60c5800d9240afcee567e281651c66e5a30bed65363134d2727b8727902e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Extensions/NSImage\u002B.swift:33-59 | Extensions/NSImage\u002B.swift:104-127 \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":"Extensions/NSImage\u002B.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2844916070be6df4b26d3d560cd34938d37a31127531a5f355053decfc917b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Views/EditTextView.swift:1244-1261 | Views/EditTextView.swift:1263-1281 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/EditTextView.swift"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d5ea5e20b1b0a086b4e13bc4f6d5b234d552ee0e89990cb9aa5eeb824983b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Controllers/VersionHistoryViewController.swift:568-583 | Views/SidebarTableRowView.swift:28-49 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/VersionHistoryViewController.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"73881d75e00f622488d3e65f66b5a8414d728378bfe8c4c85167b9b9cff67ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Controllers/ViewController.swift:249-276 | Controllers/ViewController.swift:280-307 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aeee9f9340c27676f7a1cebd4e225978956d8136a616f9bfc53dccdd91bad92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Controllers/ViewController\u002BEditor.swift:1131-1146 | Shell/ShellEditor.swift:297-306 \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":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bd6f2a88af85376d5e0dfb1331905d3fea6907ea6a003ef0292e7f22d89121"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Business/Storage.swift:1391-1409 | Shell/ShellModel.swift:476-490 \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":"Business/Storage.swift"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5023d5b5cf858e507805ecd0f0480e7cd1fb97a38ee5b485789f852338522d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Helpers/CustomTextStorage.swift:59-77 | Helpers/CustomTextStorage.swift:79-102 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/CustomTextStorage.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad038157220f5bbd960e26506a2935ee16660b6e10894ec9f3ae97afda1319f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Controllers/ViewController\u002BAction.swift:202-215 | Controllers/ViewController\u002BAction.swift:217-230 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c49f516549644911fcba0dac97726d6a43189f4d01384a5026eeabf10452698"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Controllers/AppDelegate\u002BURLRoutes.swift:208-226 | Controllers/AppDelegate\u002BURLRoutes.swift:283-304 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/AppDelegate\u002BURLRoutes.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f9f318fe4d00d16b7aae7fba3b321531ebcec375b85b59c4045034e9a5feef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Controllers/ViewController\u002BData.swift:488-495 | Shell/ShellModel.swift:1777-1783 \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":"Controllers/ViewController\u002BData.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de2edf04e6f8b6b91feca0cabc0ea0a395d168e617839479b6a97b7cd1b7405"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Views/EditTextView.swift:773-793 | Views/EditTextView.swift:795-816 \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":"Views/EditTextView.swift"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"423abc056fa0929ad418d37e9460a184089d5ef7d0253f345b727ec0ce24ce4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Views/SidebarProjectView.swift:498-515 | Views/SidebarProjectView.swift:525-546 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/SidebarProjectView.swift"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f988276c2228b6a642c7b7136a63fb40037aae20cd67811cbc5fe8b7dbb53c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Controllers/ViewController\u002BEditor.swift:590-616 | Controllers/ViewController\u002BEditor.swift:746-785 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6e14f1c5d6f6d96e96067b4361a1c90287d49f2c6ef7a1a7d9b67274f6f38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Helpers/Theme.swift:524-541 | Helpers/Theme.swift:543-561 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/Theme.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed723ac9bab5a2811d7fd1cd1c00b6eb3a5a767b7f0a88e523a4f375ca01ab3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 19\u002B corresponding lines): Extensions/NSFont\u002B.swift:28-46 | Extensions/NSFont\u002B.swift:48-66 | Extensions/NSFont\u002B.swift:68-86 | Extensions/NSFont\u002B.swift:88-106 | Extensions/NSFont\u002B.swift:108-126 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 19 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Extensions/NSFont\u002B.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9b1865b7cbb923335fcc0b5d3c79a73e86bcdbbe00bc83c0f53a5fa29c9c44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Views/SidebarProjectView.swift:1195-1210 | Views/SidebarProjectView.swift:1212-1225 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/SidebarProjectView.swift"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"426183a528db7a74ddd3c5966c37c240833558ec1a4b3ac5b06440bc2da82955"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Views/PrefsControls.swift:339-351 | Views/PrefsControls.swift:558-569 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/PrefsControls.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68981613761b67094aaedc2a95603158ff5d5c5a6ebc2c383dadd155af4f296"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Controllers/AppDelegate.swift:389-399 | Controllers/AppDelegate.swift:404-417 \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":"Controllers/AppDelegate.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5aaa4bc161624c27857fb9355ebcdc3c7127dbd849b281822e53cf76f5beecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Helpers/TextFormatter.swift:187-195 | Helpers/TextFormatter.swift:197-205 \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":"Helpers/TextFormatter.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"84310310f0a3464b0b15703fd9660cfb7cc9e3ae0e1419ec12123806f7a9a001"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Views/NoteCellView.swift:70-78 | Views/SidebarProjectView.swift:645-654 \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":"Views/NoteCellView.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"398ed9e8bfb2bf4897a249d104fd5d87d01075dbfc182deaf1a18b5fba80eb21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Controllers/AppDelegate.swift:301-316 | Controllers/GeneralPrefsViewController.swift:197-210 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/AppDelegate.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6d51b85f51e5404838adfa5ca165f339eb71cfddbd89e4b88c4f0c45e69eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Business/Storage.swift:1378-1382 | Business/Storage.swift:1510-1513 \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":"Business/Storage.swift"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"586832e186c73e882015feae249000465eda05e26f7e434ae4f62916d6a39ed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Extensions/String\u002B.swift:165-172 | Helpers/TextFormatter.swift:404-409 \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":"Extensions/String\u002B.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfbb9137e099d98f7dfff4aa1acf0df869a7be5efb670c0362b443e8d39f99f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Views/SidebarCellView.swift:24-38 | Views/SidebarCellView.swift:40-56 \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":"Views/SidebarCellView.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"94751119d4eef710fe128f6c2a3057cbc09432cb90543b2712058eabdd857602"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Business/PreviewMedia.swift:186-191 | Business/PreviewMedia.swift:222-227 \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":"Business/PreviewMedia.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f0a1d0a74ca2653cc3a72959fa109b24484aae198f2fe9dbbda4c2355c4770"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Controllers/ViewController\u002BExport.swift:42-49 | Shell/ShellWindowController.swift:1463-1470 \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":"Controllers/ViewController\u002BExport.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47ac80014b693d8e726abfa4cb909319aa21e642377f43a7cb555a5dd5626b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Controllers/AppDelegate\u002BURLRoutes.swift:116-129 | Controllers/AppDelegate\u002BURLRoutes.swift:238-251 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/AppDelegate\u002BURLRoutes.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b2d3c1a655d79f8717d7d5b161c0d11eecc9d502b54e1c03602b89ae2eeb45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/MiaoYanCore/Sources/MiaoYanCore/Emphasis.swift:51-55 | Packages/MiaoYanCore/Sources/MiaoYanCore/NotePreview.swift:149-152 \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":"Packages/MiaoYanCore/Sources/MiaoYanCore/Emphasis.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3b7b5be1fdb043486203be4698b98194149fa0fc6fabcc4a67b0216f158be7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Views/Toast.swift:513-517 | Views/Toast.swift:519-523 \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":"Views/Toast.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5dc14dd95ff006d7665823ad972ff2673a8c36d8eac071c99b77e08c8fa609"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Helpers/HtmlToMarkdown.swift:19-23 | Packages/MiaoYanCore/Sources/MiaoYanCore/NotePreview.swift:142-146 | Packages/MiaoYanCore/Sources/MiaoYanCore/NotePreview.swift:169-173 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/HtmlToMarkdown.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9acbc2268e2006213dd6df1178de6bb138c54f45d6e0da9dd8acc811d6ff66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Helpers/TypographyCleaner.swift:570-578 | Packages/MiaoYanCore/Sources/MiaoYanCore/NoteText.swift:109-116 \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":"Helpers/TypographyCleaner.swift"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"0533b33fde619764d7e18dc72610ae62759690bd7490754f718af7f9243b2e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Shell/ShellModel.swift:1549-1553 | Views/SearchTextField.swift:278-282 \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":"Shell/ShellModel.swift"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b1b406c7a4152be85a1a48352c81817ee8e05a69a0162cb7486323bb9e0bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Views/EditTextView.swift:1777-1786 | Views/MPreviewView.swift:318-324 \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":"Views/EditTextView.swift"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"339fd4586625eaac7618a102f3b15550a1b19135c6e896241a4ee8fff5ebe735"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Views/EditorSplitView.swift:11-15 | Views/SidebarSplitView.swift:11-15 \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":"Views/EditorSplitView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5e0c6009a272cae1ed35b292d47ef58c7a47e13d95d3d4a7e1f6588c701a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Controllers/EditorPrefsViewController.swift:113-117 | Controllers/GeneralPrefsViewController.swift:212-218 \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":"Controllers/EditorPrefsViewController.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd02255ddc9ea92b444791c99dd6d3423aed2f4288a7c0b4f7f3df6ca2e6ad86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Controllers/EditorPrefsViewController.swift:15-18 | Controllers/GeneralPrefsViewController.swift:22-25 \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":"Controllers/EditorPrefsViewController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a1e8385e9230f9e60d23cf3db87baef05b958cff413aa2c7ccf0550b1d805d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Business/Sidebar.swift:77-87 | Business/SidebarItem.swift:32-42 \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":"Business/Sidebar.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"342096bcb42e68762d053a45f1522b693c413262cc3c39cdd21db5c49a2bb6ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201329 lines \u00D7 2): Controllers/ViewController\u002BAction.swift:513-541 | Shell/ShellModel.swift:924-948 \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 \u0060Controllers/ViewController\u002BAction.swift:513\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9b4cd4ebb27867f78477ce98d10b005c6deb34cb007741c1caf4a77e314db6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Views/EditTextView.swift:654-671 | Views/EditTextView.swift:679-697 \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 \u0060Views/EditTextView.swift:679\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/EditTextView.swift"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b08283cda324fafed5f00b2f57b3e16d73f4ba3e789fd27a150cf13112799f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201319 lines \u00D7 2): Views/EditTextView.swift:1549-1559 | Views/MPreviewView\u002BSearch.swift:112-130 \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":"Views/EditTextView.swift"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"665ee42ffe0f27aaaaa5ce605cabaa84c15e663c2c1fc0e5d7bfc78babb389cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Business/Storage.swift:845-862 | Business/Storage.swift:927-943 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Business/Storage.swift:865\u0060 calls \u0060load\u0060 and \u0060Business/Storage.swift:945\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":"Business/Storage.swift"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba58f5b996ba24b938523de478f0d5851fb4e8e8bb9fa164880cfa3d3e10732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Controllers/VersionHistoryViewController.swift:185-201 | Controllers/VersionHistoryViewController.swift:207-224 \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 \u0060Controllers/VersionHistoryViewController.swift:207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/VersionHistoryViewController.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"00715a02348bd83623a81ed349de7518bdf4126805614866560eb9c06bff4ac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Views/EditTextView.swift:1856-1872 | Views/MPreviewView.swift:399-414 \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 \u0060Views/EditTextView.swift:1856\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, \u0060Views/EditTextView.swift:1874\u0060 calls \u0060showSearchBar\u0060 and \u0060Views/MPreviewView.swift:415\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":"Views/EditTextView.swift"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bffef2842b3dca3a28070d3e519bfe3a5fb30a64a7e5f3b730330323f6351c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Controllers/ViewController\u002BAction.swift:442-455 | Controllers/ViewController\u002BAction.swift:992-1005 \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 \u0060Controllers/ViewController\u002BAction.swift:442\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":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"778f48e407b9a791401cc70e96bbc646307afb90b9362b808440bdc4f302ad4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201313 lines \u00D7 14): Views/PreviewSearchBar.swift:458-470 | Views/PreviewSearchBar.swift:474-476 | Views/PreviewSearchBar.swift:480-482 | Views/PreviewSearchBar.swift:486-488 | Views/PreviewSearchBar.swift:498-500 | Views/PreviewSearchBar.swift:519-531 | Views/PreviewSearchBar.swift:535-537 | Views/PreviewSearchBar.swift:540-542 | Views/PreviewSearchBar.swift:546-548 | Views/PreviewSearchBar.swift:552-554 | Views/PreviewSearchBar.swift:558-560 | Views/PreviewSearchBar.swift:563-565 | Views/PreviewSearchBar.swift:569-571 | Views/PreviewSearchBar.swift:581-583 \u2014 all 14 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 \u0060Views/PreviewSearchBar.swift:458\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, \u0060Views/PreviewSearchBar.swift:471\u0060 calls \u0060NSPoint\u0060 and \u0060Views/PreviewSearchBar.swift:538\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/PreviewSearchBar.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bd5dde2b9212b253f1b723ab47dcdcb64da6506d2b0af50ca8921c0bf4cbcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Views/PreviewSearchBar.swift:501-516 | Views/PreviewSearchBar.swift:584-599 \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 \u0060Views/PreviewSearchBar.swift:501\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/PreviewSearchBar.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e50dd5f2ed60a00df925250cd9d1862ef6a329fa6e17b5615d8830768454638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Controllers/ViewController\u002BEditor.swift:303-314 | Controllers/ViewController\u002BEditor.swift:404-415 \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":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5562db0fd7f61172cfba26a8203e775a4a6d9dac894c8f6395dc6233cd076ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Controllers/ViewController.swift:251-262 | Controllers/ViewController.swift:264-275 \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 \u0060Controllers/ViewController.swift:251\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57419bdc97c611855ab25b64ce88de9889843f8c904dbadc92a93293431ddd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Controllers/ViewController.swift:282-293 | Controllers/ViewController.swift:295-306 \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 \u0060Controllers/ViewController.swift:282\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a175f6f66f6b395e28d7ef3d4080deb6b26252d8978d561c36ba15e9d60c642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Business/Storage.swift:1392-1402 | Shell/ShellModel.swift:477-485 \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 \u0060Business/Storage.swift:1392\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":"Business/Storage.swift"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c4198869f4477b093d244c1e45e440b6f5ea9bb241446ff7f6a718098fdfb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Helpers/NotesTextProcessor.swift:849-859 | Helpers/NotesTextProcessor.swift:880-890 \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 \u0060Helpers/NotesTextProcessor.swift:849\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":"Helpers/NotesTextProcessor.swift"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9be3a070cb76eed84af0d6d730a7f980408209d5c7053c97da1b4ab6ceb0c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Controllers/AppDelegate\u002BURLRoutes.swift:210-219 | Controllers/AppDelegate\u002BURLRoutes.swift:285-294 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Controllers/AppDelegate\u002BURLRoutes.swift:296\u0060 calls \u0060appending\u0060 and \u0060Controllers/AppDelegate\u002BURLRoutes.swift:220\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":"Controllers/AppDelegate\u002BURLRoutes.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1953f0e7139fa71dfaafa17f6d7cd6cc78c4ea3036a47a4f4d56e0dbcc6150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Controllers/ViewController\u002BEditor.swift:316-325 | Controllers/ViewController\u002BEditor.swift:392-400 \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 \u0060Controllers/ViewController\u002BEditor.swift:316\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":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f6f43ac038f5cd68c516e62a6ded62a05d31e1085cd144788f57ccf882088f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Business/HtmlManager.swift:571-579 | Business/HtmlManager.swift:585-593 \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":"Business/HtmlManager.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fb1c0f7afc04fe727a7cbb72db130ef344daf7de8dba676e96a9ebd748990a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Business/HtmlManager.swift:614-621 | Business/HtmlManager.swift:624-632 \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 \u0060Business/HtmlManager.swift:624\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":"Business/HtmlManager.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"042648238ef413b8ddde6016bc4764f351dd06b85ddc22748289b37f71e936cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Helpers/ClipboardManager.swift:125-133 | Helpers/ClipboardManager.swift:212-220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/ClipboardManager.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a12160ee0a7dd5ea80fbbbaf10f849525ed2795d3b455803b70750e3d0ef058"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): Shell/ShellModel\u002BFolders.swift:61-67 | Views/SidebarProjectView.swift:1007-1015 \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 \u0060Shell/ShellModel\u002BFolders.swift:61\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":"Shell/ShellModel\u002BFolders.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"533571e1400122c036423badc807a15a9de35b9e93f7a5559160adc8e050831d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Helpers/TextFormatter.swift:275-282 | Helpers/TextFormatter.swift:284-291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/TextFormatter.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"9242701be9bc69c611c1027f03bb4a9ed70f6d00bafc2d1dec90106f9fb5fd59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Controllers/VersionHistoryViewController.swift:572-578 | Views/SidebarTableRowView.swift:38-44 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/VersionHistoryViewController.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1caa72594d8f7c7f470f37638f84d0f28992bd37534410faa1c6dff9b96cef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Helpers/CustomTextStorage.swift:60-66 | Helpers/CustomTextStorage.swift:80-86 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Helpers/CustomTextStorage.swift:88\u0060 calls \u0060NSRange\u0060, \u0060addAttribute\u0060 and \u0060Helpers/CustomTextStorage.swift:68\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":"Helpers/CustomTextStorage.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7287fe01ab304fb2ee0ecc5eec0ef84028ef0b80285111bd2409ccde861c45d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Helpers/MarkdownRuleHighlighter.swift:272-278 | Helpers/MarkdownRuleHighlighter.swift:405-411 \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 \u0060Helpers/MarkdownRuleHighlighter.swift:272\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":"Helpers/MarkdownRuleHighlighter.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc802abb919911840ebbec14f28fecdc320ff1ccdebca5f8e6b27165367d036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Helpers/TextFormatter.swift:50-55 | Helpers/TextFormatter.swift:58-63 | Helpers/TextFormatter.swift:66-71 | Helpers/TextFormatter.swift:74-79 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"Helpers/TextFormatter.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b431a78b5b1b35b4006aacdd93c3a53b71d421142591f1d23c9476d5ebecdcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Controllers/VersionHistoryViewController.swift:338-343 | Views/Toast.swift:178-183 \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":"Controllers/VersionHistoryViewController.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a399449225b5489493a619c2f7eaaf9fdc973d152dbb1048f2b8e8bddad359d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Controllers/ViewController\u002BAction.swift:562-571 | Shell/ShellModel.swift:1438-1443 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b53845cdbcf96dd70f0ee22632945ca08f3f6d98a0a61c507614e4af361e224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Helpers/ImageLinkParser.swift:54-59 | Helpers/ImageLinkParser.swift:126-131 \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 \u0060Helpers/ImageLinkParser.swift:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/ImageLinkParser.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d636687bd0c2a3d0f77b993a4b773afd5479bdb4c4a36d238ffb15e280ad200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Business/HtmlManager.swift:540-545 | Business/HtmlManager.swift:600-605 \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":"Business/HtmlManager.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cf55c00403e11fce81ccf42ca94100b0971c29cfcf1dbb9674cdabef07939d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Controllers/ViewController\u002BAction.swift:209-215 | Controllers/ViewController\u002BAction.swift:224-230 \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 \u0060Controllers/ViewController\u002BAction.swift:209\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff953beaa8cdd8a9f114ce421f0ea39acc0b69fead6dd28fc36517a38df0925"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Business/HtmlManager.swift:906-910 | Business/Markdown.swift:423-427 | Packages/MiaoYanCore/Sources/MiaoYanCore/Emphasis.swift:20-24 \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 \u0060Business/HtmlManager.swift:906\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":"Business/HtmlManager.swift"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6acbf3a0e82ad1ecb506ad3f360779d52f018ad264cca28abc905659b279f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Business/Storage.swift:112-116 | Shell/ShellModel.swift:462-466 \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 \u0060Business/Storage.swift:112\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":"Business/Storage.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8a2f909f83b1d04828168d88c0caf428b874e70eb93590b7418e0a246dbfaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Helpers/CustomTextStorage.swift:204-208 | Helpers/CustomTextStorage.swift:217-221 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/CustomTextStorage.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e8e8cab0a2a650c62b71b85cfa7d81aa7a6e439ff58135bac731af2747cd62"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: MiaoYanCore: MiaoYanCore: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7cb484a8bee851e62622f05e9c764a3671e911f1dc39db9c6912461b1aedbc7c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ViewController (LCOM4 19): ViewController\u0027s methods fall into 19 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 19 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":"Controllers/ViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bc446f73752c828521efd3e3ecc54f8768aeffa50a46e062b8b926aaea0e56"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditTextView (LCOM4 17): EditTextView\u0027s methods fall into 17 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 17 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":"Views/EditTextView.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ffbf8b8ab6fdcba6223bb19930762b17599fe7fcfa9f9cf0366a07a220c8e6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SidebarProjectView (LCOM4 16): SidebarProjectView\u0027s methods fall into 16 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 16 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":"Views/SidebarProjectView.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ac4f916674e7d5cc570bb014a6c6956eab7cf4165ef1e782eee2a0baf401a8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NotesTableView (LCOM4 12): NotesTableView\u0027s methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/NotesTableView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"404768805cca10ffde4a6c57e829f73338a0b4a538d709200924cc2a06d326ae"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 11): String\u0027s methods fall into 11 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 11 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":"Business/Markdown.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f207ca52e6ee246737617d9355aa5b87e6971ce5a34a2cb7478e904aa0cafd6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppDelegate (LCOM4 10): AppDelegate\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":"Controllers/AppDelegate.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"86374af48c6be08f8c8f8c68ab94003391288575eead8b3bda26cbae6fc10017"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MPreviewView (LCOM4 8): MPreviewView\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":"Views/MPreviewView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"802798eeb87696ad6b9824626bdae061701d4d5991672c07523c4c2b1726d741"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainWindowController (LCOM4 7): MainWindowController\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":"Controllers/MainWindowController.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"3afb138205cfae8aef2642f0e4e563af4dce6849968436c41a8104121f80b718"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SearchTextField (LCOM4 7): SearchTextField\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":"Views/SearchTextField.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5df12ab5f7c6614833cd6cb55bbf2e53f38671416b384a71a6ba8ca25ce4cc9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorMenuManager (LCOM4 6): EditorMenuManager\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helpers/EditorMenuManager.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"668c2b646eaa22f74c78ee787bd3ae52fab752a40b57c6c1bef9d932f35d533e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorSplitView (LCOM4 6): EditorSplitView\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/EditorSplitView.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"c076050a7d33f1945ed693786be13f3006c55607876d7ecaea55ae8a895ee6cb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TitleTextField (LCOM4 6): TitleTextField\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Views/TitleTextField.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe8f5d8602c06b18d2abbb04c2ba970794094b5ff7abaa9396d3b543d143347"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Sidebar (LCOM4 5): Sidebar\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":"Business/Sidebar.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca7e09e482143de6a06b25017d5942f7a06ec7e3e2e39360bbf2ee3dc9194c1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ShellWindowController (LCOM4 5): ShellWindowController\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":"Shell/ShellWindowController.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce0132392a5c082b0b96262d60015b5bf43c0185eb8474b508d9b0adfc77197"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OutlineHeaderView (LCOM4 5): OutlineHeaderView\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":"Views/OutlineHeaderView.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"511225f3383da04e14760f8ceb0e9df57654bee75092e6862768d9128f208955"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PrefsDropdown (LCOM4 5): PrefsDropdown\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":"Views/PrefsControls.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffe962319fc0430099661f6539e5e26e30b267fc6356aa733a9c956fb6e1c7c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SidebarCellView (LCOM4 5): SidebarCellView\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":"Views/SidebarCellView.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f42895eeca28efce3c37cdec69ddfc037c22d03869683f72c4b9d3a85d9bcf"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: URL (LCOM4 5): URL\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":"Extensions/URL\u002B.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"e977aa59c9e173e86cd0d3805c9c8ffc1e0bcb39475d50a06f3368da2aa9bf63"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Project (LCOM4 4): Project\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":"Business/Project.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"068d946b79922a198727684b7427edb0e035f657a0f31578be21851325a3c4e7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BasePrefsViewController (LCOM4 4): BasePrefsViewController\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":"Controllers/BasePrefsViewController.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28b2ce2aa61130d2e2a9d4cf19942562c94a9f764c985531774ee7ade33e9bb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorPrefsViewController (LCOM4 4): EditorPrefsViewController\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":"Controllers/EditorPrefsViewController.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"d845789bbd8a9bfd1af88d91180ebef4411bdf79593124e500b4fe3f7703cbd0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PrefsWindowController (LCOM4 4): PrefsWindowController\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":"Controllers/PrefsWindowController.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bea08d00774cfb2fa70ad1f2b5e3460b4f6fea7d1619d28948800600fd791e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VersionHistoryViewController (LCOM4 4): VersionHistoryViewController\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":"Controllers/VersionHistoryViewController.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"c465e70b2ea76f944ffdb0f9e2fef274939c126b231011b354e2f5138af2fbcd"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ShellModel (LCOM4 4): ShellModel\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":"Shell/ShellModel.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fe9c71a1fdb0e7f1f82ee1feaf60520acc3a576fd952e2e45d3a3a3e253d89"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFoldersAndImagesStillGoToTheSystemTrash: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MiaoYanTests/NoteSaveDebounceTests.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17c747edd09de8509b9eb69f3324de5f73b5147e0fcc29564aa07a4ee4d8c17"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSaveInAWheelGroupFolderSucceedsAndKeepsTheCreationDate: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MiaoYanTests/NoteSaveDebounceTests.swift"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4326c3987802ad437540d6e78cc4764d114c5cf0e70c839d19e484a70cef2e8"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTheDefaultFaceWaitingToBeInstalledSelectsItsRow: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MiaoYanTests/PrefsWindowControllerTests.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9c3be3075ca3b22f87dce4a8b7d2d25bfcfca180bc642ac0f284b5e5727c38"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFirstShellLaunchTakesTheStoryboardColumns: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MiaoYanTests/PrefsWindowControllerTests.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab18f1d0d0956b980a81814534cc6037dd9cf76e05f947d3cce1f40a47fb438"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStoryboardColumnsAreAdoptedOnlyOnce: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MiaoYanTests/PrefsWindowControllerTests.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da071c2be07ca3aa28ac4c671929d6f8c039d022bfc8f7dcc85d7c91ee0048a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTitleBarDoubleClickFollowsTheSystemSetting: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MiaoYanTests/PrefsWindowControllerTests.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a2a2f314fab64fddf5c4dec6eb3f6652541dec7252c075833c24452b6bc6cd"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testHeaderEmptySpaceReachesTheTitleBarArea: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MiaoYanTests/PrefsWindowControllerTests.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e277c1a616d05cca2b5ae71ccb62498be696472838214b63bd615698bb26236b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testBoldFaceDetection: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MiaoYanTests/PrintExportScriptTests.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"4121dfcd921d22191fa9e848e8eb5c371260d231c829c481b88270081527bdc9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAFolderNameIsNotCutInASerifFace: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MiaoYanTests/SidebarProjectViewTests.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"73726e0874c8ece93de9d1c266c6c7c015331c7b5ab02b91b6f1a343f77d611b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFolderLookupFollowsTheDiskPathOfAFileEvent: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MiaoYanTests/StorageRelocationTests.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d893dc5291704522ce458b019ccfc060c8fcdd64f370c87d21e52b1b4db0c5b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Controllers/ViewController\u002BAction.swift: Controllers/ViewController\u002BAction.swift changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 119 in ViewController.handleKeyDown at line 1290. 21 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Controllers/ViewController\u002BAction.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":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77c09d2d055ef019fb0104160166f3360dbe5c267fae28b6628f809aa1064af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Shell/ShellWindowController.swift: Shell/ShellWindowController.swift changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 93 in ShellWindowController.handleKeyDown at line 667. 17 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Shell/ShellWindowController.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":"Shell/ShellWindowController.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f588618312b0140884012ecf5980c2c0b769a9822775c9b9e7521262b1744ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Views/EditTextView.swift: Views/EditTextView.swift changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in EditTextView.applyNoteContent at line 571. 23 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Views/EditTextView.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":"Views/EditTextView.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc4668460f8a125880a63a61ace8313d8cbf2fcff77b40a55aa19169a2db834"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Shell/ShellRootView.swift: Shell/ShellRootView.swift changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in ShellSidebarRow.body at line 232. 20 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Shell/ShellRootView.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":"Shell/ShellRootView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acea006f5493a0471556e0c623807df87ddda8e4a762628614154af00ed8f38"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Controllers/ViewController.swift: Controllers/ViewController.swift changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in ViewController.validateMenuItem at line 737. 20 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Controllers/ViewController.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":"Controllers/ViewController.swift"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd68418796410c58c0e10d13b7fe497bbcda421201008eef9d57279ddd42afa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Helpers/MarkdownRuleHighlighter.swift: Helpers/MarkdownRuleHighlighter.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 81 in MarkdownRuleHighlighter.highlightMarkdown at line 80. 3 of those changes were fix/bug commits, and the other 6 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Helpers/MarkdownRuleHighlighter.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":"Helpers/MarkdownRuleHighlighter.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5028e40df67b5f800eb53881125116bf8228a6db4009b244b0e159b12caf87"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Business/HtmlManager.swift: Business/HtmlManager.swift changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in HtmlManager.processImages at line 523. 21 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Business/HtmlManager.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":"Business/HtmlManager.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6dfd5984168ce019e7307f730981350c9b442f57437396cae59f70130f77ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Views/MPreviewView.swift: Views/MPreviewView.swift changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in MPreviewView.updateContent at line 960. 16 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Views/MPreviewView.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":"Views/MPreviewView.swift"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ddc56793a6cf086332f0902715e01e9dc74bafa075bb4acb487074f8b0e583"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Business/Storage.swift: Business/Storage.swift changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Storage.loadMissingNotes at line 881. 16 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Business/Storage.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":"Business/Storage.swift"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"18165e8dc3f93e9b30e473f208c631313c9a530cdb3b8ff7514081ebefa8884d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Controllers/ViewController\u002BEditor.swift: Controllers/ViewController\u002BEditor.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ViewController.refillEditArea at line 1364. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Controllers/ViewController\u002BEditor.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":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eff78a55933b3faffb0ef73a1671351626c05ace970511370ca8aad3137c7d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Controllers/TypographyPrefsViewController.swift: Controllers/TypographyPrefsViewController.swift changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in TypographyPrefsViewController.setupFontPopUp at line 53. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Controllers/TypographyPrefsViewController.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":"Controllers/TypographyPrefsViewController.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e64a25542571b6894d297404f9e72aa9507a315c07fd3f3c10da077d426ab8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Views/SidebarProjectView.swift: Views/SidebarProjectView.swift changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in SidebarProjectView.deleteMenu at line 1037. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Views/SidebarProjectView.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":"Views/SidebarProjectView.swift"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00c79d2d4567bfc4578e65c0648eda8e7e4a8a8de0cb22e722b222543699341"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Controllers/AppDelegate.swift: Controllers/AppDelegate.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AppDelegate.addGlobalKeyboardMonitor at line 518. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Controllers/AppDelegate.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":"Controllers/AppDelegate.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f4e75a81043244c64cfd06aa02bf76c0b70e4a4978aebc4ea8c1aee4f8fe21"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Views/NotesTableView.swift: Views/NotesTableView.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in NotesTableView.handleSelectionChange at line 232. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Views/NotesTableView.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":"Views/NotesTableView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4ed89c36117eb509ecc49727599223b6e2df1339d941dd51f2fd5f10bd6594"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Shell/ShellEditor.swift: Shell/ShellEditor.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ShellEditorController.format at line 465. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Shell/ShellEditor.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":"Shell/ShellEditor.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7aea315d06db313f639a21f3190964ea43aa6eb09adfe27371a39a78565ff55"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Helpers/EditorMenuManager.swift: Helpers/EditorMenuManager.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in EditorMenuManager.performFormattingAction at line 26. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Helpers/EditorMenuManager.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":"Helpers/EditorMenuManager.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c7998225819883925796f12b85437fbe6c9ab204ffa80449a9145b87da5045"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Shell/ShellModel.swift: Shell/ShellModel.swift changed 41 times in last 90 days and 30 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is ShellModel.setPresenting at line 717), 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(trash): Undo never moves back a different note, and says when it fails\u201D; \u201Cfix(i18n): plural counts, real word counts, version dates in the app language\u201D; \u201Cfix(save): report a failing write once, and say so on Command-S\u201D; \u201Cfix(notes): a damaged note still moves and duplicates, restore stays off\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Shell/ShellModel.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":"Shell/ShellModel.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07b9154b52dd4f82db2cc1436e895d4b2df2c28a41f0f842d39c6554fbe7d39"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Business/Note.swift: Business/Note.swift changed 31 times in last 90 days and 21 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is Note.executeSave at line 653), 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(save): report a failing write once, and say so on Command-S\u201D; \u201Cfix(notes): say a damaged note\u0027s encoding is unclear, not that it is invalid\u201D; \u201Cfix(notes): refuse a read-only note at save, before its buffer changes\u201D; \u201Cfix(notes): a short damaged note stays read-only; read-only notes do not move\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Business/Note.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":"Business/Note.swift"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"9981d9d9cdd9a7ee2113db88fde12e22f77c19e5cb8573c0fc6f2b3aa6b1d8ed"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Helpers/PdfExportController.swift: Helpers/PdfExportController.swift changed 12 times in last 90 days and 11 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 PdfExportController.handlePrintCompletion at line 346), 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(preview): load local images through the app in the sandboxed build\u201D; \u201Cfix(export): keep the offscreen PDF window light whatever the app appearance\u201D; \u201Cfix(export): draw PlantUML in the light theme when a dark preview prints\u201D; \u201Cfix(export): a PDF from a dark preview uses the light theme\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Helpers/PdfExportController.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":"Helpers/PdfExportController.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"d595586cca406b4e3df4fcd45e2e5b99b0d59af8501f3cf29668d4bc1e7f829e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Extensions/MPreviewView\u002BExport.swift: Extensions/MPreviewView\u002BExport.swift changed 16 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is MPreviewView.buildPdfOutline at line 996), 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(export): print PDFs with their styles and every image again\u201D; \u201Cfix(shell): match the storyboard window\u0027s title, reopening and export guards\u201D; \u201Cfix(export): show the pdf saved toast once, after the file is written\u201D; \u201Cfix: unstick exports after a cancelled save panel; keep unreadable notes read-only\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Extensions/MPreviewView\u002BExport.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":"Extensions/MPreviewView\u002BExport.swift"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66b2a4a001da50165b2d3c1fd822ee8781fd478e9b307fd2f55b065b9aab3da"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Helpers/FileSystemEventManager.swift: Helpers/FileSystemEventManager.swift changed 13 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is FileSystemEventManager.handleFileSystemEvent at line 51), 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(trash): the sidebar drops the Trash row once another device empties it\u201D; \u201Cfix(preview): keep the reader\u0027s place when the open note changes on disk\u201D; \u201Cfix(watcher): list notes deleted or renamed outside MiaoYan correctly\u201D; \u201Cfix(copy): shorter toasts, dialogs and settings rows\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Helpers/FileSystemEventManager.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":"Helpers/FileSystemEventManager.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe87d2371ce6ed1eb46753593829dcc99df64e2fc7954a9d20870fd414847291"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Helpers/UserDefaultsManagement.swift: Helpers/UserDefaultsManagement.swift changed 16 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is UserDefaultsManagement.migrateFontDefaultsIfNeeded at line 344), 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(ui): warm Ink greys, 12pt list dates, one opaque floating layer style\u201D; \u201Cfix(copy): say Trash where things go to the Trash\u201D; \u201Cfix(sidebar): reopen the folder a V4.5.0 install left\u201D; \u201Cfix: stop a missing notes folder flooding the diagnostics log\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Helpers/UserDefaultsManagement.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":"Helpers/UserDefaultsManagement.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fce7c73cd3eccc3b98cc382e4f347a032b73fda6df18d4227b81393526abbad"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Business/FontCatalog.swift: Business/FontCatalog.swift changed 13 times in last 90 days and 9 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 FontCatalog.hasBoldFace at line 140), 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(export): PDF headings stop printing blurred and heavy in one-weight faces\u201D; \u201Cfix(shell): keep the editor in step with the storyboard editor\u201D; \u201Cfix: make TsangerJinKai02 the default face again without bundling it\u201D; \u201Cfix: follow the text font for code and restore the preview weight\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Business/FontCatalog.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":"Business/FontCatalog.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6e1e110db6783162716977febe29b1fa7828fc1fd4bdf7c1186aec2fb30a38"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Helpers/ClipboardManager.swift: Helpers/ClipboardManager.swift changed 10 times in last 90 days and 9 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 ClipboardManager.replacePlaceholderWithURL at line 540), 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(editor): accept photos dragged from Photos, Mail and browsers\u201D; \u201Cfix(trash): deleted notes go to the library\u0027s own Trash folder\u201D; \u201Cfix(editor): a note dragged from the list is not imported as a file\u201D; \u201Cfix(editor): files dropped from Finder are copied and linked like a paste\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Helpers/ClipboardManager.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":"Helpers/ClipboardManager.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb64ef895aa6184132c859a8b0ce41e775187fb391ff0e913c5ff13a2b6515a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Helpers/TextFormatter.swift: Helpers/TextFormatter.swift changed 8 times in last 90 days and 7 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 TextFormatter.newLine at line 252), 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: Return on the Mac runs the iPhone\u0027s list rule from MiaoYanCore\u201D; \u201Cfix: tab on a numbered item from 10 up keeps the caret on its line\u201D; \u201Cfix(editor): link caret, CRLF list continuation, tab selection length\u201D; \u201Cfix(editor): command-t flips only the task box\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Helpers/TextFormatter.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":"Helpers/TextFormatter.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd534f9e7b3c8f7645288eaead067f1f5abf9a5b7d3698e565b6d18709a5e4f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Shell/ShellModel\u002BFolders.swift: Shell/ShellModel\u002BFolders.swift changed 8 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is ShellModel.confirmDeleteFolder at line 137), 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(trash): deleted notes go to the library\u0027s own Trash folder\u201D; \u201Cfix(storage): write a folder\u0027s waiting edits before it moves to the Trash\u201D; \u201Cfix(copy): say Trash where things go to the Trash\u201D; \u201Cfix(shell): match the storyboard window\u0027s title, reopening and export guards\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Shell/ShellModel\u002BFolders.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":"Shell/ShellModel\u002BFolders.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc6758f49fa398c1c9fa3c84282e34212ee371f72515b53648dc2ed16ceb7ca"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Packages/MiaoYanCore/Sources/MiaoYanCore/MarkdownEditing.swift: Packages/MiaoYanCore/Sources/MiaoYanCore/MarkdownEditing.swift changed 6 times in last 90 days and 5 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 ListContinuation.edit at line 103), 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: Return on the Mac runs the iPhone\u0027s list rule from MiaoYanCore\u201D; \u201Cfix(core): Return on a line with U\u002B2028 no longer deletes the line\u201D; \u201Cfix(core): toggle task on a quote line keeps the quote\u201D; \u201Cfix(core): indent under an ordered item nests at its content column\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Packages/MiaoYanCore/Sources/MiaoYanCore/MarkdownEditing.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":"Packages/MiaoYanCore/Sources/MiaoYanCore/MarkdownEditing.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40a6cddb9c2330be1cbc8c9f1602ef287aed48ff1ff393cce0db24609d5ee27"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Packages/MiaoYanCore/Sources/MiaoYanCore/NoteText.swift: Packages/MiaoYanCore/Sources/MiaoYanCore/NoteText.swift changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is NoteText.decode at line 21), 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(notes): a short damaged note stays read-only; read-only notes do not move\u201D; \u201Cfix(core): damaged UTF-8 needs four good sequences per bad one\u201D; \u201Cfix(notes): a UTF-8 note with invalid bytes opens read-only\u201D; \u201Cfix(core): read mostly English GBK, Big5 and EUC-KR notes as CJK\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Packages/MiaoYanCore/Sources/MiaoYanCore/NoteText.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":"Packages/MiaoYanCore/Sources/MiaoYanCore/NoteText.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c666f6ab6c376a037f710db4c5f5b908cd07ffd1a07d0b8b48d5ecf266a7c986"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Controllers/GeneralPrefsViewController.swift: Controllers/GeneralPrefsViewController.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 8 (its worst body is GeneralPrefsViewController.appearanceChanged at line 109), 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(copy): shorter toasts, dialogs and settings rows\u201D; \u201Cfix(settings): save the folder bookmark first and show focus rings\u201D; \u201Cfix(shell): apply interface font and editor mode changes from Settings live\u201D; \u201Cfix: tidy the settings window layout\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Controllers/GeneralPrefsViewController.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":"Controllers/GeneralPrefsViewController.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a63780abe0c039a078dc974f9253bd4c09146574b28225659000e3de515d1d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Packages/MiaoYanCore/Sources/MiaoYanCore/NotePreview.swift: Packages/MiaoYanCore/Sources/MiaoYanCore/NotePreview.swift changed 5 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 14 (its worst body is NotePreview.stripNoise at line 66), 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(core): drop footnote markers from previews\u201D; \u201Cfix(core): show card previews for GBK, Big5 and UTF-16 notes\u201D; \u201Cfix: strip only YAML frontmatter, so a deck opening with --- keeps its first slide\u201D; \u201Cfix: stop card previews repeating the note\u0027s title\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Packages/MiaoYanCore/Sources/MiaoYanCore/NotePreview.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":"Packages/MiaoYanCore/Sources/MiaoYanCore/NotePreview.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3866c9ca6915d808b5594b04be04f1798932f43f13b67d5ec39cbeededd110c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Controllers/AppDelegate\u002BURLRoutes.swift: Controllers/AppDelegate\u002BURLRoutes.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 11 (its worst body is AppDelegate.application at line 23), 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(shell): match the storyboard window\u0027s title, reopening and export guards\u201D; \u201Cfix: close the data-safety and preview gaps found since 4.5\u201D; \u201Cfix: run a link that launched the app once, goto included\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Controllers/AppDelegate\u002BURLRoutes.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":"Controllers/AppDelegate\u002BURLRoutes.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f82de9d4bf0ffcd4140e5ae7989c0da3aa50c2ac0d6c4c9a05ea14e5f2141a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Views/PreviewSearchBar.swift: Views/PreviewSearchBar.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 8 (its worst body is SearchField.handlePreviewShortcuts at line 21), 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(ui): warm Ink greys, 12pt list dates, one opaque floating layer style\u201D; \u201Cfix: take corner radii from Theme.Metrics instead of literals\u201D; \u201Cfix: keep the search bar readable on a dark panel\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Views/PreviewSearchBar.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":"Views/PreviewSearchBar.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2f11329e3bfc02904b2f8e16a098352d0e012d30cfbd185e13105717d43aa0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Controllers/ViewController\u002BExport.swift: Controllers/ViewController\u002BExport.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 ViewController.exportFile at line 5), 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(copy): shorter toasts, dialogs and settings rows\u201D; \u201Cfix: unstick exports after a cancelled save panel; keep unreadable notes read-only\u201D; \u201Cfix: make HTML export work without a preview and carry its images\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Controllers/ViewController\u002BExport.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":"Controllers/ViewController\u002BExport.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d517ba973740419cee72c5554e3bcfffc72fdc08b2b3f5849c130dabf1d73fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Controllers/EditorPrefsViewController.swift: Controllers/EditorPrefsViewController.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 6 (its worst body is EditorPrefsViewController.uploadServiceChanged at line 125), 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(copy): shorter toasts, dialogs and settings rows\u201D; \u201Cfix(shell): guard text focus and fill the remaining parity gaps\u201D; \u201Cfix: tidy the settings window layout\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Controllers/EditorPrefsViewController.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":"Controllers/EditorPrefsViewController.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"40709ac7a1117154d99ec571fb4372d0ad8f7279142f9e7f961afe0a62ee6075"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Views/SidebarCellView.swift: Views/SidebarCellView.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 6 (its worst body is SidebarCellView.projectName at line 172), 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(sidebar): a folder name in a serif face is no longer cut at the bottom\u201D; \u201Cfix: close the data-safety and preview gaps found since 4.5\u201D; \u201Cfix: move subfolders and their notes along when a folder is renamed\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Views/SidebarCellView.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":"Views/SidebarCellView.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"693b04641fca103b7a5bf61f5b192c6afc003f1914ec07d9bcf46c5ddbfa18d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Views/Toast.swift: Views/Toast.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 8 (its worst body is ToastManager.scheduleFadeOut at line 225), 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(trash): Undo never moves back a different note, and says when it fails\u201D; \u201Cfix(ui): warm Ink greys, 12pt list dates, one opaque floating layer style\u201D; \u201Cfix: drop the emoticon fallback from toasts\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Views/Toast.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":"Views/Toast.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8230eec33ad9eadb0b047f4b92693dfeab1a0013cb7090a93e1ab618dc5adca"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Controllers/VersionHistoryViewController.swift: Controllers/VersionHistoryViewController.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 8 (its worst body is VersionHistoryViewController.restoreAction at line 487), 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(i18n): plural counts, real word counts, version dates in the app language\u201D; \u201Cfix(notes): a damaged note still moves and duplicates, restore stays off\u201D; \u201Cfix(copy): shorter toasts, dialogs and settings rows\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Controllers/VersionHistoryViewController.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":"Controllers/VersionHistoryViewController.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f1323490b3ede373421c851f7c79ad1675fbca861d4b7ac8d2cee13206c3c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Business/NoteVersionManager.swift: Business/NoteVersionManager.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 9 (its worst body is NoteVersionManager.saveVersion at line 35), 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: close the data-safety and preview gaps found since 4.5\u201D; \u201Cfix: stop a missing notes folder flooding the diagnostics log\u201D; \u201Cfix: carry a note\u0027s version history through renames, moves and the Trash\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Business/NoteVersionManager.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":"Business/NoteVersionManager.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c414cb5374ab0b14bfe2de4e3996e74eb7df3dc6a10d1367fd485a4a7f9f020"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Business/FontConfiguration.swift: Business/FontConfiguration.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 3 (its worst body is FontConfiguration.textFont at line 47), 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: make TsangerJinKai02 the default face again without bundling it\u201D; \u201Cfix: follow the text font for code and restore the preview weight\u201D; \u201Cfix: replace bundled commercial font with system typography\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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 23:48:09 \u002B08:00\u0027 --until=\u00272026-11-13 23:48:09 \u002B08:00\u0027 --full-history --no-merges -- Business/FontConfiguration.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":"Business/FontConfiguration.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ef1de38dc05c114dd851a972bdb452ccfd355e17d42e9e5d6cd2cd245d12ca"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: Helpers/TypographyCleaner.swift, Helpers/PdfExportController.swift, Helpers/Diagnostics.swift, Business/CloudSyncManager.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"069153471e9d2e6ccca011171e3d49a62987a943373d9ec1b5d6e94459e2f85c"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (6 single-owned of 96 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 96 of the 126 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: Extensions/ImageAttachment\u002B.swift, Views/TitleTextField.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"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 \u0060MiaoYan.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MiaoYan.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a52de8a934f922163cf4888db8c45aabb102ca4083d44abfde1d7b55ff6a8d"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (36883 LoC, 234 module-visible types across 13 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":"0dbb915274563a1a1c7710b67a8c19d2a107f22fcaf0daddfce999f66be50e9d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"ed65b9c95a4dc53898afcb477735e650c15707ac619af8959b21ca0939b1e0af"},"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":"f3519ccf925af4dbcd14b3786ec69d9749c93b8d8119faf42ed9457ac3bbeaa7"},"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":"d14f53cc9214e5b6289d2370176bcea39877af14cc2346cfb6caa4a453f6e0f7"},"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":"4c6b74d65ac35e258b205f02794b6356db31dd27826c15d47bea58e16fefb7ad"},"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":"c60ddfa9ff4321aee1b89dfac95d9c978236ee4622a6c2eb51d2a9dfd910ec4c"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","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":"24f50e2cb59a0afe30ad4fd5672b2318512a5d404e3bd540afe1b95a4f86afd1"},"properties":{"dependency":{"package":"github.com/sparkle-project/Sparkle","version":"2.9.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"62b929d6da6577526896556e800453033a0786c3b33b82a1b5a827de5e6693c3"},"properties":{"dependency":{"package":"github.com/sparkle-project/Sparkle","version":"2.8.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/DownView.bundle/ppt/plugin/notes/speaker-view.html"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb33977d68709d4d2663791226b4866cdb5af63029835da1bda99c82e7185cc5"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/DownView.bundle/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0d2d40e0ad51419cff18f0fade60cc07e58cafa6b096d0ccecf88aa3c7b34e"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/DownView.bundle/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f129e9db4eafaa344bbfe2e0ba4bb9b2cdf0b06ef3cdc46fe8715d52a806c200"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/DownView.bundle/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc6d708f854554ca9ab94011ddf1f092a293c5d183f86e1f1d2b340871a1464"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/DownView.bundle/ppt.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c463fa6e26c659f30cc922c4420ba50a3169b8160c3e1f3f2aa20536d62db1"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/DownView.bundle/ppt.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c74b15646f194901078c0625d11cbcce8bfaf6c263e5398981e9f96027c5c9"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/DownView.bundle/ppt.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ea46e81fb30baa0aa9cd124c293dfcea22e46427c0d008297ca55386c1507a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/DownView.bundle/ppt/plugin/notes/speaker-view.html"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d0a387a73875235cdbe1a870bb845216be55e4bb0d2805ad05c08b73e1d59a"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .toc-hover-trigger with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/DownView.bundle/index.html"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14c765b81840a5027217063aa0851b1907e00e8b5ed8c8dc9aa592249157071"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060#speaker-layout select: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":"Resources/DownView.bundle/ppt/plugin/notes/speaker-view.html"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"784296b843b2e0ee8e9dca650f6c2a48fc4e530fee1661abcf9a25e7f93b17fa"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.heti summary\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":"Resources/DownView.bundle/css/typography.css"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"1379dc9cbf6da334d7c2602554e748e13a6be42217bfeb0e6267709566a1e7f5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pin-icon\u0060 moves (\u0060transition: transform 0.12s ease-out\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":"Resources/DownView.bundle/css/tocbot.css"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1fd9b8ad9e3b221ddd34c2a136b8ad5371e3105bc0be1d7f2b1e348a902a40"}},{"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":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 1 application file(s) sit at the repository root beside the build and tooling files (\u0060Package.swift\u0060)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P10","level":"note","message":{"text":"No explicit versioning: No explicit version was found for the SwiftPM library declared by \u0060Package.swift\u0060. This check read nothing in Package.swift, which has no version field, and a CHANGELOG/CHANGES/HISTORY/NEWS/RELEASES file with a semver heading, or release tooling (changesets, release-please, semantic-release, goreleaser, cargo-release, bump2version, standard-version, git-cliff) in the library\u0027s directory or at the repository root, or a semver release tag (or a Drupal \u00608.x-1.2\u0060 release tag) in the repository. A version computed where none of those can see is invisible here. A published library needs explicit semantic versioning so consumers can reason about breaking changes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/MiaoYanCore/Package.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a00ff3f839e21dcb012e840f4dff563d896ad6ba31a4880d2e11e8e9066d440"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"Changelog looks stale/thin: The changelog this check read carries 1 versioned entry, against a bar of 3. Counted as either the distinct \u0060x.y.z\u0060 versions it names (a link\u0027s target is not counted) or its version-shaped section headings (\u0060## [1.2.0]\u0060, \u0060## V14.x.x\u0060, \u0060## Updates in 8.0.x\u0060), whichever is the larger \u2014 so a log sectioned by minor series counts its sections, not its individual patch numbers. Entries recorded somewhere this check does not read \u2014 release notes generated at tag time from a generator config it did not recognise, or a log kept outside the repository \u2014 are not counted here, and this row is about what is re-findable in the tree rather than about how often you release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9a74c249fe67853238d9c15085f7f97d31f51bb82455046aa10c2cef82f67b8"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is configured \u2014 defense in depth, even when a reverse proxy could set them. This is reported because \u0060vercel.json\u0060 configures this repository\u0027s static hosting, including its response headers, so the configuration that would carry these headers is in this repository and was read in full. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vercel.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b01ba9a874922e55e7cdb79906b2a02e7936491713eb7ecb21e12684be1ec3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060UserDefaultsManagement.isSingleMode \u0026\u0026 FileManager.default.directoryExists(atUrl: singleModeUrl)\u0060 appears character-identically in 2 files \u2014 Controllers/ViewController\u002BData.swift, Controllers/ViewController.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":"Controllers/ViewController\u002BData.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0c639d4c6f25f57dd86f2ae609aeb2e94bbaec853563946768f8362e97339e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model.isSearchOpen || !model.searchText.isEmpty\u0060 appears character-identically in 2 files \u2014 Shell/ShellRootView.swift, Shell/ShellWindowController.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":"Shell/ShellRootView.swift"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a4861b427c20c8f085331ba3feebd07c0b4c60ddb39017003e077db85b5f4d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path == $0.url.path || path.hasPrefix($0.url.path \u002B \u0022/\u0022)\u0060 appears character-identically in 2 files \u2014 Business/Storage.swift, Shell/ShellModel.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":"Business/Storage.swift"},"region":{"startLine":1624}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6676715ed26b286ffac9ba464af534c0baf442bafb7531ab1429a2596023051"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sessionPresentationMode || sessionMagicPPTMode\u0060 appears character-identically in 3 files \u2014 Controllers/ViewController\u002BEditor.swift, Controllers/ViewController\u002BLayout.swift, Controllers/ViewController.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":"Controllers/ViewController\u002BEditor.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff72be06e065882b17bb040bacc4fd6ed40a112b2d77c18a0045847d94f2dcf1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060type == .All \u0026\u0026 note.project.showInCommon\u0060 appears character-identically in 2 files \u2014 Controllers/ViewController\u002BData.swift, Shell/ShellModel.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":"Controllers/ViewController\u002BData.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c1b8b8c89976efb6c7c56ee0b66e27efed0aa27656b6cbe058f1dbbdb9aa95"}},{"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":"Helpers/ImagesProcessor.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced7291fc32eae2abd273260b2e9a9c8de13509b8d4a6b7c820140351a0b54c6"}},{"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":"Extensions/MPreviewView\u002BExport.swift"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"449b704851c46081c60a28f9fe3d0c9d4b3d51d466c0cf79866199d570a3fd0a"}},{"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":"Controllers/ViewController\u002BAction.swift"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b8be0032f255e4ddf5c1a65e0c6c504d6d61e855666cf02aa58bd510ed30d7"}},{"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":"Business/Note.swift"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"993aeaf2818d39608d69a5932ebe7dfd6249354cd7a630ad109db8357843e749"}},{"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":"Business/PreviewMedia.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4eeac38e432ee0d49cdf85cd114c4d3350711187413f1510439075af1a8305"}},{"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":"Business/Storage.swift"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4d3f64722641a49c9330ad3cef7476ff4c939291ffd3f4f4e002a46d5b1760"}},{"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":"Business/Markdown.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"933f4ce9d81a31c5a8fde1a092a865fd43356767f1f104dd2c43f2e5781c1e75"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"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-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":12,"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."]}]}