{"$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":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"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":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"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":"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":"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"commands.insertNewlineContinueMarkupCommand.\u003Creturned closure\u003E (cyclomatic 44): commands.insertNewlineContinueMarkupCommand.\u003Creturned closure\u003E has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 2 of the 44 points are its own statements and the rest belongs to one function literal inside it that branches (line 106). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-markdown/commands.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a028489bd5676d7a60c12c4c058683320304c497fb730e0d815d9c367e8a0f17"}},{"ruleId":"D1","level":"warning","message":{"text":"index.observeChanges (cyclomatic 32): index.observeChanges has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 137, 197, 239). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/input/index.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0552962a9a93970f0805efcb9c553511932122c3be8be0538a883ef9c5956b4f"}},{"ruleId":"D1","level":"warning","message":{"text":"FuzzyMatcher.match (cyclomatic 31): FuzzyMatcher.match has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/QuickSearchCore/FuzzyMatcher.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb55f6a82bcbe405141c44b5f66904d8dd9f7e3fcca1177e7b1a31ed810c635"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.addLocalMonitorForEvents (cyclomatic 30): EditorViewController.addLocalMonitorForEvents has cyclomatic complexity 30 (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":"MarkEditMac/Sources/Editor/Controllers/EditorViewController\u002BEvents.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"456ff9b2a13638532e8bd4c4bbdd5caf244a0a498046416bded2f92c7b3eb62c"}},{"ruleId":"D1","level":"warning","message":{"text":"FileDiscovery.scan (cyclomatic 26): FileDiscovery.scan has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/QuickSearchCore/FileDiscovery.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63bdaa0463271b45524edb9ec7f1714440b4e3364a76b50045d407d5c921a51"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickSearchResult.search (cyclomatic 26): QuickSearchResult.search has cyclomatic complexity 26 (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":"MarkEditMac/Modules/Sources/QuickSearchCore/Results/ContentSearchResult.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de66689d762675de9ae138950396a3dd4e15ccffb2431cac25889dfc22ff114"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickSearchController.activate (cyclomatic 26): QuickSearchController.activate 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":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchController.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7acc39611f730bc4200dad3adcf9b68f300843d53f0875bd066a72fe24f1abd"}},{"ruleId":"D1","level":"warning","message":{"text":"complete.htmlCompletionFor (cyclomatic 25): complete.htmlCompletionFor 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":"CoreEditor/src/@vendor/lang-html/complete.ts"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f191bb074b75418595f5f24f84f159224e5c1c935786afb3f37d56d9d17798"}},{"ruleId":"D1","level":"warning","message":{"text":"index.handleKeyDown (cyclomatic 24): index.handleKeyDown has cyclomatic complexity 24 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 6 belong to 3 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":"CoreEditor/src/modules/tokenizer/index.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4292ccb9c1fd6c9e92fb9accc4079add78612cdff24172ab977acb4f7590e50b"}},{"ruleId":"D1","level":"warning","message":{"text":"html.autoCloseTags (cyclomatic 23): html.autoCloseTags has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 8 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 109). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-html/html.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf38d0784acad46bf5031e6f1d59ba0a47b3338bef68299d14b379f18941f63b"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.updateTextFinderMode (cyclomatic 22): EditorViewController.updateTextFinderMode has cyclomatic complexity 22 (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":"MarkEditMac/Sources/Editor/Controllers/EditorViewController\u002BTextFinder.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d99c855e3937ae026d8c17b79ed09617401a72e180631b74cb070d8bd70301f"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.toolbar (cyclomatic 22): EditorViewController.toolbar has cyclomatic complexity 22 (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":"MarkEditMac/Sources/Editor/Controllers/EditorViewController\u002BToolbar.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5160974aa59fbfb50e107dbf35a5d529c96056c07df14fa319a3cc4a807e7c6b"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickSearchController.refreshDocument (cyclomatic 19): QuickSearchController.refreshDocument 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":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchController.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"044c0b14b9875e9c9851a57de992b9c8bae305b4573437b1e1e2494f3bbf4c21"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.validateMenuItem (cyclomatic 18): EditorViewController.validateMenuItem 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":"MarkEditMac/Sources/Editor/Controllers/EditorViewController\u002BMenu.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f058eacd5ce0b1bb0b02ed205004e65687da84b06878e47185315e3a4a5187"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.quickSearch (cyclomatic 18): AppDelegate.quickSearch 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":"MarkEditMac/Sources/Main/Application/AppDelegate\u002BQuickSearch.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb99dcef0a6d155faaf08bbd5e75ad135a6619a435260cce873b2fb152dd2792"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickSearchController.search (cyclomatic 18): QuickSearchController.search has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchController.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46b71d7c5483cb0cd02fa68b9f7393dfa252cefb952e734c89a9a32e5630f63"}},{"ruleId":"D1","level":"warning","message":{"text":"core.resetEditor (cyclomatic 18): core.resetEditor has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 6 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":"CoreEditor/src/core.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"238e3e3093fb57f1259e39c76fba948f6008ef92764008bd7314443fdcfba115"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionRelease.pageURL (cyclomatic 17): ExtensionRelease.pageURL 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":"MarkEditMac/Modules/Sources/ExtensionCore/ExtensionRegistry.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39281e12cb58608cd814e05c6082c61dd913ab982dbaf5d8cadc98f6d0eb299"}},{"ruleId":"D1","level":"warning","message":{"text":"ResultCell.compactSubtitle (cyclomatic 17): ResultCell.compactSubtitle 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":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchResultsView.swift"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d9022c3e51edc6ce394a79dc2ec327898d3aa7e920904770cb9db523a22797"}},{"ruleId":"D1","level":"warning","message":{"text":"toggleBlockWithMarks.toggleBlockWithMarks (cyclomatic 17): toggleBlockWithMarks.toggleBlockWithMarks has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 7 belong to one function literal 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":"CoreEditor/src/modules/commands/toggleBlockWithMarks.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"16446bc86676cefa98b8e9ef85e94f1e0f2f839933c18702b607bc58c52ebe8d"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.getContext (cyclomatic 17): commands.getContext 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":"CoreEditor/src/@vendor/lang-markdown/commands.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"12cafe3990a7e2c2487c94d49531b02401bf6233ab2a95a148ec9a216222ecfc"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.deleteMarkupBackward (cyclomatic 17): commands.deleteMarkupBackward has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 245). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-markdown/commands.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24ddf5576bc37229f529321e5eefdb8240fc47c62aa6c32dd1de93978fb7cc3"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionsRowView.body (cyclomatic 16): ExtensionsRowView.body 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":"MarkEditMac/Sources/Extension/ExtensionsRowView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b03a63c1e71a3977cad46e43d9b87fd5ca28b75fb11a06b145bfc252f26f33f"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionRegistry.refresh (cyclomatic 16): ExtensionRegistry.refresh 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":"MarkEditMac/Modules/Sources/ExtensionCore/ExtensionRegistry.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"12638b9ee120ae4b93aa3c25ec68a01f732fa245840bb8e39bf4cdc6dcc7e640"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickSearchMenuActions.resolve (cyclomatic 16): QuickSearchMenuActions.resolve has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: NSMenuItem.shortcutHint (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchMenuActions.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7e00aeeb3f7e96ad40d8ed47081b1dc424aa1669818490f8e5153c04a2bfa5"}},{"ruleId":"D2","level":"warning","message":{"text":"index.observeChanges (cognitive 57): index.observeChanges has cognitive complexity 57 (threshold 15). Drivers by points: if/else 22 (46 pts), boolean chains 11 (nesting depth added 24). None of this is in the body itself: all 57 points belong to 3 function literals inside it that branch (lines 137, 197, 239). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/input/index.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6aa760c428cf877f19ff66ce8d20aa7a077a757eb60ac8e12d9d0fb8c11c319"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDiscovery.scan (cognitive 56): FileDiscovery.scan has cognitive complexity 56 (threshold 15). Drivers by points: if/else 11 (35 pts), boolean chains 8, error handling 3 (8 pts), loops 2 (4 pts), ternaries 1 (nesting depth added 31). Of this number, 52 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/QuickSearchCore/FileDiscovery.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae2b8a758b795f79137e89e012e2cbe9895833b3a55ab8eeaf09e47a295c8d5"}},{"ruleId":"D2","level":"warning","message":{"text":"FuzzyMatcher.match (cognitive 53): FuzzyMatcher.match has cognitive complexity 53 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 6 (11 pts), boolean chains 9, ternaries 3 (5 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/QuickSearchCore/FuzzyMatcher.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef73211e51dfd6c8dfa0cc0fe4263857274ef28533151c5d3b5335b11ed72b3"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.insertNewlineContinueMarkupCommand.\u003Creturned closure\u003E (cognitive 51): commands.insertNewlineContinueMarkupCommand.\u003Creturned closure\u003E has cognitive complexity 51 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 18, loops 3 (4 pts), ternaries 1 (3 pts) (nesting depth added 12). Most of this is not in the body itself: 1 of the 51 points is its own statement and the rest belongs to one function literal inside it that branches (line 106). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-markdown/commands.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ad4e7fb14693417f9459145bcb7a3d7e0436714c71e2b50c04fb91c18b052a"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.addLocalMonitorForEvents (cognitive 35): EditorViewController.addLocalMonitorForEvents has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 15, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"MarkEditMac/Sources/Editor/Controllers/EditorViewController\u002BEvents.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ec630e20f1a0cc5a276618be0d94be4a7e79ccc2ca1ed13f7fd6cfa0084f18"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickSearchController.activate (cognitive 34): QuickSearchController.activate has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 7, error handling 2, match/switch 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":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchController.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b890342b6e273846a6939c2c28899159c40d3c7a703cff88711cce76b5da39"}},{"ruleId":"D2","level":"warning","message":{"text":"toggleListStyle.toggleListStyle (cognitive 31): toggleListStyle.toggleListStyle has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (22 pts), ternaries 1 (4 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 14). Most of this is not in the body itself: 4 of the 31 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 64, literate, a function literal at line 52). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/commands/toggleListStyle.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce4823af8db71dc682292c285d8a06ea9d0d233a9d99575e84d61dc1c39ec49"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.deleteMarkupBackward (cognitive 29): commands.deleteMarkupBackward has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (23 pts), boolean chains 6 (nesting depth added 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to one function literal inside it that branches (line 245). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-markdown/commands.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4252afad1da97e5dc0e953f28c683c7124015771216d69146a231f4d0a57867"}},{"ruleId":"D2","level":"warning","message":{"text":"toggleBlockWithMarks.toggleBlockWithMarks (cognitive 27): toggleBlockWithMarks.toggleBlockWithMarks has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 9). Of this number, 15 points are the body\u0027s own statements and 12 belong to one function literal 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":"CoreEditor/src/modules/commands/toggleBlockWithMarks.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a9c2a7e2dab78ea65f12434b357770b54263290c1df4312bb18966ed1823d6"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickSearchResult.search (cognitive 26): QuickSearchResult.search has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, ternaries 4 (5 pts), loops 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/QuickSearchCore/Results/ContentSearchResult.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"43cd5b418f25e7da3af6c0f2b24effe7c94b07d957f9e0c0db48158f3d1614b9"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.updateTextFinderMode (cognitive 25): EditorViewController.updateTextFinderMode has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 5, ternaries 3 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Sources/Editor/Controllers/EditorViewController\u002BTextFinder.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"91177cfaeee83cb50729117f1d2e25cab9c57d022286348a53fb383194b6b0bc"}},{"ruleId":"D2","level":"warning","message":{"text":"complete.htmlCompletionFor (cognitive 25): complete.htmlCompletionFor has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 9, if/else 8 (9 pts), ternaries 3 (6 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-html/complete.ts"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5dc77db22afcc1e4034f75efb6a482e1b8169356313ade2e78aa692ac7aed95"}},{"ruleId":"D2","level":"warning","message":{"text":"formatContent.formatContent (cognitive 23): formatContent.formatContent has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/commands/formatContent.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7237c6585b40c4ab37faf7b1248e50bef25b0681f937c44debdb94ad2432f81"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.getContext (cognitive 23): commands.getContext has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 4, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-markdown/commands.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a398c58b96a57a97d0c6a38a68c0aeb647e34e60145a50644818a2708c767c23"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickSearchMenuActions.resolve (cognitive 22): QuickSearchMenuActions.resolve has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 6, ternaries 1 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchMenuActions.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff70964accaea0dc89602a91d1a635c0971eae09e681fae577cc8ab664ae7b0"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickSearchController.refreshDocument (cognitive 21): QuickSearchController.refreshDocument has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (8 pts), error handling 3 (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":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchController.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb512ae6d7923c80f8ebfc327d6122ae3f09fbf0b3be016529fcbdab7686a9f"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionsRowView.body (cognitive 20): ExtensionsRowView.body has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Sources/Extension/ExtensionsRowView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8b7376abf262d6bfc429fb00a4e49dce700bc33cdbfc177687fbc28877a5a2"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickSearchController.search (cognitive 20): QuickSearchController.search has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, error handling 4 (6 pts), if/else 4 (5 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchController.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"10810e94f9bd3cc83ee7ed28e0151dd08e770c35defa8c41ff1faeb4c0c93e87"}},{"ruleId":"D2","level":"warning","message":{"text":"index.handleKeyDown (cognitive 20): index.handleKeyDown has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, ternaries 2 (4 pts), error handling 1 (nesting depth added 3). Of this number, 11 points are the body\u0027s own statements and 9 belong to 3 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":"CoreEditor/src/modules/tokenizer/index.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc612923ca2149755eadfee43f245da63a825e1601962a6fe80cbffb4f6367d"}},{"ruleId":"D2","level":"warning","message":{"text":"core.resetEditor (cognitive 20): core.resetEditor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 2). Of this number, 13 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, 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":"CoreEditor/src/core.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff5e6b08f7835b6e8f137d05749cd83d29fe9e2370d1ec2dea44aab54ece840"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.validateMenuItem (cognitive 19): EditorViewController.validateMenuItem has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2, 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":"MarkEditMac/Sources/Editor/Controllers/EditorViewController\u002BMenu.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a71c9b5809ebca69254ec003266b856324d117aa2e14c5277f8d99e7d832a8"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorWebView.updateMenuItems (cognitive 19): EditorWebView.updateMenuItems has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 6, 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":"MarkEditMac/Sources/Editor/Views/EditorWebView.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8cb8eea0a003389602707b52a657056377eacb5cbf3330b316db9a0bf052db"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.quickSearch (cognitive 19): AppDelegate.quickSearch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Sources/Main/Application/AppDelegate\u002BQuickSearch.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7a51209acf5846cc80df03ef1a9bb7026d58492372f9357d90b2f47d837d2d"}},{"ruleId":"D2","level":"warning","message":{"text":"index.observeEventsForCompletion (cognitive 19): index.observeEventsForCompletion has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 3). None of this is in the body itself: all 19 points belong to one function literal inside it that branches (line 164). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/events/index.ts"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"330d1d4093a61bc5afa4072f92269e9d62f4d73faecd1693a831d6bbe70d3cfe"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRelease.pageURL (cognitive 18): ExtensionRelease.pageURL has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5, ternaries 2 (4 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":"MarkEditMac/Modules/Sources/ExtensionCore/ExtensionRegistry.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a528f649a28ccf5ea05184b14c4444e8e3c2e2584211f574bb48a5079b72ba9"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorFindPanel.navigateRecentSearches (cognitive 18): EditorFindPanel.navigateRecentSearches has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Sources/Panels/Find/EditorFindPanel\u002BDelegate.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1a3e285f40221952a3e4b496025f249d6ca5f79a2676ab688f345064c95b48"}},{"ruleId":"D2","level":"warning","message":{"text":"index.wrapMath (cognitive 18): index.wrapMath has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 6). Of this number, 14 points are the body\u0027s own statements and 4 belong to one function literal 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":"CoreEditor/src/modules/math/index.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"964575aebc41e4e2dd35c968c9afe9472e4057364a0f1e7b522d06f98d845957"}},{"ruleId":"D2","level":"warning","message":{"text":"index.updateQuery (cognitive 18): index.updateQuery has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/search/index.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecc172fd215c804a5b499d54a343941a3fcea477e736a6ab4f4a596c1ec8c4c"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorModuleAPI.deleteLocalFileVersions (cognitive 17): EditorModuleAPI.deleteLocalFileVersions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, error handling 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleAPI.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c27e0eb8ff7a6a240505d748e1d7ec4e17c27cfdc8325518bf5a3efd3db5574"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorDocument.presentedItemDidChange (cognitive 17): EditorDocument.presentedItemDidChange has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Sources/Editor/Models/EditorDocument.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4a5c8fc012ded9c654c2dc96e754a9c8027ac5d7dd44eebbdcdcd553c25e1c"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRegistry.refresh (cognitive 17): ExtensionRegistry.refresh has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, 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":"MarkEditMac/Modules/Sources/ExtensionCore/ExtensionRegistry.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"78eb61b370b61dc57738c8f3b1617f934f80b7ab55438eaa9936de61505e1902"}},{"ruleId":"D2","level":"warning","message":{"text":"ResultCell.compactSubtitle (cognitive 17): ResultCell.compactSubtitle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 4, boolean chains 3, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchResultsView.swift"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca7e0e53bffeca7464300ea3ca3a8ab4dfb1a91e95d0a078066b73b82b8b1ff"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorWindow.updateTitleBarAppearance (cognitive 16): EditorWindow.updateTitleBarAppearance has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 3 (5 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Sources/Editor/EditorWindow.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0942dc552c2e633b3bf6e8e0981d7275666302127b38aa99d528fe5626c5de"}},{"ruleId":"D2","level":"warning","message":{"text":"toggleLineLeadingMark.toggleLineLeadingMark (cognitive 16): toggleLineLeadingMark.toggleLineLeadingMark has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 1, 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":"CoreEditor/src/modules/commands/toggleLineLeadingMark.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"845a76921a0fe7e2167d2c32ed13bd514d86c4e44c5da27596e7958597659b74"}},{"ruleId":"D2","level":"warning","message":{"text":"complete.completeAttrValue (cognitive 16): complete.completeAttrValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 1 (3 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":"CoreEditor/src/@vendor/lang-html/complete.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba663337968c21f9d4f3bfc02f97355643328a2e5646d8b883da0cd2c4fe7e0a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorViewController: TooManyMethods \u2014 225 methods, declared across 16 files: Controllers/EditorViewController\u002BMenu.swift (63), Controllers/EditorViewController\u002BDelegate.swift (58), Controllers/EditorViewController\u002BUI.swift (29), Controllers/EditorViewController\u002BConfig.swift (18), \u002B12 more file(s). The bar is 30 methods; this is 195 over it, 7.50\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":"MarkEditMac/Sources/Editor/Controllers/EditorViewController.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"348b56397be14d0d863acfcad8b8dc87956978abf4249b7f9f45f4988376778c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppDelegate: TooManyMethods \u2014 51 methods, declared across 6 files: Application/AppDelegate\u002BMenu.swift (23), Application/AppDelegate.swift (12), Application/AppDelegate\u002BDocument.swift (8), Application/AppDelegate\u002BQuickSearch.swift (4), \u002B2 more file(s). 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":"MarkEditMac/Sources/Main/Application/AppDelegate.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ab48aec7ccc9350d9173e4c6761f05ec4c474a141a700f4fe08a53fb650792"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExtensionsViewController: TooManyMethods \u2014 40 methods, declared across 2 files: Extension/ExtensionsViewController.swift (34), Extension/ExtensionsViewController\u002BRowSizing.swift (6). The bar is 30 methods; this is 10 over it, 1.33\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":"MarkEditMac/Sources/Extension/ExtensionsViewController.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed30c43e8cd283be6a31c22d9675393b451f7a4df73ebfe3ded5c404491f7fce"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorDocument: TooManyMethods \u2014 39 methods, declared across 3 files: Models/EditorDocument.swift (34), Scripting/EditorDocument\u002BScripting.swift (3), Models/EditorDocument\u002BClosedTab.swift (2). The bar is 30 methods; this is 9 over it, 1.30\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":"MarkEditMac/Sources/Editor/Models/EditorDocument.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a2c9f0b8a65cc88e3eedfb1949c733946bec0d8e0504ee410e77c02f8db3cf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorModuleAPI: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. Most of these members implement MarkEditKit~Bridge.NativeModuleAPI (30 of 34 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleAPI.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe82d7190c9891fc933b25f5816f2ea903af7c5b2769c16afb3c46e9135ea97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: QuickSearchUI/QuickSearchController.swift: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2 over it, 1.00\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":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be22c80cbe09b1284399d97496659c9976b67d3032c7aedc81493923bf3d4739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): MarkEditMac/Modules/Sources/ExtensionCore/ExtensionRegistry.swift:112-136 | MarkEditMac/Modules/Sources/FontPicker/FontPickerConfiguration.swift:22-44 | MarkEditMac/Modules/Sources/Statistics/StatisticsLocalizable.swift:21-43 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/ExtensionCore/ExtensionRegistry.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a8515003769627d5ce597d0b3cc525aeea49934132bad8f837a1537eae25d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleAPI.swift:452-466 | MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleAPI.swift:468-486 \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":"MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleAPI.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"1955def9909c3a548c7171d8b21a205d04493643d4ae9c0066634459cc74ca93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): MarkEditMac/Sources/Main/AppWritingTools.swift:134-141 | MarkEditMac/Sources/Main/AppWritingTools.swift:144-151 \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":"MarkEditMac/Sources/Main/AppWritingTools.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a18d5ea674ef7c83e22b6a88e475ba3b23cd4412ddef0e28b3ca8248f5de50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): MarkEditMac/Sources/Extension/Core/ExtensionInstaller.swift:101-111 | MarkEditMac/Sources/Extension/Core/ExtensionUpdater.swift:133-143 \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":"MarkEditMac/Sources/Extension/Core/ExtensionInstaller.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb12d6ecf3a59f7aab9ffc173eb4fd4f2557d84f6366b43a90a7619b59fa247"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): MarkEditMac/Sources/Editor/Controllers/EditorViewController\u002BMenu.swift:366-375 | MarkEditMac/Sources/Editor/Controllers/EditorViewController\u002BMenu.swift:377-386 \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":"MarkEditMac/Sources/Editor/Controllers/EditorViewController\u002BMenu.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93d5bce019cd79977fdf14c58c8edb8b7ad14af25b2c7446ca92775255d645d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): MarkEditMac/Modules/Sources/AppKitExtensions/UI/NSColor\u002BExtension.swift:28-33 | MarkEditMac/Modules/Sources/SharedUI/Extensions/Color\u002BExtension.swift:10-15 \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":"MarkEditMac/Modules/Sources/AppKitExtensions/UI/NSColor\u002BExtension.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cf678cd7313b9e1d293bf8ca3ab3aee7c955c8d61178321d620790083083df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleSecretStorage.swift:46-50 | MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleSecretStorage.swift:60-65 | MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleSecretStorage.swift:67-71 \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":"MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleSecretStorage.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a857cd6a4b12dccf50b14f2b1d6c7757bb2c01e3df550e0f13e932d5243bf7be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): MarkEditMac/Modules/Sources/ExtensionCore/ExtensionConfig.swift:225-233 | MarkEditMac/Sources/Main/AppRuntimeConfig.swift:397-405 \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":"MarkEditMac/Modules/Sources/ExtensionCore/ExtensionConfig.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed90f4bcc89ccfc1848d9a6a218dcd6cd794fb6e00930e77c049b2116bf5c02"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: DiffKit: DiffKit: 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":"a88bd2f7b4bee9c58b18381cd96446f1767d0a0222bd2f18ca9bf117802ce9f8"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: QuickSearchCore: QuickSearchCore: 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":"ccca502e834ef9bba18118d9076df48754a28b5b9bea28c2cff28004b7f8fcef"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: TextBundle: TextBundle: 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":"c4fbc44579ff7fbf319bca5412f2659ac9f8065f590c7ad09b9a2f558e4ece28"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorViewController (LCOM4 31): EditorViewController\u0027s methods fall into 31 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 31 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":"MarkEditMac/Sources/Editor/Controllers/EditorViewController.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7961601bd9aa5c43f9b429af2f08aa721634cfd74a3dd7c134134405a4f24ab7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppDelegate (LCOM4 22): AppDelegate\u0027s methods fall into 22 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 22 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":"MarkEditMac/Sources/Main/Application/AppDelegate.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b8a6f5d78636a9b11a45379d916584d3655d03ac03f2febdb67faafb6ec985"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorModuleAPI (LCOM4 7): EditorModuleAPI\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":"MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleAPI.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e9670e2bb6eb0220e60353354e3426145c7349d742c6dce6f93059de0d6a26"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NSMenuItem (LCOM4 7): NSMenuItem\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":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchMenuActions.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58d79fbbb1ec518280d7d733571badc3c1301b19110b04ac2ecd9b35adc7853"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Data (LCOM4 6): Data\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":"MarkEditKit/Sources/EditorTextEncoding.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"df274aab1364e802d8cf0910b1af59bc2a2a8a72f9ece8d8f17e314430ac421c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NSView (LCOM4 6): NSView\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":"MarkEditMac/Modules/Sources/AppKitExtensions/UI/NSView\u002BExtension.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d173266d3035c0328f89d49a581ec79ad3635d6be4129912da173b955f5ce88"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NSWindow (LCOM4 6): NSWindow\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":"MarkEditMac/Modules/Sources/AppKitExtensions/UI/NSWindow\u002BExtension.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"34918f80eb65ce0cbfcb932bbd44139ae0ad46fdc14692e9d31691518d87d1d6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: View (LCOM4 6): View\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":"MarkEditMac/Modules/Sources/FontPicker/FontPicker.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2c7064e3ab64a9392a4d5920a6d3c9e2b6c0304f9c410292971d157da5f13f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 5): String\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":"MarkEditCore/Sources/Extensions/String\u002BExtension.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9da298f9edac264422186da079d65b4c03279d0273a13b8ba8cead57ebe7a58"}},{"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":"MarkEditCore/Sources/Extensions/URL\u002BExtension.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c848cbeb8bf1f12a426931efd0c230839622e5128092dba995587567534a95be"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorWindowController (LCOM4 5): EditorWindowController\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":"MarkEditMac/Sources/Editor/EditorWindowController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fca3f89a38a5db2bc079081753ce10ad25794c939d98b9aebace2840f918fb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorDocument (LCOM4 5): EditorDocument\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":"MarkEditMac/Sources/Editor/Models/EditorDocument.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e50921c38a1a43d9bfadf742c58d9f56181d0f101b79eacb84e8e8dbd7b4047"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: QuickSearchWindow (LCOM4 5): QuickSearchWindow\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":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchWindow.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"55941471546a368b1739b0fceaf6bc08c05667fff65676bfd8764ca64c9e1e31"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: QuickLookViewController (LCOM4 5): QuickLookViewController\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":"QuickLookMac/QuickLookViewController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c975d5c4480f3535ce3f0f4ce1294bd0ff1c43141756211099075cdd1e9795f2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WKWebView (LCOM4 4): WKWebView\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":"MarkEditCore/Sources/Extensions/WebKit\u002BExtension.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f39475c9f0ede7b3fb20d0d9dc2fdfbe5d9ec424123874f99492819eaddfa99"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorStatusView (LCOM4 4): EditorStatusView\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":"MarkEditMac/Sources/Editor/Views/EditorStatusView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9c49ff9d65cc3d00b0d0c9d0a8002f0babebbeb1723d8c87e49677b700dd33"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ExtensionsModel (LCOM4 4): ExtensionsModel\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":"MarkEditMac/Sources/Extension/ExtensionsModel.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4042787e9bcc11c8d219dd2543ce40b273f1dab7a32cc2c6213325856658a7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ExtensionsViewController (LCOM4 4): ExtensionsViewController\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":"MarkEditMac/Sources/Extension/ExtensionsViewController.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a101d773577cf1052b3030f7deefeb7df76086e875b663f5ff1e93f90874825"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NSApplication (LCOM4 4): NSApplication\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":"MarkEditMac/Sources/Extras/NSApplication\u002BExtras.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd1b88d7440e0d4732ebedf16d1ba12717eb5cc35c7481e936c0b8dcc8844d2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NSMenu (LCOM4 4): NSMenu\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":"MarkEditMac/Sources/Extras/NSMenu\u002BExtras.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77f126961a08da648fa74db8354edaabc80a7e4fc391e76f73494a197a1ce79"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCrossVolumeContract: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditKit/Tests/MoveFileTests.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a220b63793d55e6bb226357bbb9dfe652309536a472153008d9560544fe47c5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testInvalidArgumentsDoNotInvokeNativeMethods: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditKit/Tests/NativeBridgeParametersTests.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5fe2b9e9c95ac3dc08dec9744ba04e53f277eb3e770526f890d4004e086ab0"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSecretStorageWithSystemKeychain: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Tests/EditorDocumentTests.swift"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"20897a03f5d03269002270556bc5293cdb18118a6e9ce6087c05d25c9f986a04"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testExistenceOfAppKitSearchField: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0928e5b1cdaa5a874d1556ea181695936b8904c3bc521dcb7ae7ae88eb3a57"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testKeychainErrorsAreNotAbsence: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditKit/Tests/SecretStorageTests.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e944c04c618491996a7fa895aaf6a421246dda4b37f9325ca8086cdf3aae58e6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testConcurrentOpeningThroughAppKit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Tests/EditorDocumentTests.swift"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"18dc48b139895ae37fa2cc83c6425e5529d3f7cb41c97d79b0daea5f86d7f0c4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExistenceOfDrawsBackground: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"915fefff4b86611332aa2120d1f3ececfc955d917a3cd30889c598de3fd15a27"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExistenceOfDeveloperPreferences: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d160d4a35b74b5f673444667b40f1c93ed872fad8ac4b23e6621236d864e6527"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExistenceOfPerformancePreferences: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"871c529f73aa4c89ced5c578340d49811e5a8984b73cdd567cdeeeffa448cda4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExistenceOfBulkFeatureDisabling: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0fb2373faa25ea88ffb0e395136666b0a3602ba46b7d6e46b0e937c9e07f71"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExistenceOfAutomaticInlineCompletion: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"3738c2808ffadfea8cc613658bbcbab3aed24088ceacd817f53db4a2601075f8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExistenceOfAutomaticInlinePredictionBeingPresented: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c0c5c4ef71bc177cbf425dd10a0e8142122349560885d090148eeccd0d4317"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExistenceOfShowCompletionForCandidate: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b007845ed918dc02ed5e901ad7165a2c47eef42234dd7d888acb50a26a754670"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExistenceOfCancelCorrection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc545d8f15bb45bfbc6159752cb7b089a18caf124334d36cb1e1856afe77a2f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExistenceOfImageTintColor: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"8037b3674b84802b075102177c4884d216e670b12e67a2e3f8380fc77f211923"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPrivateAppKitClasses: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7bbc03c20b3386a5d18d469df45de9458be39b0d7a2d861141625bceaf8e4b9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDelayedAppKitInternalFunctions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf2f348ea7003e7ea80659bcf4a4e15363dc7fe8f69a60ccfba46705c9858e9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExistenceOfShowWritingTools: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Tests/RuntimeTests.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"56aa4a375f9b93d88ea93730c5ade1a57f02dbfad3c89a3c01779b351fad4c54"}},{"ruleId":"D11","level":"error","message":{"text":"Flaky test: CoreEditor/test/task.test.ts::Task marker decoration decorates mixed task lists with the correct state per line: Passed 2\u00D7, failed 1\u00D7 across repeated runs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"edc557454fd54e74653a4974b7df47f93926ec3c98ef0965cef683b899325b3a"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: eslint: eslint 9.39.5, declared in CoreEditor/package.json, is marked deprecated by its publisher: \u0022This version is no longer supported. Please see https://eslint.org/version-support for other options.\u0022. Replace it with the package or version that message names, or record why this one must stay."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/package.json"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a34e7e172b0e7c5c8c2038cf8f854cd3db8000d295856af239d329dc6becee7"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 10.5.0 is resolved in CoreEditor/yarn.lock and is marked deprecated by its publisher: \u0022Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [e-mail redacted]\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/yarn.lock"},"region":{"startLine":3029}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4009c6750a2738d44fa99d47fb0c63151e03af8e418b1dd4a416cde7e204dc6"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 7.2.3 is resolved in CoreEditor/yarn.lock and is marked deprecated by its publisher: \u0022Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [e-mail redacted]\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/yarn.lock"},"region":{"startLine":3056}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5742c3e39016ccc2d2abd978ad48f0e194312d8c51c232df81f8e0cf35e7de"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: inflight: inflight 1.0.6 is resolved in CoreEditor/yarn.lock and is marked deprecated by its publisher: \u0022This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/yarn.lock"},"region":{"startLine":3211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d62f7f3fa678e172262b05a73e8e0c137fc26a521313957868b94807430242e"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: whatwg-encoding: whatwg-encoding 3.1.1 is resolved in CoreEditor/yarn.lock and is marked deprecated by its publisher: \u0022Use @exodus/bytes instead for a more spec-conformant and faster implementation\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/yarn.lock"},"region":{"startLine":5439}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9bc5d7501e1273043e72dbe58d0706173280d393eba0beadffe343549510cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchController.swift: MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchController.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in QuickSearchController.activate at line 574. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 19:34:46 \u002B08:00\u0027 --until=\u00272026-11-14 19:34:46 \u002B08:00\u0027 --full-history --no-merges -- MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchController.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":"MarkEditMac/Modules/Sources/QuickSearchUI/QuickSearchController.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16327d4276f8c88275a2aab3981ec51b88708dab206678f11c5d08e67f1b7d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: MarkEditMac/Sources/Main/Application/AppDelegate\u002BQuickSearch.swift: MarkEditMac/Sources/Main/Application/AppDelegate\u002BQuickSearch.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in AppDelegate.quickSearch at line 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 19:34:46 \u002B08:00\u0027 --until=\u00272026-11-14 19:34:46 \u002B08:00\u0027 --full-history --no-merges -- MarkEditMac/Sources/Main/Application/AppDelegate\u002BQuickSearch.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":"MarkEditMac/Sources/Main/Application/AppDelegate\u002BQuickSearch.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"22cfaaaf5e344100674115a23a963089ecdc6e3330c31256c2e080906f7fffb8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: CoreEditor/src/core.ts: CoreEditor/src/core.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in core.resetEditor at line 59. 1 of those changes was a fix/bug commit, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 19:34:46 \u002B08:00\u0027 --until=\u00272026-11-14 19:34:46 \u002B08:00\u0027 --full-history --no-merges -- CoreEditor/src/core.ts\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":"CoreEditor/src/core.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd0a55f243b9b4274a75690f13ad70bb5d9cf01f0aa605994d2213ba4953905"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: CoreEditor/src/modules/input/index.ts: CoreEditor/src/modules/input/index.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in index.observeChanges at line 135. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 19:34:46 \u002B08:00\u0027 --until=\u00272026-11-14 19:34:46 \u002B08:00\u0027 --full-history --no-merges -- CoreEditor/src/modules/input/index.ts\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":"CoreEditor/src/modules/input/index.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"803c77a71a3320f20d2fcb0354ce99e027472b929180deb65ee59b24f35617c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: MarkEditMac/Sources/Extension/ExtensionsRowView.swift: MarkEditMac/Sources/Extension/ExtensionsRowView.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ExtensionsRowView.body at line 21. 1 of those changes was a fix/bug commit, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 19:34:46 \u002B08:00\u0027 --until=\u00272026-11-14 19:34:46 \u002B08:00\u0027 --full-history --no-merges -- MarkEditMac/Sources/Extension/ExtensionsRowView.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":"MarkEditMac/Sources/Extension/ExtensionsRowView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cb3f33b6a6d6d959066e482b75a80cee9da487a3716728595a92ab134115c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: MarkEditMac/Modules/Sources/QuickSearchCore/Results/ContentSearchResult.swift: MarkEditMac/Modules/Sources/QuickSearchCore/Results/ContentSearchResult.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in QuickSearchResult.search at line 72. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 19:34:46 \u002B08:00\u0027 --until=\u00272026-11-14 19:34:46 \u002B08:00\u0027 --full-history --no-merges -- MarkEditMac/Modules/Sources/QuickSearchCore/Results/ContentSearchResult.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":"MarkEditMac/Modules/Sources/QuickSearchCore/Results/ContentSearchResult.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b034a4e119e11816c3da64bce5e0492493fe62808ad69954aea04ceccc42df63"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: the repository holds project manifests and neither \u0060README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33a5992d4bd6ac1ea4b853ae69753fcd7e0410099c58731c86be53325ba8c96"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022A small keymap with Markdown-specific bindings. Binds Enter to [\u0060insertNewlineContinueMarkup\u0060](#lang-markdown.insertNewlineContinueMarkup) and Backspace to [\u0060de \u2026\u0022 repeats the code it sits on: 12 of its 15 words (keymap, markdown, bindings, binds, enter, insert, newline, continue, markup, backspace, delete, backward) are already in \u0060export const markdownKeymap: readonly KeyBinding[] = [\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-markdown/index.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb977827165e9906263a16909080096f01a11e2358781217ba02404f789462fd"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Markdown language support.\u0022 repeats the code it sits on: 3 of its 3 words (markdown, language, support) are already in \u0060export function markdown(config: {\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-markdown/index.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"02378a13d70ed9018c87551c9519d1f740cef28c7c450e829d304995becf5581"}},{"ruleId":"D27","level":"note","message":{"text":"High interface indirection: 40 % of calls go through an interface \u2014 tracing a call means resolving the implementation each hop. Prefer concrete types where there\u0027s a single implementation."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cdce37f9abf7531f8d28e92afaa9d119cadea0ab8dd2d3958949c20b31f486ec"}},{"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":"38c5b8d77698f03c9130bed8181e905c9e0bd44bb32c987cf1bcddb6c5e0142b"},"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":"147f47fcc127ee45e256e19ce8ab75a990d04e42a10f1163789bb8db909c1707"},"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":"0415dbdaab5d49cf9456a9c85690a5abd7f3b46d1aa256dd235bb48b3c1dbcae"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"12bd58e779a23b0436f0475870db32c71c47add34e091c7800aa3ad10895c5d5"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a23078d08221b93bd7147a6d5eb26b0ba239b36b0c6f340a033e3d4f34ed5b1b"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ef225ec631733f3b4bd9103949d6d5ca722a5b6ea8b9acd9779268ae7bd3b5b3"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f09031a2dedb954e6696ce5c89c329dcbcca0097cf008dfa31bc99366ec0bef9"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cb1b8f6764573a40c09eb017889d81e2f6470ae0d612db3725c3a8699f8e1fc4"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"8fe27b743320f4ec1bb292b3a1a3c7678c079db4bf973e61a2804de3c5c769be"},"properties":{"dependency":{"package":"glob","version":"10.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"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":"d02ffe49a30ff806e7dc2f9282e483ae4938458a03c97bd57019aa2ba777e9d9"},"properties":{"dependency":{"package":"glob","version":"13.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"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":"389bf74a1dd5fda76c4cbc1094eb073cd2381e3adfa12fc209e34630b2d9b918"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"0c555e9c631018fce366f6ffcd8086185108f17c6e4aa9d761c066b5a352952d"},"properties":{"dependency":{"package":"deepmerge","version":"4.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: api.ts \u2192 methods.ts, modules.ts, ui.ts: \u0060CoreEditor/src/bridge/native/api.ts\u0060 changes together with 3 other files \u2014 \u0060CoreEditor/src/api/methods.ts\u0060, \u0060CoreEditor/src/api/modules.ts\u0060, \u0060CoreEditor/src/api/ui.ts\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/native/api.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8e1df4861902c83ee52808d84d32711a57a8e40b047b9b7273686aa8082e10"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: config.ts \u2194 AppPreferences.swift: \u0060CoreEditor/src/config.ts\u0060 and \u0060MarkEditMac/Sources/Main/AppPreferences.swift\u0060 change together 63% of the time (17 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 17 shared commits counted here, the most recent 3 are \u006029e5e045\u0060 Implement markedit-api v0.31.0 (#1693); \u0060a5952a1c\u0060 Improve smart quotes handling (#1692); \u0060c34c04ae\u0060 Share index.html between app and extensions (#1629) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9be2cd5e714167759a1f618387772d76de33b5eef0da6860fdaf5cca4722f8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ui.ts \u2194 EditorModuleAPI.swift: \u0060CoreEditor/src/api/ui.ts\u0060 and \u0060MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleAPI.swift\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00607a309f2a\u0060 Implement showContextMenu options (#1816); \u0060a5277c0e\u0060 Implement markedit-api v0.37.0 (#1792); \u0060fe229f0a\u0060 Implement markedit-api v0.36.0 (#1784) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/api/ui.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"921025f89558e3c49b30451bc1f171ad56a44b712453b730fdc7d1a570e2cc4f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: NSEvent\u002BExtension.swift \u2194 EditorViewController\u002BEvents.swift: \u0060MarkEditMac/Modules/Sources/AppKitExtensions/Foundation/NSEvent\u002BExtension.swift\u0060 and \u0060MarkEditMac/Sources/Editor/Controllers/EditorViewController\u002BEvents.swift\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060fa9e4916\u0060 Browser-style tab navigation shortcuts (#1373); \u00607a881f6b\u0060 Alternative key bindings for find next (#822); \u0060f5a5d458\u0060 Be consistent on header comments (#764) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/AppKitExtensions/Foundation/NSEvent\u002BExtension.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8256f71ec9be88ca4058fc32f2adfee5b294ac3f56b303446bc771d4930c43"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: config.ts \u2194 QuickLookViewController.swift: \u0060CoreEditor/src/config.ts\u0060 and \u0060QuickLookMac/QuickLookViewController.swift\u0060 change together 52% of the time (14 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u0060c34c04ae\u0060 Share index.html between app and extensions (#1629) (at that commit the file was still \u0060PreviewExtension/PreviewViewController.swift\u0060); \u0060d6335b7c\u0060 Implement markedit-api v0.23.0 (#1439) (at that commit the file was still \u0060PreviewExtension/PreviewViewController.swift\u0060); \u0060089d3e8e\u0060 Implement MarkEdit.getDirectoryPath (#1191) (at that commit the file was still \u0060PreviewExtension/PreviewViewController.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7498cead7b3ff20f38c659107415012b257893336551bdc828b62bf97d1aa7db"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: selection.ts \u2194 EditorViewController\u002BMenu.swift: \u0060CoreEditor/src/bridge/web/selection.ts\u0060 and \u0060MarkEditMac/Sources/Editor/Controllers/EditorViewController\u002BMenu.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other\u0027s build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060d6299cc1\u0060 Fix select all only selects the viewport (#842); \u0060fb5c6703\u0060 Keyboard shortcuts to go back (#645); \u0060b27f7b8e\u0060 Refactor WritingTools related code (#610) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/selection.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeda3b1bb8258a1fadd42524b741a05946471062f4b8c809ec807d72f6beab7"}},{"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":"8e2e6fa5f619f46cacaad2b49b8c717ff39a97571033bf2b627aa0f80d4e5606"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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":"P2","level":"note","message":{"text":"Logging is not universal: Only 4/5 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060MarkEditTools\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 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/build-and-test.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060CoreEditor/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/package.json"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a891811f61169adc3885c3ed6c6855259a825b29095c51b2fd38f5a547121f23"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): CoreEditor/src/styling/themes/minimal-dark.ts:16 \u00B7 CoreEditor/src/styling/themes/minimal-light.ts:16 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/styling/themes/minimal-dark.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d7ecbedda58c7ff4c4eb58c64c5c39c97b7c8c5fc40553dfc23269ced8c51a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): CoreEditor/src/styling/helper.ts:5 \u00B7 CoreEditor/src/styling/helper.ts:21 \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":"CoreEditor/src/styling/helper.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc185b14c2b9fab8bef0b38635a486c47ea468c04e91d399f8bb78eec3a3c42"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): CoreEditor/src/modules/completion/index.ts:168 \u00B7 CoreEditor/src/modules/tokenizer/index.ts:12 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/completion/index.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4881aa653a8ea7824fbef23609e3a902260b80fb8bd9e192b1652eac9841a49f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): CoreEditor/src/modules/smartQuotes/index.ts:78 \u00B7 CoreEditor/src/modules/smartQuotes/index.ts:112 \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":"CoreEditor/src/modules/smartQuotes/index.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5167d51ae21b2b4282865eb8eebb6997c95e985b0ac4a0528d22cbaf85a954fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): CoreEditor/src/styling/themes/cobalt.ts:25 \u00B7 CoreEditor/src/styling/themes/github-dark.ts:19 \u2014 the 2 copies are spread across 2 files, and what repeats is a LIST OF ENTRIES rather than behaviour \u2014 the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator\u0027s options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/styling/themes/cobalt.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2637173799a25dcb166acc7960e248460350ece51d56cb6e7a65ba672cf38354"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): CoreEditor/src/styling/themes/dracula.ts:25 \u00B7 CoreEditor/src/styling/themes/synthwave84.ts:35 \u2014 the 2 copies are spread across 2 files, and what repeats is a LIST OF ENTRIES rather than behaviour \u2014 the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator\u0027s options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/styling/themes/dracula.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3accc58353ecb345763587c6f93dcdc6642ee6cc9401ce62f9d90e27f60b1e2b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): CoreEditor/src/styling/nodes/indent.ts:8 \u00B7 CoreEditor/src/styling/nodes/indent.ts:24 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/styling/nodes/indent.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"52add378cf502a4e8289d92e8db59a378073c9b162c5e2b7f7c65b168bdcb04e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): CoreEditor/src/styling/themes/rose-pine-dawn.ts:28 \u00B7 CoreEditor/src/styling/themes/rose-pine.ts:28 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/styling/themes/rose-pine-dawn.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e557195e1acf02a8be4bfc521a0011e76c0f83e140cd5c7c76937ff9527295"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): CoreEditor/index.ts:114 \u00B7 CoreEditor/index.ts:122 \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":"CoreEditor/index.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0feb90366ab07ab4d0f4f95b7ab13b9749f1d695aacc98e7e6d65d5913b9c083"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): CoreEditor/src/styling/themes/rose-pine-dawn.ts:40 \u00B7 CoreEditor/src/styling/themes/rose-pine.ts:40 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/styling/themes/rose-pine-dawn.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"11182284fe903630dc1ce1d7b8c07c4f057095802cffc3c427d5532999ecf5de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 43, cognitive 62): (anonymous) has cyclomatic complexity 43 and cognitive complexity 62; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-markdown/commands.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"196ef263617fd4d5765046aa216b564a764a5acd2c5d0fdc8d7c346e130fda25"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 28, cognitive 49): (anonymous) has cyclomatic complexity 28 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/input/index.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0b30a1d8836afd94751cacf94a68a0cd91b23bba72b4e90374a3ecd373d3f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function htmlCompletionFor (cyclomatic 25, cognitive 25): htmlCompletionFor has cyclomatic complexity 25 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-html/complete.ts"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"e396a13ef71fe417e43692671341e0719e54e7245656c256a21b6ce511c88115"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKeyDown (cyclomatic 18, cognitive 11): handleKeyDown has cyclomatic complexity 18 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/tokenizer/index.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed09f2ebc1015858c5c712f29412a78533a99e80a378175c1c2b6bfb1f8a7b5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getContext (cyclomatic 17, cognitive 23): getContext has cyclomatic complexity 17 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-markdown/commands.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcb97850fad8df09ce12bfd4fcb57542099078ccf8c347ab89cb6a510666fd3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 30): (anonymous) has cyclomatic complexity 16 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-markdown/commands.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09d3d33eedbf69ef65645a1f84f8ecabcbc2ea927d4e1e62729a873c4f5469d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 17): (anonymous) has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-html/html.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"084c7a5e428950918a5759640138a76709bfc2097c81f710a841b81169e65693"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 19): (anonymous) has cyclomatic complexity 15 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/events/index.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea68c0bc9e61ca145685cd96bc563d9fe86fd75cad801a1c86bf0fee9629193e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 15): (anonymous) has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/completion/index.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b59ac077cb09645ae3b19def21ab0954db09875a27cc7ad450cb7c9670978e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function filterTransaction (cyclomatic 15, cognitive 13): filterTransaction has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/input/index.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"054652e05dd3607f080d4636c03641a7dff4228261f4878d1b4be6a4a89f4c9f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatContent (cyclomatic 14, cognitive 22): formatContent has cyclomatic complexity 14 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/commands/formatContent.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"056453965bcfe0f8078133d10cf8954d3192bb7001965c5b8a2903cd35d48d68"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 14, cognitive 19): update has cyclomatic complexity 14 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/commands/history.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7335b22753bb0661a2791bcbf71305a439e66c5991e0e2e45236c42380b6cfce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resetEditor (cyclomatic 13, cognitive 14): resetEditor has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/core.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d07be33d9aee86a857b2c15b13eb296e495073aa962b3a34f414048d51ce1b2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parse (cyclomatic 12, cognitive 20): parse has cyclomatic complexity 12 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/math/index.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6270a834fa266bc4869b48f392a9bc92707b057a89d6be37719f0aa4af61b26"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pop (cyclomatic 12, cognitive 16): pop has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/commands/history.ts"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdae5ebafadb4291d74484343ed7dfb8d8573e44b7fa6d1b119cdf3684a6eb3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/input/index.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"261f413b3996451519a24ca301937c456faf1efe52e63e717a670be85e9a0f82"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateQuery (cyclomatic 11, cognitive 21): updateQuery has cyclomatic complexity 11 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/search/index.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0f0ece2cdcd8e6f9c5cf42ccab2e1e2972c8bdef42bb3f183234b4b252f5a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extensions (cyclomatic 11, cognitive 10): extensions has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/extensions.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73483b5caae18f708c291bbffdb6c190e2871856360fc928e5af1b03f9ee6e1"}},{"ruleId":"R3","level":"warning","message":{"text":"CoreEditor/src/@vendor/lang-html/complete.ts: 502 lines of code: CoreEditor/src/@vendor/lang-html/complete.ts has 502 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/@vendor/lang-html/complete.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e9dc59fd3e69f80001f1036e2b985114c1c158e1c5cf5ee615bf2a4b65c86b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4bcff22b5f2bd5a3ee9689af4e4cf5e9a07d1d58ddc29c0c2bf1ef50e580e4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/format.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"934bc74555fce269a0064bd63179a85e5dc123242e0cfe22133c5d3cd9622523"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd04212c034acd51ffdfefcdcb1e164b7e5bf275385c3fa28c1d423207e3873a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/search.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75269ae7e147f74981e1f0b332d5af07fa90be50a81022286e7d6471b6198908"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/core.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1041445274850f6ad2b8f9422ac4e954a425c8f284d65ea10dc6a8a5458b94"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/selection.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db261a91a005b09e2ac734d61f1ce09f431a346f655ff3f65e2ff734d5769b5"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/history.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3acf8cd4735f1146f257a5979490e3d3eb349342b1da8f165121d2f28470a4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/toc.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e5d60fb77965e1ae9ea3e0ae6f156a4b6948ed14c6d64bad0dfe63097e8fb5"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/api.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb13b008cac0e81fd313f6f1717de29fa9a1f3a72eaca28c10e8701a33ff805f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/completion.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40c5a6a2db46254341af6df1e45320da4e3195aff22204b3cd997d2356a8025"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/foundationModels.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbbac861eb8a596cf435e94794cd62afea45028ab4a4ea3ad2d8e9199f1758d"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/dummy.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1aeb49ff767829b77cbc3dfd60b80b58016fd15030c09a5ec7fdb65e3a34bf"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/lineEndings.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f719a742c1eef270f46318b31009aab76382ab6a047c87cf6f9b3e448b549de"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/writingTools.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"750f0e8dbf0ce218d5054aa4631f2238124b4105292015a38c45f93be4f5357c"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/snippets/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9092fdbf44acef487f2c8999710ba261a1b87c4d24aedba125d56354f23ba1f9"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~23 LoC): no import path from any entry point (9 application, 4 tooling, 40 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/bridge/web/dummy.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"335e7112bf899084cd82e74508336603475c3736c74a6aa06b75d6232a0feb8a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027createMarkDeco\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/styling/matchers/lezer.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25c8026bb4bb6479c8e0788da117fd7d5f521254cd53824851c7d5fb7be6f7f"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027style-mod\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/styling/builder.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f9af5aa1c7a0ea3a7335c9df632ad98253d8a93185a3af252b810713927d4a"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027tslib\u0027: Declared in CoreEditor/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d8a3d0faa47fd18b071ac2ea263bb7395790d201b593acc4743b98814298e27d"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): CoreEditor/src/api/methods.ts \u2192 CoreEditor/src/extensions.ts \u2192 CoreEditor/src/api/methods.ts (one verified cycle inside a mutually-dependent group of 29 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/api/methods.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8681057e893ef4441c884ae5b616ab8b85e17d56ea809c008c5bbc7ce93e8d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tabbedWindows == nil || tabbedWindows?.count == 1\u0060 appears character-identically in 2 files \u2014 MarkEditMac/Sources/Editor/EditorWindowController.swift, MarkEditMac/Sources/Editor/Models/EditorDocument\u002BClosedTab.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":"MarkEditMac/Sources/Editor/EditorWindowController.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea596ec385730a5a81b85725732e3cd27764c95a6065da206cfbcc1d5853671f"}},{"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":"MarkEditKit/Sources/Extensions/URL\u002BExtension.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a711cd6410be63bc048b78b5a15ee1ce300aa92c962c3f428cc6873f011a643"}},{"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":"MarkEditKit/Sources/Extensions/URL\u002BExtension.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cd32912fdc2b1aa245228da5de45d4decbaa06fcbfaa8f366d4cc36ff0ec11"}},{"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":"MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleAPI.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5c0c183341483ecc32904caa75cf24fa99a2ee9fcc69bcedef83773088ba3c"}},{"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":"MarkEditKit/Sources/Bridge/Native/Modules/EditorModuleAPI.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"58dec59ec2fcbc0fef052297bc2f893a75da5ab89dee3872589b78dcf4c53556"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/preview/overlay.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7590d7cdb6ef4e1c6561ac88f93b24bdeab9341ff18511991edfe38c9b7414ea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CoreEditor/src/modules/preview/renderers/mermaid.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2c1badd081097e23113fd0c31c30ff41905724164985e44c3344e37e5d26e7"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~2.4 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 30 assertion(s) across the 12717 source line(s) of the 167 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: CoreEditor/src/@vendor/lang-markdown/commands.ts (15), CoreEditor/src/@vendor/lang-html/html.ts (6), CoreEditor/src/@vendor/commands/history.ts (5). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060jsonEncoded\u0060 turns every thrown error into \u0060\u0022{}\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditCore/Sources/Extensions/Encodable\u002BExtension.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6d523c4d11be5599bdd4ce54985670048aacd8a449a973ba9f35fce97dd55f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060count\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MarkEditMac/Modules/Sources/Statistics/StatisticsRule.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"00436c6cdfe28b89f30f160f8e4600b23d5724c2da37423fa1598821af1a01b8"}}],"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-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-345","guid":"d80d4b65-bbbe-b65d-958e-7ac466af18f9","name":"Insufficient Verification of Data Authenticity","shortDescription":{"text":"Insufficient Verification of Data Authenticity"},"helpUri":"https://cwe.mitre.org/data/definitions/345.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":14,"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."]}]}