{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"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":"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":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"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":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"NotesTextProcessor.highlightMarkdown (cyclomatic 106): NotesTextProcessor.highlightMarkdown has cyclomatic complexity 106 (threshold 15). Of this number, 105 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c2af9d853e309b1dd2bf83aa56b180b0fc772f12673f0732229c209d097956"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.processFileMenuItems (cyclomatic 85): ViewController.processFileMenuItems has cyclomatic complexity 85 (threshold 15). Of this number, 83 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController\u002BMenu.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1b1b7eb745fc38b5a508e76fe070e2dce23a7979d2a89498c093767551e8d4"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.keyDown (cyclomatic 76): ViewController.keyDown has cyclomatic complexity 76 (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":"FSNotes/ViewController.swift"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c10281f21974e3fd504589b75485ae2bea45e899e56d1177aa632fbecc378c"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.openSidebarSettings (cyclomatic 50): ViewController.openSidebarSettings has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"868de748a3a7ec4dc41554c6e4cad2e19c6b5e91410ec0671f8e4c5e866363d6"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.validateMenuItem (cyclomatic 50): EditorViewController.validateMenuItem has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f7b90edfce49204c962bdf2551fb205dee9a35b3a8e18b65197a81183dca14"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarOutlineView.outlineView (cyclomatic 46): SidebarOutlineView.outlineView has cyclomatic complexity 46 (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":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef64f6407db51ba04eff94314b4aba8136d437fb48cb36ad36545e20e1c8c07"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.makeSidebarSettingsMenu (cyclomatic 45): ViewController.makeSidebarSettingsMenu has cyclomatic complexity 45 (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":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3c388e28bde0a11558b703822c29e6c6c5c4ac4d591ec258dbb0c3f95ed98c"}},{"ruleId":"D1","level":"warning","message":{"text":"NotesTableView.makeBulkMenu (cyclomatic 40): NotesTableView.makeBulkMenu has cyclomatic complexity 40 (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":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"110776107bfb3358efcc0086407618b8d37dfcd09c1c171b7ba6aa68382d143c"}},{"ruleId":"D1","level":"warning","message":{"text":"NotesTableView.actionsSheet (cyclomatic 39): NotesTableView.actionsSheet has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fef521b76f9abccdcccb5a5be7127a62828587ce9aaf3d5dbfec2221360c8a"}},{"ruleId":"D1","level":"warning","message":{"text":"EditTextView.touchBar (cyclomatic 33): EditTextView.touchBar has cyclomatic complexity 33 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"d288e59b1278f38fd6a83ac8c10325e0a2b65ac498c4c03ee3044f69939820b0"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchQuery.isFit (cyclomatic 33): SearchQuery.isFit has cyclomatic complexity 33 (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":"FSNotesCore/Business/SearchQuery.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1275ec90a07edb1421ca9a62f7f0588f50446b15e017656a88192ddbe4bd8996"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.processLibraryMenuItems (cyclomatic 31): ViewController.processLibraryMenuItems has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController\u002BMenu.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c82d4f988d5b677625efa659c649b8490e9da08d6fd6fa2049110f995337b26"}},{"ruleId":"D1","level":"warning","message":{"text":"CloudDriveManager.change (cyclomatic 29): CloudDriveManager.change has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce914ac3c22e5f5852872e55b5aad3362f1bce9ffc8d235fd659f9b2bad68e4"}},{"ruleId":"D1","level":"warning","message":{"text":"EditTextView.keyDown (cyclomatic 29): EditTextView.keyDown has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4e70ab19c61b129d49c25428a1a12528b9efe40784efb4db2837abfc0d145e"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchTextField.control (cyclomatic 29): SearchTextField.control has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SearchTextField.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d979a7fc2544f782b4a4bb6ac5db7e2f4405c640ea5c8fe10373b98203b5220"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.processShareMenuItems (cyclomatic 27): ViewController.processShareMenuItems has cyclomatic complexity 27 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController\u002BMenu.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89845ee4449bd48db87ef5bbfeeaeefa2857147d8184ba67a6e63785f6c52f8"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.createNote (cyclomatic 26): EditorViewController.createNote 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":"FSNotes/EditorViewController.swift"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb95e4877fd2c8f20dbfa5bedad2a9031d008566f654b083a59f069a4e01c670"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsEditorViewController.switchValueDidChange (cyclomatic 26): SettingsEditorViewController.switchValueDidChange 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":"FSNotes iOS/Preferences/SettingsEditorViewController.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c78de113f27ffd0df255f82c20a77cf81163edd084523bbb0f00f0aa5c94909"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarOutlineView.isAllowedDropIndex (cyclomatic 26): SidebarOutlineView.isAllowedDropIndex has cyclomatic complexity 26 (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":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54268140ba9e55725c1b45812e40eea61470a7093c878fef0ba865fec77c615"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarOutlineView.outlineViewSelectionDidChange (cyclomatic 25): SidebarOutlineView.outlineViewSelectionDidChange has cyclomatic complexity 25 (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":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbab4493b2eff0d093404e9b6c7a1d8671bed8f65daea66a5eb277f2fea4a5c"}},{"ruleId":"D1","level":"warning","message":{"text":"GitViewController.tableView (cyclomatic 24): GitViewController.tableView has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/GitViewController.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8112542d00757b8024b4d0f838302e1572301991ccef762f69daddd3a1e3ff43"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsViewController.tableView (cyclomatic 24): SettingsViewController.tableView has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/SettingsViewController.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b077f947731312fa653928571960a3444b131fd1cd7cfe375190daeea6fdbc77"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectSettingsViewController.tableView (cyclomatic 23): ProjectSettingsViewController.tableView has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/ProjectSettingsViewController.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1752da67785107cc37158c30fd11363c414d26f73cc6c1acb28e4a8eb7cef613"}},{"ruleId":"D1","level":"warning","message":{"text":"FileSystemEventManager.start (cyclomatic 22): FileSystemEventManager.start 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":"FSNotes/Helpers/FileSystemEventManager.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3eaad05e058b539386c20d53a4ce157e1cd691db700bc9d62965ed51bf6c02"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarOutlineView.outlineView (cyclomatic 22): SidebarOutlineView.outlineView has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"781428babdfb8dc5db5ff3d4556d82a1a2f4436348476c3b88b8683348802beb"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.createNote (cyclomatic 21): ViewController.createNote has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"b136464efe252872ef0b87a3215b085a96f5077ebd78ea5a42ae66e66fc1e7d8"}},{"ruleId":"D1","level":"warning","message":{"text":"TextFormatter.todo (cyclomatic 21): TextFormatter.todo has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7ffac5bded6ab88ce3db222569c8119db837a3af11b79e574db1359392b669"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarTableView.selectItem (cyclomatic 21): SidebarTableView.selectItem has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/SidebarTableView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b529f46deb610ea6e20155d30ee0d4eac93db20833368ed5766ae290f3e2f7"}},{"ruleId":"D1","level":"warning","message":{"text":"SwiftHighlighter.expandRangeForMultilineConstructs (cyclomatic 21): SwiftHighlighter.expandRangeForMultilineConstructs has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/SwiftHighlighter/SwiftHighlighter.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83ed15de5bc6c5fd80d51dbfc8dbd924b89cd29e0921a297c05822efc072c8f"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.removeNotes (cyclomatic 20): EditorViewController.removeNotes has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"c364c5c797f227e591e5259a387425c16260fd1f4b5f63f8ef3e05b9d14484c7"}},{"ruleId":"D1","level":"warning","message":{"text":"NoteCellView.loadImagesPreview (cyclomatic 20): NoteCellView.loadImagesPreview has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NoteCellView\u002B.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59f8225821fc4f6189d224a851d1bd270c761044e045d042cd7aaa8d2caf725"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.buildSearchQuery (cyclomatic 19): ViewController.buildSearchQuery has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController.swift"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b1111d59566de28087b4e11d4eb0fbc57ac90ce982b3929ebd45eec7c686a9"}},{"ruleId":"D1","level":"warning","message":{"text":"PreferencesWebViewController.test (cyclomatic 19): PreferencesWebViewController.test has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesWebViewController.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"734332dcdb29a1e118bfc83e8f8e0b0ed455342645fa95f827f21bd7c8c43bd8"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.tagsHandler (cyclomatic 18): EditorViewController.tagsHandler 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":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86c735b54bceca572d775865537888ee6b4186309cf1502ee21bc60269c554a"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.tapHandler (cyclomatic 18): EditorViewController.tapHandler 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":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e40c0a7eff01fe0a81c316dfbe43491fd4225401a7361139677d6adc6c5deaa"}},{"ruleId":"D1","level":"warning","message":{"text":"TextFormatter.unTab (cyclomatic 18): TextFormatter.unTab 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":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bb011273fa1b782eb85235e73c2baeb697607689171c19a690811175aed999"}},{"ruleId":"D1","level":"warning","message":{"text":"TextFormatter.newLine (cyclomatic 18): TextFormatter.newLine 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":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ecb394a65a24349ab3a3fa5f7409f85fca671b505e2a9d6c05d359686b124e"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarOutlineView.rename (cyclomatic 18): SidebarOutlineView.rename 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":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd77ee1d735fd4ef6266ad9ff931ecf9047c922ef48f0f695522462fb670d07"}},{"ruleId":"D1","level":"warning","message":{"text":"Project.fetchAllDirectories (cyclomatic 18): Project.fetchAllDirectories 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":"FSNotesCore/Business/Project.swift"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53034f335cfd5d0ff20afb3930fa1bf5e904af99fdeb701387dc8e635de5465"}},{"ruleId":"D1","level":"warning","message":{"text":"NotesTextProcessor.refreshConcealedSyntax (cyclomatic 17): NotesTextProcessor.refreshConcealedSyntax 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":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c8994e0b9ebf424cb32096fa0409ede44e9902121606e29c57ee091f21a6a7"}},{"ruleId":"D1","level":"warning","message":{"text":"SingleTouchDownGestureRecognizer.touchesBegan (cyclomatic 17): SingleTouchDownGestureRecognizer.touchesBegan 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":"FSNotes iOS/Helpers/SingleTouchDownGestureRecognizer.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe69b091b86735286482243bfbe1ce8519876c757c20bb066b255660c269ca4"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsEditorViewController.tableView (cyclomatic 17): SettingsEditorViewController.tableView has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/SettingsEditorViewController.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"500060b59ed1ca0d8dfd1b45be23b1012c9e034cf1c5777765e6d2043453c204"}},{"ruleId":"D1","level":"warning","message":{"text":"FileSystemEventManager.handleDirEvents (cyclomatic 17): FileSystemEventManager.handleDirEvents 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":"FSNotes/Helpers/FileSystemEventManager.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1e830e34e7d3f146a3a4b47758a9774d49fe8af510f3ad911401829ae6fc17"}},{"ruleId":"D1","level":"warning","message":{"text":"EditTextView.mouseMoved (cyclomatic 17): EditTextView.mouseMoved 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":"FSNotes/View/EditTextView.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ab8d377cd271efa6700a1043f6c1510891a449e714d60ce228c10fd55662c3"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarOutlineView.getSidebarProjects (cyclomatic 17): SidebarOutlineView.getSidebarProjects 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":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5749b88b196d26421e3df9643039555e4b1c7b5f4863d24a4f1325a88ad1fc"}},{"ruleId":"D1","level":"warning","message":{"text":"Note.cleanMetaData (cyclomatic 17): Note.cleanMetaData 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":"FSNotesCore/Business/Note.swift"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"88844a2b30cc4ef8010efe7673c753c0ed85f75038295d4ffd901b3cc37c9347"}},{"ruleId":"D1","level":"warning","message":{"text":"Note.scanContentTags (cyclomatic 17): Note.scanContentTags 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":"FSNotesCore/Business/Note.swift"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede2dd35032e8b1675a2ad3362239c9f4a40593d37fbc9a7aa6acadf3342e774"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.sortQuery (cyclomatic 17): Storage.sortQuery 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":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2acb049f16b3ca968ae348e83b23f71bc1c22e2d7957949578726317df3727"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.textView (cyclomatic 16): EditorViewController.textView 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":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9bfa9f8674753811e4735d8ccf7eaf67f969a6e2829834a7eb882c7e9d6a94"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.toggleNotesLock (cyclomatic 16): EditorViewController.toggleNotesLock 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":"FSNotes/EditorViewController.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"db459a359958bd04db1b3926893b1a1f2196e32ad228c6354fff61382024f7e6"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewController.restoreOpenedWindows (cyclomatic 16): ViewController.restoreOpenedWindows 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":"FSNotes/ViewController.swift"},"region":{"startLine":2110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b6acf9bfce61e1b809c3aafd9c767876ab9ba5aac1fe75d00930291b3f207c"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarOutlineView.remove (cyclomatic 16): SidebarOutlineView.remove 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":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"2877ac11a52ad94f9b3dde2dc77d25f50653520544524abf4451ef98dce5ed20"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.getTitles (cyclomatic 16): Storage.getTitles 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":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24c9a08cac0f661f8453ad66ad73ea7d33f80fb35c407832edf838f287a524c"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.fetchAllDirectories (cyclomatic 16): Storage.fetchAllDirectories has cyclomatic complexity 16 (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":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fad06d3b5a19fe932411addb2df81de8206163d04ec760b630d0c247873d7ec"}},{"ruleId":"D1","level":"warning","message":{"text":"Storage.checkWelcome (cyclomatic 16): Storage.checkWelcome 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":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6f4bd84d8cfb3e7b3d45409f76249874fc5a026a39d0a0fa68a96b78fbff99"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.keyDown (cognitive 135): ViewController.keyDown has cognitive complexity 135 (threshold 15). Drivers by points: if/else 46 (105 pts), boolean chains 28, match/switch 1 (2 pts) (nesting depth added 60). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController.swift"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f094532c1cd8a8ea8528de6830df6d7d080315dfae4c1f23b8837f8f6408834"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesTextProcessor.highlightMarkdown (cognitive 127): NotesTextProcessor.highlightMarkdown has cognitive complexity 127 (threshold 15). Drivers by points: if/else 93 (111 pts), boolean chains 13, loops 1 (3 pts) (nesting depth added 20). Of this number, 126 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3849568f98d8150da5e8a1b7a797cbb9469ec5263dc535bc7a250bd0f596ce"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.validateMenuItem (cognitive 117): EditorViewController.validateMenuItem has cognitive complexity 117 (threshold 15). Drivers by points: if/else 27 (66 pts), ternaries 10 (39 pts), match/switch 4 (11 pts), boolean chains 1 (nesting depth added 75). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da864129a08844abb2396141802a92d4b3b0fc194ccbbc63fffeb6ef9575aad"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarOutlineView.outlineView (cognitive 86): SidebarOutlineView.outlineView has cognitive complexity 86 (threshold 15). Drivers by points: if/else 33 (62 pts), boolean chains 14, loops 4 (10 pts) (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"68432296d04b5a116da00f7647ab1686754a20cb0eb06d2abe1d587c1b5fb3ec"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.processFileMenuItems (cognitive 85): ViewController.processFileMenuItems has cognitive complexity 85 (threshold 15). Drivers by points: boolean chains 45, if/else 22 (39 pts), match/switch 1 (nesting depth added 17). Of this number, 83 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"FSNotes/ViewController\u002BMenu.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2f0fd0943601e14b335a419c570b07738e52f7238dd0ea0dde2000fba4abbe"}},{"ruleId":"D2","level":"warning","message":{"text":"CloudDriveManager.change (cognitive 67): CloudDriveManager.change has cognitive complexity 67 (threshold 15). Drivers by points: if/else 21 (55 pts), boolean chains 7, ternaries 1 (4 pts), loops 1 (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"7142f5e8dcdf521a0121d77adbb8707adee7800c96f35ea0579190470e7b3c16"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.openSidebarSettings (cognitive 65): ViewController.openSidebarSettings has cognitive complexity 65 (threshold 15). Drivers by points: if/else 39 (58 pts), loops 1 (3 pts), boolean chains 2, match/switch 1, ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0a616371da8ea30558df2bd711c30c41f963839658d274c66f96aa20abf391"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesTableView.actionsSheet (cognitive 56): NotesTableView.actionsSheet has cognitive complexity 56 (threshold 15). Drivers by points: if/else 24 (37 pts), boolean chains 11, ternaries 4 (8 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"2779131d1d0f3c2ab9680f9dbb5e111ddcbc8c343087ae78fc04ca395317b2ca"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFormatter.todo (cognitive 52): TextFormatter.todo has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (36 pts), loops 3 (7 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b18a1286fdaf8474f305a98a8b1cb9761e6cda8538bbe3ea3bdb6349bd0681"}},{"ruleId":"D2","level":"warning","message":{"text":"Note.cleanMetaData (cognitive 48): Note.cleanMetaData has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (42 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a18c0ab4aba1b6e374f073b0fddcd1bbc28977bb43dd58a7cb4902ef19b6f1b"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchTextField.control (cognitive 47): SearchTextField.control has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (36 pts), boolean chains 10, match/switch 1 (nesting depth added 20). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SearchTextField.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8e910ff186e822f67da6893cd7c0006943becf6610c65bc3219b721c384aa7"}},{"ruleId":"D2","level":"warning","message":{"text":"SwiftHighlighter.expandRangeForMultilineConstructs (cognitive 47): SwiftHighlighter.expandRangeForMultilineConstructs has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (30 pts), loops 3 (7 pts), boolean chains 5, ternaries 1 (5 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/SwiftHighlighter/SwiftHighlighter.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba33e02bd29740840aa642d5eef7fbd7f0c6193fb7d73b30980c035c9a511e9"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsEditorViewController.switchValueDidChange (cognitive 46): SettingsEditorViewController.switchValueDidChange has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (32 pts), match/switch 3 (6 pts), ternaries 2 (6 pts), boolean chains 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/SettingsEditorViewController.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2206f5dee92c2445c3045c09f0df3843ccd46776e918b22432f6a2ed87f9a071"}},{"ruleId":"D2","level":"warning","message":{"text":"EditTextView.keyDown (cognitive 39): EditTextView.keyDown has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 12 (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":"FSNotes/View/EditTextView.swift"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"7555ac05fbd2cd3f9b657b2f576bbfb0bcf0adf1ec2cfeb1aebffbb194847324"}},{"ruleId":"D2","level":"warning","message":{"text":"Note.parseURL (cognitive 39): Note.parseURL has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (34 pts), error handling 1 (4 pts), boolean chains 1 (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63194f0fa07f7828a9608b4a0bc910ae7cd83c172b01a718aca572fcd98f37f"}},{"ruleId":"D2","level":"warning","message":{"text":"SwiftHighlighter.processLanguage (cognitive 36): SwiftHighlighter.processLanguage has cognitive complexity 36 (threshold 15). Drivers by points: if/else 5 (18 pts), loops 5 (13 pts), ternaries 1 (4 pts), boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/SwiftHighlighter/SwiftHighlighter.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd9a984901966432d8a420e2591aa4a8e5e793a9ae8b6784463f0c4b1e14c16"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectSettingsViewController.tableView (cognitive 35): ProjectSettingsViewController.tableView has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (25 pts), match/switch 3 (6 pts), boolean chains 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/ProjectSettingsViewController.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45b279f2e55881804a567fe1d16011836bf0518f9f5e8e922a279247ffe3b10"}},{"ruleId":"D2","level":"warning","message":{"text":"EditTextView.touchBar (cognitive 34): EditTextView.touchBar has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 16, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"afebadb396c753899b442171334954cb2e911e30158c003e3db1af9da58cfafd"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarOutlineView.remove (cognitive 33): SidebarOutlineView.remove has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (26 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"0742b81ea16fccf23d9fbf765171c4d385ba90dfdec6751f4a4979cc81ce2d9d"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.processLibraryMenuItems (cognitive 32): ViewController.processLibraryMenuItems has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 17, if/else 10 (14 pts), match/switch 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController\u002BMenu.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"176c9b871d170de01371aef4a53c05b61f31052120ec110bda00e912b265088c"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.ubiquitousKeyValueStoreDidChange (cognitive 32): ViewController.ubiquitousKeyValueStoreDidChange has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (24 pts), loops 2 (8 pts) (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController.swift"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"0703324f0fe22295bb70ad70420c28fda5e79cb306c7eee3fb0e6f9fba430a79"}},{"ruleId":"D2","level":"warning","message":{"text":"CloudDriveManager.loadEncryptionStatus (cognitive 32): CloudDriveManager.loadEncryptionStatus has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (30 pts), boolean chains 2 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9f17e3d3866075902749e65fadd757c54d3eea063f5d5e664808a121134096"}},{"ruleId":"D2","level":"warning","message":{"text":"EditTextView.detectCodeBlockLanguageInput (cognitive 32): EditTextView.detectCodeBlockLanguageInput has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (24 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView\u002BComplete.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"5547080fcf07e46109902542c3d4b1ea6d827693fa82027fcef7a58a2fa9ee03"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesTableView.makeBulkMenu (cognitive 32): NotesTableView.makeBulkMenu has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 9, ternaries 4, match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"605fe72b8196c8b009f7fd9da2676c5749d7841eefd70bb5e50d9f9ead7512e4"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchQuery.isFit (cognitive 32): SearchQuery.isFit has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 32. 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":"FSNotesCore/Business/SearchQuery.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ce9c186137f17423d245ad251080f0d0182d362babca302ecd84067bdf2646"}},{"ruleId":"D2","level":"warning","message":{"text":"Note.removeFile (cognitive 31): Note.removeFile has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 4, loops 1 (4 pts) (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"0922300f158251356983031e6cf1f92af66c93e1f715476356656354ce11bc62"}},{"ruleId":"D2","level":"warning","message":{"text":"Note.scanContentTags (cognitive 31): Note.scanContentTags has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 3 (5 pts), boolean chains 2, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"707f68ff10a02f2f96b5948c852c76948bbd3a696b6c679a1e53da793671d92f"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSystemEventManager.handleDirEvents (cognitive 30): FileSystemEventManager.handleDirEvents has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Helpers/FileSystemEventManager.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed10e0e3d4446877194ffad471a451bbc3a0295230ca79f202e91cb3bcfa3026"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.createNote (cognitive 29): EditorViewController.createNote has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 8 (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":"FSNotes/EditorViewController.swift"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8f950a80f670e1090c24a444ed3e88d4632c14222458f6905fe76e86e3eb86"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFormatter.orderedList (cognitive 29): TextFormatter.orderedList has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (4 pts), boolean chains 2, ternaries 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf42cb8aec68998a48795add615610fba779ad1a901a34a7f0c4bdcb3588faf"}},{"ruleId":"D2","level":"warning","message":{"text":"SingleTouchDownGestureRecognizer.touchesBegan (cognitive 29): SingleTouchDownGestureRecognizer.touchesBegan has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/SingleTouchDownGestureRecognizer.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30db068bb64b752aa09e27e84cfe8bc0180d041fdd5f15ebe3366bfb68536e9"}},{"ruleId":"D2","level":"warning","message":{"text":"GitViewController.tableView (cognitive 29): GitViewController.tableView has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 11 (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":"FSNotes iOS/Preferences/GitViewController.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a43e06bfc8c9867561bc0c65fce89798aae37f4a50fbddca2208923cf1aaab4"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSystemEventManager.resolveConflict (cognitive 29): FileSystemEventManager.resolveConflict has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 2 (5 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Helpers/FileSystemEventManager.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f756742c6089d6279bc1dd6b066d6100610197933fe3600ec48fdd45fc27cfdc"}},{"ruleId":"D2","level":"warning","message":{"text":"NoteCellView.fixTopConstraint (cognitive 29): NoteCellView.fixTopConstraint has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 4 (12 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/NoteCellView.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6ea169335264a5d8461f37715d1c69fe1c54d721a263e680f06d67791589dd"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarOutlineView.outlineView (cognitive 29): SidebarOutlineView.outlineView has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 4, ternaries 1 (2 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"8764bd26e39baf8cf3b6fe19b73ecde97280a1b86bb3ffb75dae70d92c3ceb1e"}},{"ruleId":"D2","level":"warning","message":{"text":"PreferencesWebViewController.test (cognitive 28): PreferencesWebViewController.test has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 3 (6 pts), boolean chains 4, error handling 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":"FSNotes/Preferences/PreferencesWebViewController.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4fe6181e9bcef635eba154e8c99de312cfd426afdd0c2441b87a17874a17d5"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarOutlineView.outlineViewSelectionDidChange (cognitive 28): SidebarOutlineView.outlineViewSelectionDidChange has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 9 (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":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc48c05c1cdd86a7929090f22017e770a9856ae89d03e0b66f69b6fb0c2147c"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.createNote (cognitive 27): ViewController.createNote has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 7 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a10cf8d2a6438d7b3e96d0a1d7f30491e595864b0bf36245f838231114c2343"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.processShareMenuItems (cognitive 27): ViewController.processShareMenuItems has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 19, if/else 5 (7 pts), match/switch 1 (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":"FSNotes/ViewController\u002BMenu.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb19a51114c41f75afb2b061bc6ea9433d3e8142b63748057f9e21e905685f79"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFormatter.newLine (cognitive 27): TextFormatter.newLine has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 3 (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":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f81cac19863b78a8504c1a9045838085e263a73e29a0fe4e209a9b44cf1be5"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.tapHandler (cognitive 26): EditorViewController.tapHandler has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 4 (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":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa965db8d10e1cfc4308af7f9b043e649385b54abc61eff9f96574e61996e434"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.ubiquitousKeyValueStoreDidChange (cognitive 26): ViewController.ubiquitousKeyValueStoreDidChange has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (24 pts), loops 1 (2 pts) (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ed3cf74c9b39798a9f1441a0d31c1fa8e1356d76f40cd1ef2d36ad6b1a3c06"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.makeSidebarSettingsMenu (cognitive 26): ViewController.makeSidebarSettingsMenu has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20 (22 pts), match/switch 3, boolean chains 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":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20bd874e4001919ed0abc889ad9c761df3000b307e4851d935ae758504dc9f8"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.buildSearchQuery (cognitive 26): ViewController.buildSearchQuery has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 7, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController.swift"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"41103e27ef46db288ca09099526e462ca9a3a19adc22c773bc817e2394f134fe"}},{"ruleId":"D2","level":"warning","message":{"text":"MPreviewView.loadAttachments (cognitive 26): MPreviewView.loadAttachments has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 3, loops 1 (2 pts), error handling 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/MPreviewView.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"584c0f5746a1b0ecfef17685f2085d0acf2b2665ab2f2eb888e65c3c955f9353"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFormatter.unTab (cognitive 26): TextFormatter.unTab has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 2, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30372f4815c9b9f47cb15690c8304649efdcb2464563d1d4b7e9e4290b4c1ea"}},{"ruleId":"D2","level":"warning","message":{"text":"SFTPUploader.upload (cognitive 26): SFTPUploader.upload has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (2 pts), error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/SFTPUploader.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19ccec99888f330c13f05be55d81a23bcd72cc8e26f6d6be9ea64a230629f14"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarOutlineView.isAllowedDropIndex (cognitive 26): SidebarOutlineView.isAllowedDropIndex has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 17, if/else 9. 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":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"f317c95d2fcb0c5cc57a8f33b45c83439d358f6dbbce3a6d94fc82f1cf104beb"}},{"ruleId":"D2","level":"warning","message":{"text":"SwiftHighlighter.processMode (cognitive 26): SwiftHighlighter.processMode has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 3, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/SwiftHighlighter/SwiftHighlighter.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f533dbbb26dd6be38ce0482f841bf380a4163e6ab1b1b4ec2438a10fa42559"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.tagsHandler (cognitive 25): EditorViewController.tagsHandler has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e311ccf2fa4e1f5600542d77cc534a4247688afc4eb85d2a83bf68baf25a99"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.removeNotes (cognitive 25): EditorViewController.removeNotes has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"63af66c9ed51b939bfd1b6e6a3051022714843db42103fd58fe5a6e07f0f921f"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectSettingsViewController.tableView (cognitive 25): ProjectSettingsViewController.tableView has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 2 (6 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/ProjectSettingsViewController.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b06bb00b8a1d7a1ffef9413df2cc3aeb1a2ec9f3fb54a7aea194d7eaa09333"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsViewController.tableView (cognitive 25): SettingsViewController.tableView has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (19 pts), match/switch 3 (6 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":"FSNotes iOS/Preferences/SettingsViewController.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"356badccf835f82e09d99cbf2bc1934e0e414e22dd6119cff2333f33bc36e47d"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarOutlineView.rename (cognitive 25): SidebarOutlineView.rename has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 7 (10 pts), boolean chains 3, ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e490cfec05f1759d794473bb086cfab7718bf2f6e9a9ef9d3bc0d2a1f088b7a"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.restoreOpenedWindows (cognitive 24): ViewController.restoreOpenedWindows has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 5, 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":"FSNotes/ViewController.swift"},"region":{"startLine":2110}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb329478e2e46d0c98501acb3fad7626fb408df608c0108f55972f89d3e142e"}},{"ruleId":"D2","level":"warning","message":{"text":"CloudDriveManager.resolveConflict (cognitive 24): CloudDriveManager.resolveConflict has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (17 pts), error handling 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"218494413f27280f2f1c01bccfb4ea7b2a0a77477b2c37e1adf6dc11175b2e0f"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarOutlineView.getSidebarProjects (cognitive 24): SidebarOutlineView.getSidebarProjects has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 6, loops 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f11c94dcc8121e4d9e660da6f59e420574ce62b101f8b88d46c3e15a3243c1"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.configureSidebar (cognitive 23): ViewController.configureSidebar has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 3 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0c9d5d8a52ed5c2eaa24be2841e13632c9e87079306fa2d0c98619f38064c3"}},{"ruleId":"D2","level":"warning","message":{"text":"MPreviewView.loadImages (cognitive 23): MPreviewView.loadImages has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/MPreviewView.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"4970f8ed632640b9c455f10987d928eea202b2b78f208bf08596620ad0ed88d5"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesTextProcessor.convertAppTags (cognitive 23): NotesTextProcessor.convertAppTags has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"356bb128118fac3ea5317574e4cd0700cf6f95ab71920253d57464390cf8ece7"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFormatter.list (cognitive 23): TextFormatter.list has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (4 pts), boolean chains 2, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"9322268df67cbb4d7a67426ef44beb6690e4467982304fb34131381d7ab884cf"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultExtensionViewController.tableView (cognitive 23): DefaultExtensionViewController.tableView has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/DefaultExtensionControllerView.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb15042778cee8f228fd458e5f93f5c76e55e4f843d24464a09eb798204cf1c"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.sortQuery (cognitive 23): Storage.sortQuery has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 8, ternaries 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7a1d79c0d02ef25e4605efa86c41d7f74a4a1a74aa1e7c32eb29e8ded1bd12"}},{"ruleId":"D2","level":"warning","message":{"text":"NSTextStorage.addTabStops (cognitive 23): NSTextStorage.addTabStops has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (6 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NSTextStorage\u002B\u002B.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a420d168d84ea4e372f9e6bf754afc5ec365fcaa3f30523dbfe1b664a72066ed"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.uploadWebNote (cognitive 22): EditorViewController.uploadWebNote has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4, loops 1 (2 pts), error handling 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":"FSNotes/ViewController\u002BWeb.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5b047696f36cd630a41951f6c7e1dca7ec31bf69e8be21055f5cebee3b011c"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectSettingsViewController.switchValueDidChange (cognitive 22): ProjectSettingsViewController.switchValueDidChange has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2, 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":"FSNotes iOS/Preferences/ProjectSettingsViewController.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fef5c3a9e446a037f5158d27e14bba024818761ac9a3a4a37658903cac01271"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarTableView.selectItem (cognitive 22): SidebarTableView.selectItem has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, boolean chains 8. 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":"FSNotes iOS/View/SidebarTableView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c88d02dfc6e322606e8d70e8da36603287c21aec65ada3fa72589b866e02ff3"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSystemEventManager.start (cognitive 22): FileSystemEventManager.start has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 9 (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":"FSNotes/Helpers/FileSystemEventManager.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d79f71d98818fca716fd5801c5e23a223c9521b874b6f170168101ecd493815"}},{"ruleId":"D2","level":"warning","message":{"text":"NoteCellView.renderPin (cognitive 22): NoteCellView.renderPin has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/NoteCellView.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4a005826374b9e4a94efd136a30d6230a3226c9678015de8db9033811efffe"}},{"ruleId":"D2","level":"warning","message":{"text":"HtmlExtractor.swift.cleanHTMLString (cognitive 22): HtmlExtractor.swift.cleanHTMLString has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/HtmlExtractor.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd8cf011e493ad237c3ba94671bc327a29da766ab294f883ae6108e793170ff"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.textView (cognitive 21): EditorViewController.textView has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"d842911acea38f9eed7505c5e6bf60cad52222ca23b24e3f2345d9701a638081"}},{"ruleId":"D2","level":"warning","message":{"text":"SceneDelegate.handle (cognitive 21): SceneDelegate.handle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/SceneDelegate.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e62935d13ccfbab6f54a624483af859ff45c5d0a764a4cf09b56dc69303df4f"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.buildSearchQuery (cognitive 21): ViewController.buildSearchQuery has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6c9cca3543a7e6e8dec37258aaa41ac2d9a1c0d10d8fac943dba05e53279f2"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesTextProcessor.convertAppLinks (cognitive 21): NotesTextProcessor.convertAppLinks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7cf238fdc4dbfd56c84fb3f2a720667b5cf4eeff24fa81b9e0e4d2bb82abc7b"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSystemEventManager.reloadNote (cognitive 21): FileSystemEventManager.reloadNote has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Helpers/FileSystemEventManager.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c1c1962700c119a059f59dcadd1a7ae4b70759561cbd72f6e51415a0c09009"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarOutlineView.remove (cognitive 21): SidebarOutlineView.remove has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b51fc3cc925258d953ff87833e91f0e997966c54fbf2cb75f1ab1c925cfa50"}},{"ruleId":"D2","level":"warning","message":{"text":"Note.getCommits (cognitive 21): Note.getCommits has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (13 pts), error handling 2 (3 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Note\u002BHistory.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cde3c94240ceafe26f6cdd709329d0937230b07234562d732c7bc1ae6192b1c"}},{"ruleId":"D2","level":"warning","message":{"text":"Project.fetchAllDirectories (cognitive 21): Project.fetchAllDirectories has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 3 (6 pts), error handling 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Project.swift"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"54aeb639a4db6dc72728aaf872b4b264e385e4c8c59e3c51a7bb915f6e7c11e1"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.checkWelcome (cognitive 21): Storage.checkWelcome has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), error handling 2, loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa6ab911040c79392acb7b09eb171424f74760b6a2a80af30f847df74102281"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.toggleNotesLock (cognitive 20): EditorViewController.toggleNotesLock has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"061d9c1c0d9015b211df25e9094a4b98ae0e8c2f03865e5bb674f5a8f1df24d7"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFormatter.toggleTodo (cognitive 20): TextFormatter.toggleTodo has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"3178e82e1c0a4079208b1ce3771dac4b277a980507718ead15a88c8b83b90a79"}},{"ruleId":"D2","level":"warning","message":{"text":"CloudDriveManager.added (cognitive 20): CloudDriveManager.added has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"95056c2f54c3f2975fb5478baab18ec3acbb7474ec2b6405f61d64923c5d11d3"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsEditorViewController.tableView (cognitive 20): SettingsEditorViewController.tableView has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 4 (8 pts) (nesting depth added 6). 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":"FSNotes iOS/Preferences/SettingsEditorViewController.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f91c7d1a9e232cbd93f6607c4c09dad086e7abf2afefeae0e70fe2776304f9"}},{"ruleId":"D2","level":"warning","message":{"text":"EditTextView.mouseMoved (cognitive 20): EditTextView.mouseMoved has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 7 (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":"FSNotes/View/EditTextView.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"a545e2792a4ad88202265c924bc8d1c3f29c6a6aff8ea26872b71de95cf07f4a"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchTextField.search (cognitive 20): SearchTextField.search has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SearchTextField.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bcf640e83068c52c8cfa0307ea94e9c1225b0bd0bc37a7ed08f362c8b3f13c"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarOutlineView.keyDown (cognitive 20): SidebarOutlineView.keyDown has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 7 (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":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d09a14650112dd0f05149f67698e2ccc9bdd523f7585aa4e5607e39e164b50"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarOutlineView.delete (cognitive 20): SidebarOutlineView.delete has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (15 pts), error handling 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44391e05e6c63cc42e030034304d5993dec927d00d4415c0f918860b9f2fbc9"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.updateTableViews (cognitive 19): ViewController.updateTableViews has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController.swift"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88dd7191c02851517585304a16c34e1ea1538b2fe22baeec6e72d7944a31743"}},{"ruleId":"D2","level":"warning","message":{"text":"TextStorageProcessor.process (cognitive 19): TextStorageProcessor.process has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextStorageProcessor.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c8e3c8f38157064dacafffbff7aeee30c8f0f35e46682a5b12664fb2009bab"}},{"ruleId":"D2","level":"warning","message":{"text":"SingleTouchDownGestureRecognizer.touchesEnded (cognitive 19): SingleTouchDownGestureRecognizer.touchesEnded has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 3, 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":"FSNotes iOS/Helpers/SingleTouchDownGestureRecognizer.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a36e77c891dd1c6b5abcb26836f7fdc5b5517df8b11f3fe36e90fecd4ee00e3"}},{"ruleId":"D2","level":"warning","message":{"text":"NoteCellView.loadImagesPreview (cognitive 19): NoteCellView.loadImagesPreview has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 9, loops 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NoteCellView\u002B.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fdfc3863ebd34493ca5c88a4ed2def56e4b16a147e857e3669023c1cd6accc"}},{"ruleId":"D2","level":"warning","message":{"text":"Note.move (cognitive 19): Note.move has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (3 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a394b43701d80f8cc2ad0dff7885ae9c1efaa8b4770bdbd12d2aebed4c847a"}},{"ruleId":"D2","level":"warning","message":{"text":"Note.moveFilesAssetsToFlat (cognitive 19): Note.moveFilesAssetsToFlat has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), error handling 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":"FSNotesCore/Business/Note.swift"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc734b4edb649efb4b7df4e1ab479777d21c00e5e3629a32ce654a56cdc77a7"}},{"ruleId":"D2","level":"warning","message":{"text":"Note.getNonEmptyLines (cognitive 19): Note.getNonEmptyLines has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note\u002BPreview.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7500ab283fb7169a523c5bea25146fbaeb7ce6a098c96427ca1cbc95835c7f9"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.getTitles (cognitive 19): Storage.getTitles has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (8 pts), ternaries 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"435bdf0de30e28485fa2cf560e35ea935d2a7578248da45f2b611c7e6980e5ea"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.fetchAllDirectories (cognitive 19): Storage.fetchAllDirectories has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 3 (6 pts), error handling 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cb20a5ede32d354ab34c9f25aabdbd9e55e500c1a2ba8683c8cb741cd7d5a3"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.getMasterPassword (cognitive 18): EditorViewController.getMasterPassword has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 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":"FSNotes/EditorViewController.swift"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9c976dd461db5ef98a57ea074231e1d25e15e635fcc0c0f5460890062a2646"}},{"ruleId":"D2","level":"warning","message":{"text":"EditTextView.handleURLs (cognitive 18): EditTextView.handleURLs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView\u002BDragOperation.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0f54e05d6dbccced073de599132ef28258551de4df7367245b0a007bc07771"}},{"ruleId":"D2","level":"warning","message":{"text":"PreferencesAdvancedViewController.viewDidAppear (cognitive 18): PreferencesAdvancedViewController.viewDidAppear has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, ternaries 1 (3 pts), loops 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesAdvancedViewController.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d75ac61f3b3b7163c44738a9aabcc3b378df109459ad681adf407e344d0bc3"}},{"ruleId":"D2","level":"warning","message":{"text":"EditTextView.copy (cognitive 18): EditTextView.copy has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be20e507b96fec25b55f4069bd36733b6891d1220a986fdee9a90c6c7a5e0dc"}},{"ruleId":"D2","level":"warning","message":{"text":"NoteCellView.applyPreviewStyle (cognitive 18): NoteCellView.applyPreviewStyle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/NoteCellView.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dda2ea5632e54fef0f237a8f3489e176317737ec5fac8383cd32ffb53807f9b"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarOutlineView.outlineView (cognitive 18): SidebarOutlineView.outlineView has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34a13476f25d6d2c6472c73d78b244b47aef8719ade098ec793ccf096683974"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.sortNotes (cognitive 18): Storage.sortNotes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7 (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":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"467a26b7e7b23952f78e2fa80d6f84aface6ac4bef098b5357fe3eea1e372c7b"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.fetchBookmarkUrls (cognitive 18): Storage.fetchBookmarkUrls has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"f788e7d9d423db4eb72d1397231a1887bf1dff5ee9ce9436b73b77a741007b01"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesTextProcessor.refreshConcealedSyntax (cognitive 17): NotesTextProcessor.refreshConcealedSyntax has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 5, loops 1 (2 pts), ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd813ff545337ab4a401f662ccc027a69e42c8d315a1336936c0b094b69b8003"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFormatter.bold (cognitive 17): TextFormatter.bold has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (TextFormatter.italic) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01913ffb56b6c9c20c7408b6b338231ab69cde2ed477d87351415f5158b1e4e"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFormatter.italic (cognitive 17): TextFormatter.italic has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (TextFormatter.bold) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"61aeff4cab3db5d18299293a2188739c659927897d16132a96a897200e499fcf"}},{"ruleId":"D2","level":"warning","message":{"text":"CloudDriveManager.remove (cognitive 17): CloudDriveManager.remove has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca27091a6b3db8bec9b3f1e94ccadafb913177d9b46806225459090a686e3635"}},{"ruleId":"D2","level":"warning","message":{"text":"NoteCellView.getPreviewImage (cognitive 17): NoteCellView.getPreviewImage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NoteCellView.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e42f856b97601734b6ffc9c544657426f85e73efaa8278eadc30f20370a418"}},{"ruleId":"D2","level":"warning","message":{"text":"NoteCellView.getPreviewImage (cognitive 17): NoteCellView.getPreviewImage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/NoteCellView.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3a8bedaa22fa4e4018dfd62650e774b397f48f633f746e70ab890754c3da03"}},{"ruleId":"D2","level":"warning","message":{"text":"Note.write (cognitive 17): Note.write has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 1, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5bbaf0182d06eb7b80616ee6e2ceca7efd63b1e570259f35b5d3cddedfc74f4"}},{"ruleId":"D2","level":"warning","message":{"text":"Reference.updateTargetCommit (cognitive 17): Reference.updateTargetCommit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 2 (6 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":"FSNotesCore/Git/reference/Reference\u002BTarget.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a48a627eab681e7c32486ca16b2d3ce207f0633f8eecb6b0e4f594c9dd88780"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.swift.replaceHorizontalRulesOutsideCodeBlocks (cognitive 17): Markdown.swift.replaceHorizontalRulesOutsideCodeBlocks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Markdown.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf5c10f88a92d8db6adf71515dc8fc0bc0c0b9e8517b633643e8975338f6dec"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.isBetweenBraces (cognitive 16): EditorViewController.isBetweenBraces has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"941e0f9149a7b46240e3f1d28527ed9378bf71f8714ac0a82e8604d4b6af663d"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.makeFullSnapshot (cognitive 16): EditorViewController.makeFullSnapshot has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, 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":"FSNotes/ViewController\u002BGit.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0692a063813e1ce56effbc6ab80e91064a8f4d32979d0afbdf96d2bc890bb1b"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.getSSHResource (cognitive 16): EditorViewController.getSSHResource has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, loops 1 (2 pts), error handling 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":"FSNotes/ViewController\u002BWeb.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff985252e40236f9c29824a87fdc298bd6391c160e3a2e626e4a886aabcc4250"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.togglePreview (cognitive 16): EditorViewController.togglePreview has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb2dac44888e9a83133af94db62eec62f9a3fda6c70aa74e0c4f05ed3742863"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewController.move (cognitive 16): ViewController.move 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":"FSNotes/ViewController.swift"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfb7c2d1a9fbb636a1a6796d366e225dd31c0917925538bf6373490e886083b"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFormatter.hasPrefix (cognitive 16): TextFormatter.hasPrefix has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb0727a76f1bfc534788b0eba146ed91625c6376cd3b1c192ae19a1b5d2a857"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalViewController.documentPicker (cognitive 16): ExternalViewController.documentPicker has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, error handling 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":"FSNotes iOS/Preferences/ExternalViewController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"038c2cec1a77c584805da309d88489d53831f41c04f36097c404a1c95217f456"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage.restoreCloudPins (cognitive 16): Storage.restoreCloudPins has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ec9e7ad653fb06dc4264f2ada605d076e6666de1b6c28dced5ca2a7471e632"}},{"ruleId":"D2","level":"warning","message":{"text":"NSTextStorage.highlightKeyword (cognitive 16): NSTextStorage.highlightKeyword has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, loops 1 (2 pts), error handling 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":"FSNotesCore/NSTextStorage\u002B\u002B.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f254cf52e14534fa3ec30898ec1c4e3b5e5177af04a4eec2cc1c8f9bcded064"}},{"ruleId":"D2","level":"warning","message":{"text":"index.html.loadCodeActions (cognitive 16): index.html.loadCodeActions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 188, 201, 176, \u2026). 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":"Resources/MPreview.bundle/index.html"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a099ef4cbe615528861b9474de9b9094188e1f1ef6768ac8231ef3b60438a5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Note: TooManyMethods \u2014 138 methods, declared across 3 files: Business/Note.swift (121), FSNotesCore/Note\u002BHistory.swift (12), Business/Note\u002BPreview.swift (5). The bar is 30 methods; this is 108 over it, 4.60\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"054de81e413b23b337d880af9209f32d62756c18681ca34a711f680ea6efcc62"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorViewController: TooManyMethods \u2014 130 methods, declared across 8 files: FSNotes iOS/EditorViewController.swift (84), FSNotes iOS/EditorViewController\u002BSearch.swift (17), FSNotes/ViewController\u002BGit.swift (9), FSNotes/EditorViewController\u002BScrollPosition.swift (6), \u002B4 more file(s). The bar is 30 methods; this is 100 over it, 4.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":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bd0f8617043e209556c1f6a72112a892162f5aeed1121c7f4a8107ec33502b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ViewController: TooManyMethods \u2014 123 methods, declared across 4 files: FSNotes iOS/ViewController.swift (87), FSNotes iOS/ViewController\u002BMore.swift (27), FSNotes/ViewController\u002BMenu.swift (5), FSNotesCore/ViewController\u002BWebApi.swift (4). The bar is 30 methods; this is 93 over it, 4.10\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":"FSNotes iOS/ViewController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0176fb84b0f09b459b12b50a99ae394604b2f22228f9412a785cd97a832ccaee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditTextView: TooManyMethods \u2014 106 methods. The bar is 30 methods; this is 76 over it, 3.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f081f64a99e6f8c95c2797e8fb0d0d1363b08591a90c3ac61a4238a7149d90f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Note: ClassTooLong \u2014 1343 significant lines (blank, comment-only and punctuation-only lines excluded), 138 methods. The bar is 400 significant lines; this is 943 over it, 3.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"099b9b7be4c10336d272c4c506e8d029ce91ecd4450e8d015b6ceec603a9867f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Storage: TooManyMethods \u2014 99 methods, declared across 2 files: Business/Storage.swift (97), Extensions/Storage\u002BGit.swift (2). The bar is 30 methods; this is 69 over it, 3.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":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3899ce6cf573c4a27cef34ca1252a3dcc9dbbcd2f6fb4dd3356074b76fd4ea46"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ViewController: ClassTooLong \u2014 1308 significant lines (blank, comment-only and punctuation-only lines excluded), 83 methods. The bar is 400 significant lines; this is 908 over it, 3.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d690b93c646166a89e0bc64e322815b5b6d8af1230c13fdeb1727132225d7d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotesTextProcessor.highlightMarkdown: MethodTooLong \u2014 highlightMarkdown runs 316 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 216 over it, 3.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea415ed5cb4644d61a6595037b534df78af0df21c007bdd86eba4172949c1aa4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Project: TooManyMethods \u2014 88 methods, declared across 3 files: Business/Project.swift (55), Extensions/Project\u002BGit.swift (31), Business/Project\u002BDate.swift (2). The bar is 30 methods; this is 58 over it, 2.93\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":"FSNotesCore/Business/Project.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"46da8e48380c8f59b37547e6812c138af223d6134732af1723c16ae7391480b9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EditTextView: ClassTooLong \u2014 1171 significant lines (blank, comment-only and punctuation-only lines excluded), 106 methods. The bar is 400 significant lines; this is 771 over it, 2.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"9928b55c86f2ce79b05166e840808f9d6f2cd2947b12a865433c8dea9e4bc3ae"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SidebarOutlineView: ClassTooLong \u2014 1141 significant lines (blank, comment-only and punctuation-only lines excluded), 85 methods. The bar is 400 significant lines; this is 741 over it, 2.85\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7f21d470d8822d31b3bb5ef68a91ceac5b62fd9fc15815e1110d64199f7c75"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SidebarOutlineView: TooManyMethods \u2014 85 methods. The bar is 30 methods; this is 55 over it, 2.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa595075e14d2417f5c1b0c49eb926ec8830fde9b46d1ff67c9bc908e115398"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ViewController: TooManyMethods \u2014 83 methods. The bar is 30 methods; this is 53 over it, 2.77\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"507614a64309806363e8357b1f4b25bc3eb01c9f35c12fe7d70210f00d13c495"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UserDefaultsManagement: ClassTooLong \u2014 1086 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 686 over it, 2.72\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/UserDefaultsManagement.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f59f8cc58434f58f14c1942bf89e9f5238fa4ef36f4589b3796f612dd4d502"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Business/Note.swift: FileTooLong \u2014 1348 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: Note (16-2304). The bar is 500 significant lines; this is 848 over it, 2.70\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9692a6893617fe7578e48544c9a3d68c5eb1a028644061794b08c3c4be5560"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FSNotes/ViewController.swift: FileTooLong \u2014 1314 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ViewController (16-2223). The bar is 500 significant lines; this is 814 over it, 2.63\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"753a5b56d6ddda23a9f6eaededf754f50490f3cf11dfea7ed27f49ec1dcf12bb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ViewController: ClassTooLong \u2014 1020 significant lines (blank, comment-only and punctuation-only lines excluded), 123 methods. The bar is 400 significant lines; this is 620 over it, 2.55\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc46fe79f59e5cbde59e56fbb4a3d7e370b57cfd9495b309f4ccbfd4d5b1b24"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EditorViewController: ClassTooLong \u2014 1015 significant lines (blank, comment-only and punctuation-only lines excluded), 130 methods. The bar is 400 significant lines; this is 615 over it, 2.54\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d74e0b1dcbb9e107480b693f990cb0c5a231e3ad4b7ff4c88c7e2d695993a06"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Storage: ClassTooLong \u2014 943 significant lines (blank, comment-only and punctuation-only lines excluded), 99 methods. The bar is 400 significant lines; this is 543 over it, 2.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"249e4042198aa24c72b0ff5946b38b7f63c02b233baf54091e9cc6e97f68edd5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: View/EditTextView.swift: FileTooLong \u2014 1173 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: EditTextView (12-1946). The bar is 500 significant lines; this is 673 over it, 2.35\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bc91266c275b2bc54904a9e5d3464ace8baddddd0fb52b2a894f72d237c765"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EditorViewController: ClassTooLong \u2014 937 significant lines (blank, comment-only and punctuation-only lines excluded), 61 methods. The bar is 400 significant lines; this is 537 over it, 2.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c7016ab0946c31ff11504248f3ca27586f07ec8fb9654ebf1b965ae23365e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: View/SidebarOutlineView.swift: FileTooLong \u2014 1144 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: SidebarOutlineView (13-2030). The bar is 500 significant lines; this is 644 over it, 2.29\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37486e3d043677f4f037bf2c0c3c378cff20491408231ab8098bf24d7a0e302b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FSNotesCore/UserDefaultsManagement.swift: FileTooLong \u2014 1092 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: UserDefaultsManagement (17-1826). The bar is 500 significant lines; this is 592 over it, 2.18\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/UserDefaultsManagement.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abd5906dbd2aad81f0f21328d69218dc6b8f6e0f94179591ac98909fe7b7a36"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextFormatter: ClassTooLong \u2014 864 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 464 over it, 2.16\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c1c82f7fb11431d67a82bb646ec352f7e1a477769c42de2dc1030fcf438c99"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NotesTextProcessor: ClassTooLong \u2014 857 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 457 over it, 2.14\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"dedf96fd276bc95c4c9f3dea0edf24e07135230497d003949726ca62d687dac4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FSNotes iOS/ViewController.swift: FileTooLong \u2014 1038 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ViewController (15-1699). The bar is 500 significant lines; this is 538 over it, 2.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a596784277ab920a2cec9f35391b4676412c7e40460f7b6b1b0333be383374"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FSNotes iOS/EditorViewController.swift: FileTooLong \u2014 1022 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: EditorViewController (17-1685). The bar is 500 significant lines; this is 522 over it, 2.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4670e093e72117f8d5369d1918e057c29c76831b80fe73af6ac1f00daa2634"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorViewController: TooManyMethods \u2014 61 methods. The bar is 30 methods; this is 31 over it, 2.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a8dee5906d9864330ba100e97b7114916cf0b020e249421e3c36610c0c4d1e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NotesTableView: ClassTooLong \u2014 770 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. The bar is 400 significant lines; this is 370 over it, 1.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3a0460eb94d2b3ce9ec341ec13a0324792d9782b5d52ccff8a17d1e7276b92"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Business/Storage.swift: FileTooLong \u2014 951 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Storage (18-1608). The bar is 500 significant lines; this is 451 over it, 1.90\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6051638a4b04fe307bf23204436ce7acbd794b0f1690edb692f0f80da9393af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FSNotes/EditorViewController.swift: FileTooLong \u2014 942 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: EditorViewController (15-1558). The bar is 500 significant lines; this is 442 over it, 1.88\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2077b0589576d41d97590f2736951ab685ce49e657d72c7aab078401992b6f47"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FSNotesCore/NotesTextProcessor.swift: FileTooLong \u2014 887 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: NotesTextProcessor (15-1407). The bar is 500 significant lines; this is 387 over it, 1.77\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c66bcbcd3e55508d1433f05fce6ab39057eba21dadac7f6192add6b51e4063"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditTextView: TooManyMethods \u2014 53 methods, declared across 6 files: View/EditTextView.swift (23), View/EditTextView\u002BComplete.swift (18), View/EditTextView\u002BClicked.swift (6), View/EditTextView\u002BDragOperation.swift (3), \u002B2 more file(s). The bar is 30 methods; this is 23 over it, 1.77\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/EditTextView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b3dd026301f6fe610c63e0059bf7b44dcd2bc43993c55647bcc6107222b245"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FSNotesCore/TextFormatter.swift: FileTooLong \u2014 877 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: TextFormatter (24-1374). The bar is 500 significant lines; this is 377 over it, 1.75\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab16784572fdccdf2217cf3a13543c9bd20cfef1b95793cfb544718dff1f35e0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ViewController.openSidebarSettings: MethodTooLong \u2014 openSidebarSettings runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db735ffd3154553716feb33795ceef3bf23b9f45544c03f847120078b12608a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NotesTableView: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/NotesTableView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fee209ed6284f685b0ceee1bd4b1dc0c4c4a30eaaa74fce933cb8ea52d623c0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NotesTableView: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1af06f36a6ebcd8ccbd62a661d71885b5dbb05b836cd08efc5e2b0e826a1f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: View/NotesTableView.swift: FileTooLong \u2014 775 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: NotesTableView (15-1263). The bar is 500 significant lines; this is 275 over it, 1.55\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"860d253ee99094364369e685caa2c509e331b322dc276e3b78af31749bd435bc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SidebarTableView: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/SidebarTableView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce14a96fa888f97061d001dfc1ad3432c346a3377d928dcf3c5f8028543fbfbb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TextFormatter: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"219ff3a27a937cbe1645db229c406bb8f47fa9c7053b96b0adffb083da54f87c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ViewController.keyDown: MethodTooLong \u2014 keyDown runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController.swift"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"777ba98f664b8ce297f4d91cf42d8faf681112fefcd5c6d94c12849b6171c62c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Project: ClassTooLong \u2014 570 significant lines (blank, comment-only and punctuation-only lines excluded), 88 methods. The bar is 400 significant lines; this is 170 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Project.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9181f83c8252ae2a030b90952230e8ec8e64a66410711886fade03ae92f4ae1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ViewController.processFileMenuItems: MethodTooLong \u2014 processFileMenuItems runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController\u002BMenu.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6ee08dabdeb7b2895b1acaa5244674dee4f0795df50d757cd2c621294ded97"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SidebarTableView: ClassTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 124 over it, 1.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/SidebarTableView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c112208a5b815c3b3a0114ee78f3514878c32dcaa2e91b50208892f260a0921b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MPreviewView: ClassTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 102 over it, 1.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/MPreviewView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf9de524dbe5c84744e0572ed38a60caea29715755cdbc8ae6101edd672c6b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FSNotesCore/MPreviewView.swift: FileTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: MPreviewView (21-806). The bar is 500 significant lines; this is 113 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/MPreviewView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"336dc48c301e494dfb999a507d1bdd736ed9b0c4c6da5b6b23bcb4f59ee46014"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorViewController.validateMenuItem: MethodTooLong \u2014 validateMenuItem runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"799d8dde76636872e0f22d999755b5be11f3952953179b8e099ce1f2d810f96a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FSNotes iOS/ViewController\u002BMore.swift: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 107 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1236007f154c2ab8e77de8b35b073e0335856d18de134503d7fb7d9b00058d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MPreviewView.htmlFromTemplate: MethodTooLong \u2014 htmlFromTemplate runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/MPreviewView.swift"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdabdd5948f292e5d63f625ef35780f74f2d41421c10e1a2bab22eab9defb11c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ViewController.makeSidebarSettingsMenu: MethodTooLong \u2014 makeSidebarSettingsMenu runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef6d5e37a31fa4ed6972d79c7cf90e1b39f78498a247d50d390129253461bfc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Business/Project.swift: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: Project (12-977). The bar is 500 significant lines; this is 72 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Project.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d206310955d9fe01d91443cb9605462ebac72d90cd049bad2a9602e5a70741e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotesTableView.actionsSheet: MethodTooLong \u2014 actionsSheet runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"831761e446771f38ecb0b0084012e38f68be57901e81a88b1ae1e4291d3477ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotesTableView.makeBulkMenu: MethodTooLong \u2014 makeBulkMenu runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"76760d34e81ad0a1fff6811a10757401209aea46f88d5191e14e131d16fb4dfa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppDelegate: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/AppDelegate.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8751f1362cafb3b44d97fb015583a30f8d7c9fb7e1c8d34314ea725a74019000"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: View/SidebarTableView.swift: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SidebarTableView (14-883). The bar is 500 significant lines; this is 27 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/SidebarTableView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"570fdea6a6f15e922f7da49ffeb470c5c01059ead816a3838fa68e5140632847"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NotesTableView: ClassTooLong \u2014 404 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 4 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/NotesTableView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5df9b4588c28caf7baf7da6857b22307bd386ed55403458e8c9590d9457334"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 14 shared lines): FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift:10-77 | FSNotesCore/SwiftHighlighter/Themes/AtomOneLight.swift:10-78 | FSNotesCore/SwiftHighlighter/Themes/GitHubDark.swift:10-95 | FSNotesCore/SwiftHighlighter/Themes/SolarizedDark.swift:10-71 | FSNotesCore/SwiftHighlighter/Themes/SolarizedLight.swift:10-66 \u2014 These 5 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0eb80204e15040a85c3beea89d6400f09bb6dea9e2d33c5fb7ec09de56dc1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (60 shared lines): FSNotes iOS/View/NotesTableView.swift:424-601 | FSNotes iOS/ViewController\u002BMore.swift:180-436 \u2014 These two members are variants of one another: 60 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2bd526719b7c23f1c49aea80dbbbd655823b796707c62a8c2084f624a4cb128"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (42 shared lines): FSNotes iOS/MoveViewController.swift:113-163 | FSNotes iOS/Preferences/ProjectsViewController.swift:106-154 \u2014 These two members are variants of one another: 42 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/MoveViewController.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8bda137e3c59af802ace5f6422c1d4d2078f2b1d537f99a204286441994fa73"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): FSNotes iOS/Extensions/UIColor\u002B.swift:14-20 | FSNotes iOS/Extensions/UIColor\u002B.swift:22-28 | FSNotes iOS/Extensions/UIColor\u002B.swift:30-36 | FSNotes iOS/Extensions/UIColor\u002B.swift:38-44 | FSNotes iOS/Extensions/UIColor\u002B.swift:46-52 | FSNotes iOS/Extensions/UIColor\u002B.swift:55-61 | FSNotes iOS/Extensions/UIColor\u002B.swift:63-69 | FSNotes iOS/Extensions/UIColor\u002B.swift:71-77 | FSNotes iOS/Extensions/UIColor\u002B.swift:79-85 | FSNotes iOS/Extensions/UIColor\u002B.swift:87-93 | FSNotes iOS/Extensions/UIColor\u002B.swift:95-101 | FSNotes iOS/Extensions/UIColor\u002B.swift:103-109 \u2014 These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Extensions/UIColor\u002B.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2216f734c96d312f5d8ef0caddea0cb8f7da61bf3f999902c4c232a6f569295d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): FSNotes/Extensions/UserDefaultsManagement\u002B.swift:44-58 | FSNotes/Extensions/UserDefaultsManagement\u002B.swift:69-83 | FSNotes/Extensions/UserDefaultsManagement\u002B.swift:94-108 | FSNotes/Extensions/UserDefaultsManagement\u002B.swift:119-133 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Extensions/UserDefaultsManagement\u002B.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8026144a318a880d8d7873b0da4c957014d1c337609059741d17153b569b1c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): FSNotes iOS/Helpers/Sidebar.swift:24-130 | FSNotes/Helpers/Sidebar.swift:17-103 \u2014 These two members are one piece of code written twice and then edited apart: 87 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":"FSNotes iOS/Helpers/Sidebar.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d3ddf447412970ffdc364213e5783135c7c4eb7ec69f3265b92994d28b3634"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): FSNotesCore/Business/Project.swift:830-886 | FSNotesCore/Business/Storage.swift:817-875 \u2014 These two members are one piece of code written twice and then edited apart: 57 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":"FSNotesCore/Business/Project.swift"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fc833fe893b60d892bcc88d191432e2e94cc27c143c285081ce0386216a5e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): FSNotes/View/EditTextView\u002BMoveLines.swift:12-79 | FSNotes/View/EditTextView\u002BMoveLines.swift:81-146 \u2014 These two members are one piece of code written twice and then edited apart: 66 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView\u002BMoveLines.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc6d139796f7d697b5265155f497e3fb1a76e4edf7df4c60d1304413a2a6485"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): FSNotesCore/NotesTextProcessor.swift:298-343 | FSNotesCore/NotesTextProcessor.swift:345-395 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12a66f321a5a577caa739772cb67335709dd511c62f0f6a3abc3632fe89088d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): FSNotes iOS/ViewController\u002BMore.swift:581-637 | FSNotes iOS/ViewController\u002BMore.swift:677-729 \u2014 These two members are one piece of code written twice and then edited apart: 53 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":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"798939aa228e17814cbcf84318f61ad293b63092f57e9954228156e07172f357"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): FSNotes iOS/Helpers/CloudDriveManager.swift:438-493 | FSNotes/Helpers/FileSystemEventManager.swift:327-385 \u2014 These two members are one piece of code written twice and then edited apart: 56 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":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bb46b2d3b160a4e6302010aef5af5320c403b10624b855f3ef75a2707a2dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): FSNotesCore/TextFormatter.swift:1153-1208 | FSNotesCore/TextFormatter.swift:1210-1279 \u2014 These two members are one piece of code written twice and then edited apart: 56 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":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"698f2d64f93565a3fe11082eabd60e5fd1472371b0b8304a148df4c38e241ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): FSNotes iOS/View/SidebarTableView.swift:52-94 | FSNotes iOS/View/SidebarTableView.swift:96-141 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/SidebarTableView.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a233d8fef040d7f00d62be17d2efb113481ae21e8280f17b7c587680ad09c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): FSNotes iOS/View/NoteCellView.swift:141-173 | FSNotes/View/NoteCellView.swift:255-288 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NoteCellView.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d585fbd56a91dc561d2c6b5b2809f00e65cbd56fdc96af872f17068a897da4d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): FSNotes iOS/View/NotesTableView.swift:962-1003 | FSNotes/EditorViewController.swift:751-783 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4759f8b6cfbdab86fa1298ac41afc3b2925dea7c5fd3677c86bac70cf1d933c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): FSNotesCore/Business/Note.swift:375-410 | FSNotesCore/Business/Note.swift:412-447 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d721b8fb2f54b8c26c71574458f620ac8e5a95189fed103b095aa31522c6d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): FSNotes iOS/Helpers/SingleImageTouchDownGestureRecognizer.swift:14-42 | FSNotes iOS/Helpers/SingleImageTouchDownGestureRecognizer.swift:44-66 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/SingleImageTouchDownGestureRecognizer.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cb6f3bd067c97bffc6216d0088660aa30f3a390260baa6dcb24bbcc09a092e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): FSNotesCore/Business/AttributedBox.swift:38-61 | FSNotesCore/Business/AttributedBox.swift:63-86 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/AttributedBox.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b42594e5e393d99d4256061fe6664c2e094f7ceea1081c944d67aad49939ed6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 38\u002B corresponding lines): FSNotesCore/TextFormatter.swift:79-120 | FSNotesCore/TextFormatter.swift:122-163 | FSNotesCore/TextFormatter.swift:198-235 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 38 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":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4da2ec709e06dd1c3449381ad1eeb6f9dfdc2d401fadcf3a7636fb668ca133"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): FSNotes iOS/Preferences/ExternalViewController.swift:13-54 | FSNotes iOS/Preferences/ProjectsViewController.swift:204-236 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/ExternalViewController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ef02d405730d782c99627505d193a5c3d9c13b45368f8b34eedaef3decdfe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): FSNotes iOS/ViewController.swift:695-726 | FSNotes/ViewController.swift:1891-1926 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e13fa35e409e8937d9bb4a1c62c12e24ce18c458477d177364268983175205"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): FSNotes iOS/View/NotesTableView.swift:689-715 | FSNotes iOS/ViewController.swift:1496-1523 | FSNotes iOS/ViewController.swift:1525-1553 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 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":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed66375575aa8d876b9de0c488de001ea0a13cfe16a13e6342af9137228d23b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): FSNotesCore/Business/ImageFormat.swift:15-48 | FSNotesCore/Extensions/Data\u002B.swift:24-58 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/ImageFormat.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e310afb113d26f37d36eb96318b3599eb5a58f8a84183f315ca6536781c932"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): FSNotes iOS/Preferences/ProViewController.swift:136-157 | FSNotes iOS/RevisionsViewController.swift:60-75 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/ProViewController.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0309525b0d179143073f2a96dfdb4e275ff49a5425bdb1dd49fb9189b9155708"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): FSNotes/AppDelegate\u002BURLRoutes.swift:209-238 | FSNotes/AppDelegate\u002BURLRoutes.swift:283-315 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/AppDelegate\u002BURLRoutes.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"2506df2c7b91204f4d504d6f502bd3744deacd753a250bc0c9e799d00b6df71f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): FSNotes/Extensions/NSImage\u002B.swift:86-122 | FSNotes/Extensions/NSImage\u002B.swift:195-223 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Extensions/NSImage\u002B.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"54aa18f667b8e92413237077379cf9a422153ca5a476cef44068abcc94a30d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): FSNotes/View/EditTextView.swift:401-427 | FSNotes/View/EditTextView.swift:429-452 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87fac5f0327945b9bb3640b64c2cb7122551d0e9ee40fc882af2baa080da8e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): FSNotesCore/Extensions/Project\u002BGit.swift:62-85 | FSNotesCore/Extensions/Project\u002BGit.swift:87-117 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Extensions/Project\u002BGit.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"897868f727051165d9aea3d3198e6a44cda362191a0c0f1c557ebc90097303ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): FSNotesCore/TextFormatter.swift:532-551 | FSNotesCore/TextFormatter.swift:553-573 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c1ec37bb1333f8a82eab39158eadb6af38e4b5c6e6a55772ada703cd290086"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): FSNotes/View/EditTextView.swift:1542-1567 | FSNotesCore/TextFormatter.swift:888-908 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b024876b6b09c13d5a9ccd34b626e720efbfac3a5a445c318d06379bddaa078"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): FSNotes iOS/EditorViewController.swift:1292-1315 | FSNotes iOS/View/EditTextView.swift:372-395 | FSNotes/View/EditTextView.swift:578-601 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 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":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4a57d0ac0ce3243c79bed6fadc740f4c0128c07cbc377c9bdebc569db30535"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): FSNotes iOS/ViewController\u002BMore.swift:842-873 | FSNotes iOS/ViewController\u002BMore.swift:898-921 | FSNotes iOS/ViewController\u002BMore.swift:929-957 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 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":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4e168618f90fe9267ea4c259df024f26587bcf92d4acd5b2ba9763effd0128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): FSNotes/View/SidebarOutlineView.swift:1392-1412 | FSNotes/View/SidebarOutlineView.swift:1414-1434 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d2f2b48b65acd99426958a6cb02f9dbc47e5dbfe8c5ef16ec71f3459dcc0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): FSNotes iOS/View/EditTextView.swift:29-51 | FSNotes/View/EditTextView.swift:40-66 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/EditTextView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab01a8de895deabf7a9af4dd10a583cf818145a584d8a0e35051d7cb48c8637d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): FSNotes iOS/Extensions/UITextView\u002B.swift:40-62 | FSNotes iOS/Extensions/UITextView\u002B.swift:64-80 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Extensions/UITextView\u002B.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2c39c0166d87fb6231298cff37b94ac97130ecf3feb16d89b4185b02020443"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): FSNotesCore/Git/reference/Reference.swift:106-128 | FSNotesCore/Git/revision/FileHistoryIterator.swift:24-50 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Git/reference/Reference.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e987c9f3999ef5e319467f55a054282492ed43598b272bb671de55a30127bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): FSNotes iOS/Preferences/GitViewController.swift:267-283 | FSNotes iOS/Preferences/GitViewController.swift:285-301 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/GitViewController.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da4fcf85c1bfb1d94e1939aa98a5192b89782e2300419fa3351224cff309735"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): FSNotesCore/Git/branch/Branches.swift:60-84 | FSNotesCore/Git/remote/Remotes.swift:54-77 | FSNotesCore/Git/repository/Repository\u002BLookup.swift:20-45 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 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":"FSNotesCore/Git/branch/Branches.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"243dbefab7db331533cf5482caf3e55d7703e784899011acf945407c33fe31e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): FSNotes/EditorViewController.swift:225-242 | FSNotes/EditorViewController.swift:244-262 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"0255a6f86e9834243aa5897082b7a09ac1ea87cda461aee40ebcddb5a76b9e91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): FSNotes iOS/View/EditTextView.swift:243-269 | FSNotes iOS/View/EditTextView.swift:325-352 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/EditTextView.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcc817bbc84c3b3e8c99dfdd15984a311c5a3dc2329c1bb6165f01eec441673"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): FSNotesCore/Business/Project\u002BDate.swift:12-26 | FSNotesCore/Business/Project\u002BDate.swift:28-44 \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":"FSNotesCore/Business/Project\u002BDate.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cd9b0e4f26663742b978f967a7568c697639354f3473155b386384e9c337c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): FSNotes/Helpers/SandboxBookmark.swift:40-57 | FSNotes/Helpers/SandboxBookmark.swift:145-162 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Helpers/SandboxBookmark.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b36e7f86e5ae71967f7ce4d2e48b3a833c7cbb77dfb438e2a9357ae41d20947"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): FSNotesCore/FSParser.swift:113-127 | FSNotesCore/NotesTextProcessor.swift:268-282 \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":"FSNotesCore/FSParser.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73e5f35d909adc279f0fda8a2ed498950d33c8aadf8026853f1f0a9de172302"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): FSNotes/ViewController.swift:1957-1973 | FSNotes/ViewController.swift:1975-1990 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController.swift"},"region":{"startLine":1957}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f33af69e644470f27e2eebfa43569f51ada47c0e75d47623a0b3b388b122903"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): FSNotes iOS/EditorViewController.swift:604-618 | FSNotes/View/EditTextView.swift:1702-1718 \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":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fac5139839db18732470bd804a6d2a1790ea56cfdc39bd6b77e16414eb1c5d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): FSNotes iOS/Extensions/UIBarButtonItem\u002B.swift:12-22 | FSNotes iOS/Helpers/Buttons.swift:36-48 \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":"FSNotes iOS/Extensions/UIBarButtonItem\u002B.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e78c8ce09fd273efc20c0947a799434f94abaaf66930831dbc2be6046da02c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): FSNotesCore/Business/NoteAttachment.swift:262-283 | FSNotesCore/Business/NoteAttachment.swift:291-315 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/NoteAttachment.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b579a4e321fb097dca641c6b5a9cb75bd765783fad060966614cb33a96d3e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): FSNotesCore/Business/Storage.swift:200-222 | FSNotesCore/UserDefaultsManagement.swift:252-268 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bda8d97b93e116d24416547d53f5c480dd00d9f1ae60f688d0e73c66fd5a06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): FSNotes iOS/Preferences/ProViewController.swift:42-56 | FSNotes iOS/Preferences/SettingsEditorViewController.swift:74-91 \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":"FSNotes iOS/Preferences/ProViewController.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a59dda411e5d44e3d13ecdad733b7515699869507133bf97d436c602741200"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): FSNotes iOS/Helpers/CloudDriveManager.swift:265-279 | FSNotes iOS/Helpers/CloudDriveManager.swift:281-295 \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":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"d719f24114e4c1fd94541de6fc45b1bb6284e5fc4002e2480fc920ffb100d025"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): FSNotes iOS/View/NotesTableView.swift:1252-1262 | FSNotes/View/NotesTableView.swift:707-719 \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":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9fc082be2ad822d91cce4dda241d8a0dff6fb406a89b911c46d776d27e5091"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): FSNotes/View/MPreviewContainerView.swift:278-307 | FSNotes/View/MPreviewContainerView.swift:309-339 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/MPreviewContainerView.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7a2bfc6598e9510039e712701c2be7de03b8b29eda17ca964e6d8bdec5ce99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): FSNotes iOS/Preferences/CodeFontViewController.swift:34-50 | FSNotes iOS/Preferences/CodeThemeViewController.swift:34-47 | FSNotes iOS/Preferences/FontViewController.swift:42-58 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/CodeFontViewController.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a02422ef8d8865dfc219ab9d4e585b59a67edc083d83d8c1a8d78fd400afec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): FSNotes/View/SidebarOutlineView.swift:134-150 | FSNotes/View/SidebarOutlineView.swift:1731-1750 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a36267f47ebc12be86a487ea2d355275611fc99c3785957a92b5f7caf402618"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): FSNotes/View/SidebarOutlineView.swift:1348-1363 | FSNotes/View/SidebarOutlineView.swift:1365-1380 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1348}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1aa587cfe624203c76d862d003ee537bb63e0e0cdd25ac1c0aa3897be26055"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): FSNotesCore/FSParser.swift:158-165 | FSNotesCore/NotesTextProcessor.swift:1437-1449 \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":"FSNotesCore/FSParser.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09056b9b845981fdd57769083ab349f69de40d4f9f56eece42331277ac708be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): FSNotes iOS/MoveViewController.swift:79-92 | FSNotes iOS/Preferences/ProjectsViewController.swift:54-69 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/MoveViewController.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4374414fe860136c7e8e9a70f2d0b26c2275f8707cb1f85b8d8716118bda1772"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): FSNotes iOS/EditorViewController.swift:1530-1544 | FSNotes/View/EditTextView.swift:1857-1871 \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":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fe1e0b79815e0bc7f6616ccdfb2f1e68c5b18f1fd389b4e6a6f3856ce95d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): FSNotes iOS/ViewController.swift:1278-1293 | FSNotes iOS/ViewController.swift:1295-1309 \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":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"18059f179002ad39d9cb2379b13c9387eb791b6a143b8d01f0ab680ea4048162"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): FSNotesCore/Business/FSTag.swift:18-28 | FSNotesCore/Business/FSTag.swift:30-39 \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":"FSNotesCore/Business/FSTag.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9a9f9cb00714a7adeed7ca354dc167748d58b056f041bac7bf9b3dfad7be12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): FSNotesCore/TextFormatter.swift:427-440 | FSNotesCore/TextFormatter.swift:442-459 | FSNotesCore/TextFormatter.swift:461-474 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"293491c884d3cc72726655696954a4d8b6f0a866efcbf6e32fe0f2d713783203"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): FSNotes/AppDelegate.swift:316-329 | FSNotes/AppDelegate.swift:363-376 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/AppDelegate.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9115a1ab99088167dc8a370f6605a522cbd3aeaec5620d6c14b4be23de33ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): FSNotes/Extensions/NSImage\u002B.swift:35-58 | FSNotes/Extensions/NSImage\u002B.swift:133-142 \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":"FSNotes/Extensions/NSImage\u002B.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fcd02b62cdf39c47aeab70bf93d1f5bd4bfc61e199aa669a8e1025d99de0b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): FSNotesCore/Git/index/Index.swift:46-61 | FSNotesCore/Git/repository/Repository\u002BOpen.swift:23-37 \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":"FSNotesCore/Git/index/Index.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"deae899a1ddcab5ebec3a7628b04d04cdb19495fb82e539378cb2c4c50127095"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): FSNotesCore/SwiftHighlighter/SwiftHighlighter.swift:109-120 | FSNotesCore/SwiftHighlighter/SwiftHighlighter.swift:122-131 \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":"FSNotesCore/SwiftHighlighter/SwiftHighlighter.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0f2d5ff1539adbcedbb823d5407f6604697d408400542d5357218a9ae18c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): FSNotes iOS/EditorViewController.swift:1478-1486 | FSNotes/View/EditTextView.swift:1882-1894 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddca7098c02a957307d4129f9bd68f85daae0785d7e7e31366fe830f461df39c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): FSNotesCore/Git/head/Head\u002BCheckout.swift:47-57 | FSNotesCore/Git/head/Head\u002BCheckout.swift:67-77 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Git/head/Head\u002BCheckout.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"46de281badea73ba6c5e4a26f7004811b01652e0a2a78b443b18773a5f19999c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): FSNotesCore/Business/Project.swift:454-473 | FSNotesCore/Business/Project.swift:895-918 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Project.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"855e9e6a1907aa30c6a45a33a8a244242d1ac669b8544a944a7b4b68a0c6b726"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): FSNotes iOS/View/EditTextView.swift:53-58 | FSNotes/LayoutManager.swift:38-43 \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":"FSNotes iOS/View/EditTextView.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e0f5e06019e9a42f199928c8261554ba7c343503369310df7b20f8a99fcc09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): FSNotesCore/Git/commit/Commit.swift:73-86 | FSNotesCore/Git/tree/Tree.swift:72-86 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Git/commit/Commit.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e9e48c6c8fe8917bded99ae79ed557f7d32cb780adac75993ebf53732ac6ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): FSNotesCore/Git/index/Index\u002BFiles.swift:45-56 | FSNotesCore/Git/index/Index\u002BFiles.swift:83-94 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Git/index/Index\u002BFiles.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b82469981489f1a4a5dff4831d3f79b345f6b88c6cab5ad56cb7d5047c2e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): FSNotesCore/Business/Note.swift:205-225 | FSNotesCore/Business/Note.swift:227-243 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e8116dc586ad22aece3bfc98a1100f45f000d5204f69d3b82f671b9e6d952e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): FSNotes/View/OutlineHeaderView.swift:13-29 | FSNotes/View/TitleBarView.swift:39-51 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/OutlineHeaderView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fe9870ea1813223a12a4b8da64fbc0b16de679e851216f494c28fafdab3ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): FSNotes iOS/View/SidebarTableView.swift:494-509 | FSNotes iOS/View/SidebarTableView.swift:511-525 \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":"FSNotes iOS/View/SidebarTableView.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"101df723e9c07e15ef6324a7badfccdead46078f0bceab106284ac8ca28a1c07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): FSNotes iOS/ViewController\u002BMore.swift:959-967 | FSNotes iOS/ViewController.swift:1642-1650 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad91ebe01c7b26f2115297f5df3cd75e70b9681b1e8579947e1ec0040f9049d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): FSNotes/View/SidebarOutlineView.swift:983-998 | FSNotes/View/SidebarOutlineView.swift:1000-1017 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dca2910258a28bf5d28b1daf5af2afb1c6fa8f9298f4f014d6b701321f187eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): FSNotesCore/Business/Project.swift:602-617 | FSNotesCore/Business/Project.swift:619-633 \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":"FSNotesCore/Business/Project.swift"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f73bcf21f7ae4082dd164ecf578649f0d731f13ff8ed8b8c1c1501602a7869d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): FSNotes/EditorViewController.swift:289-303 | FSNotes/EditorViewController.swift:305-317 | FSNotes/EditorViewController.swift:319-333 | FSNotes/EditorViewController.swift:335-348 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"526a67d7c97fd8e1cb3dba40c5fcd98b49dec00ee70d084a218d84e3bdb24f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): FSNotes/Preferences/PreferencesAdvancedViewController.swift:109-117 | FSNotes/Preferences/PreferencesEditorViewController.swift:183-191 | FSNotes/Preferences/PreferencesGeneralViewController.swift:159-167 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesAdvancedViewController.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfa615b1dd4bb3a45abb040edc204b07db108ed5a7fa53c8453d2bf42bff160"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): FSNotes/Preferences/PreferencesEditorViewController.swift:167-181 | FSNotes/Preferences/PreferencesEditorViewController.swift:201-215 \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":"FSNotes/Preferences/PreferencesEditorViewController.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a85614862d2854c3749af11539563e371f62fa53051e48b2c13eed9d3ee25ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): FSNotes/EditorViewController\u002BSharing.swift:46-53 | FSNotes/EditorViewController\u002BSharing.swift:55-64 \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":"FSNotes/EditorViewController\u002BSharing.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3cae071ad748a2b6ab3261fa2a54d81f8c58903e86b51020dc66e54fe1a9db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): FSNotes/Preferences/PreferencesEditorViewController.swift:79-90 | FSNotes/Preferences/PreferencesEditorViewController.swift:235-246 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesEditorViewController.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"adfa9741e61b368d55780b182c06a93dc0dca19869db0622e349aa72bc0c58e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): FSNotes iOS/View/SidebarTableView.swift:707-718 | FSNotes iOS/View/SidebarTableView.swift:720-731 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/SidebarTableView.swift"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"750615aebe0fa7d60c34b5ec653154c65c976e183382dc73ee746b9294bfdf5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): FSNotes/EditorViewController.swift:954-959 | FSNotes/EditorViewController.swift:961-966 | FSNotes/EditorViewController.swift:968-973 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"6648b496d2b4c83ad51d351427913de81a1dbf41a9d3e348c205659a3306785b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): FSNotes/Preferences/PreferencesUserInterfaceViewController.swift:89-99 | FSNotes/ProjectSettingsViewController.swift:62-75 \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":"FSNotes/Preferences/PreferencesUserInterfaceViewController.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb1dfc347564d31358e7d10bf6cfc4e2609383430f68af47042266bc182ac23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): FSNotes/ProjectSettingsViewController.swift:31-42 | FSNotes/ProjectSettingsViewController.swift:44-54 \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":"FSNotes/ProjectSettingsViewController.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fac0fadb907794a153d19a67e4d92ef38875cec39fb2c63390fa81a5c820a85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): FSNotesCore/Business/Storage.swift:671-680 | FSNotesCore/Business/Storage.swift:682-691 \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":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb46df09e89538cb3be9f6de4f636fcbf97fe80c81bc7e4629131740c78c6df5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): FSNotes iOS/EditorViewController.swift:103-113 | FSNotes iOS/ViewController.swift:1180-1195 \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":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"307c9771c754da83ecef41aaa093e398c8ffc3bbcad50e77fa0531f227227691"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): FSNotes iOS/View/NotesTableView.swift:794-801 | FSNotes iOS/View/NotesTableView.swift:911-917 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0c8fe487d3d2b865078da9bd0f7065d59f329637d713b7e676deb175d6bbb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): FSNotes/View/SidebarOutlineView.swift:1130-1147 | FSNotes/View/SidebarOutlineView.swift:1149-1166 | FSNotes/View/SidebarOutlineView.swift:1168-1185 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d57be9c0fde028912213025e7a1f338f01398553aa853de37d25147c8d700e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): FSNotes iOS/EditorViewController.swift:191-194 | FSNotes iOS/Preferences/GitViewController.swift:400-414 | FSNotes iOS/Preferences/SFTPViewController.swift:403-406 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e00d169fefaf8cf3ba989e34704e36f560747922ef6eb8ee59f4d08708b330"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): FSNotes iOS/View/NotesTableView.swift:36-42 | FSNotes iOS/View/SidebarTableView.swift:309-315 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e95ac79ee30817d641df9eaee5fc8662f684b436d6867eacfb3106c61e13941"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): FSNotesCore/Business/Project.swift:395-407 | FSNotesCore/Business/Project.swift:409-417 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Project.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2ad61b88cde38704b2751dccdc9aa2d8395e86ac844f072f2f5623fcc5b391"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): FSNotes iOS/Extensions/UserDefaultsManagement\u002B.swift:196-205 | FSNotesCore/UserDefaultsManagement.swift:1734-1742 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Extensions/UserDefaultsManagement\u002B.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c58de384804570d2c5f0b0d877354c17da533c12e09950c0c9598cacd422f17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): FSNotes iOS/MoveViewController.swift:28-35 | FSNotes iOS/Preferences/ProjectsViewController.swift:27-45 \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":"FSNotes iOS/MoveViewController.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1748c76a145ae4bb7a413238eb07f657a13d26ad6fe2a8b5b683b37450a6541"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): FSNotes/Preferences/PreferencesWebViewController.swift:222-228 | FSNotes/ViewController\u002BWeb.swift:184-190 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesWebViewController.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fcd06f513aeeb23ce91f915aca6d3d962d8a85bd272e71805b94ed36cbc91a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): FSNotesCore/FSParser.swift:86-100 | FSNotesCore/NotesTextProcessor.swift:1341-1354 | FSNotesCore/NotesTextProcessor.swift:1358-1371 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/FSParser.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b11484102d645aa8a81bf77968935e27a22b85ed9627d76d2b2bc4f9666d7ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): FSNotes iOS/Extensions/UserDefaultsManagement\u002B.swift:206-212 | FSNotesCore/UserDefaultsManagement.swift:1743-1749 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Extensions/UserDefaultsManagement\u002B.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"304970acc50302e983c0ddc3266ff10ba1a065bc192b192337595091c180a054"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): FSNotesCore/Business/Note.swift:1264-1274 | FSNotesCore/Business/Note\u002BPreview.swift:122-128 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc9c06eb2733f3ab4850f308c872d2e7a854a1536633c919898d4f9a3159935"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): FSNotesCore/Git/remote/Remotes.swift:117-125 | FSNotesCore/Git/tag/Tags.swift:128-133 \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":"FSNotesCore/Git/tag/Tags.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"287f8996121443cdff4d5c3729eff256d4e634723390231e9ba724a7e8447755"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): FSNotes iOS/Preferences/CodeThemeViewController.swift:49-53 | FSNotes iOS/Preferences/LanguageViewController.swift:34-38 | FSNotes iOS/Preferences/ThanksViewController.swift:46-50 \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":"FSNotes iOS/Preferences/CodeThemeViewController.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"41769282da2e28e922bb36f35202bc3f43903222a71379879e953878c747fed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): FSNotesCore/FSParser.swift:103-105 | FSNotesCore/NotesTextProcessor.swift:1374-1376 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/FSParser.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6ecba3f7e0540cc3e31998ed83836cb9126bd11ffae328bd8bbe3bdf47f71e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): FSNotes iOS/Preferences/AppIconViewController.swift:120-124 | FSNotes iOS/Preferences/CodeFontViewController.swift:28-32 | FSNotes iOS/Preferences/CodeThemeViewController.swift:28-32 | FSNotes iOS/Preferences/ProViewController.swift:99-103 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/AppIconViewController.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5781b6587ab7dfe37e51a912859fa71b26195d614bfcad2da1f31083e502e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): FSNotes iOS/MoveViewController.swift:94-100 | FSNotes iOS/Preferences/LanguageViewController.swift:40-46 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/MoveViewController.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b1cad596e054a486746a69c6b44113d0562b6994f2839a0e7b1120f93b1ba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): FSNotes/AboutWindowController.swift:13-17 | FSNotes/PrefsWindowController.swift:13-17 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/AboutWindowController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e679841b17a73fbe2679f8913f214a86268f1a7b614f40c0d240e3567775eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201332 lines \u00D7 2): FSNotesCore/NotesTextProcessor.swift:645-673 | FSNotesCore/NotesTextProcessor.swift:714-745 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/NotesTextProcessor.swift:645\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"7223ded1aec06076aeb97b023c54b496ef6e5144cf6c1a5a02a2ba52a3f431e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): FSNotes iOS/Helpers/CloudDriveManager.swift:438-468 | FSNotes/Helpers/FileSystemEventManager.swift:327-357 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/Helpers/CloudDriveManager.swift:438\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ea791200f06655140715ef72655ac1d480404957173f685d63702a29f6d62f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): FSNotes iOS/View/NotesTableView.swift:1182-1210 | FSNotes iOS/View/NotesTableView.swift:1213-1243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cff128567db1ba7cb3610028d819ea9e401bda329a0830a62e1c77e09cf937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): FSNotes iOS/MoveViewController.swift:135-163 | FSNotes iOS/Preferences/ProjectsViewController.swift:128-154 \u2014 before extracting anything, compare \u0060FSNotes iOS/MoveViewController.swift\u0060 and \u0060FSNotes iOS/Preferences/ProjectsViewController.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/MoveViewController.swift:135\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/MoveViewController.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0544f2688c0e4b017aad12bffbebba339c860647ae6ec84ac26f0b7e3326a2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): FSNotesCore/NotesTextProcessor.swift:317-343 | FSNotesCore/NotesTextProcessor.swift:369-395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/NotesTextProcessor.swift:317\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bd532d0e721f9d43f294c1f2192ab0d7a4202de5229ac07afbe4b69f6b1186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201326 lines \u00D7 2): FSNotes/View/MPreviewContainerView.swift:282-307 | FSNotes/View/MPreviewContainerView.swift:331-339 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes/View/MPreviewContainerView.swift:282\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/MPreviewContainerView.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"7690ce8063edc0705072fbe0232fbe2f3290701bd840a7d1342c013254867a01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): FSNotesCore/FSParser.swift:133-156 | FSNotesCore/NotesTextProcessor.swift:1412-1435 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/FSParser.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7124ee455e95d62aa08656b100d4f195246ea0e89d0e896719341bc231796d95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): FSNotes iOS/View/SidebarTableView.swift:73-94 | FSNotes iOS/View/SidebarTableView.swift:121-141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/SidebarTableView.swift:73\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/SidebarTableView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be9cccbb38671e390b4020542ebcde54ef060554a618f2afeaaeb864c5cd6ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): FSNotes/EditorViewController.swift:599-619 | FSNotes/ViewController.swift:1704-1724 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes/EditorViewController.swift:599\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c25ad3b8b0b1e993793c9da8aa8e4a83ac66294b71e4771be87bb411548a61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): FSNotes/View/EditTextView\u002BMoveLines.swift:51-71 | FSNotes/View/EditTextView\u002BMoveLines.swift:118-136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: \u0060FSNotes/View/EditTextView\u002BMoveLines.swift:51\u0060 is reached only past a guard at line 19 that tests \u0060lineRange.location\u0060 and leaves the function early, and \u0060FSNotes/View/EditTextView\u002BMoveLines.swift:118\u0060 reads \u0060lineRange.location\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView\u002BMoveLines.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b50a22ad9b2e73f18a1aca70c2080409a4f620470a952f991a903932b327316"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): FSNotes iOS/Preferences/ExternalViewController.swift:13-30 | FSNotes iOS/Preferences/ProjectsViewController.swift:204-223 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/Preferences/ExternalViewController.swift:13\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/ExternalViewController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"640920f235eb942eae3a8f03066b73fbf730c58bb5dfd19b2ac84c44400d99dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): FSNotes iOS/ViewController.swift:1504-1523 | FSNotes iOS/ViewController.swift:1534-1553 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/ViewController.swift:1504\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"b614292a2167d82c1394ff63418e60bec514569a6656d60321818e8992bdf171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201319 lines \u00D7 2): FSNotes iOS/Helpers/Sidebar.swift:84-102 | FSNotes/Helpers/Sidebar.swift:63-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/Helpers/Sidebar.swift:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/Sidebar.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee543380fff377bea080b23caa7863732af7b136a5ba7a238f6547e4a0bf3a6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): FSNotes iOS/View/NotesTableView.swift:976-993 | FSNotes/EditorViewController.swift:761-778 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/NotesTableView.swift:976\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d5289b35a4b5926e2c907e7d8fdb8f283f21a79be71945a6435eaa9c554594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): FSNotes iOS/ViewController\u002BMore.swift:879-896 | FSNotes iOS/ViewController\u002BMore.swift:903-920 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/ViewController\u002BMore.swift:879\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"c484d0848f7f1e0ecf8a14259dc89a944e580b4bcd97d3dd4a78bced43819b74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): FSNotes iOS/View/NotesTableView.swift:729-745 | FSNotesCore/Business/Note.swift:2031-2047 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/NotesTableView.swift:729\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b31769543f26de44aa77db55886e5410c963ea8bbfef5e708f1f5bbf643242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): FSNotesCore/TextFormatter.swift:272-288 | FSNotesCore/TextFormatter.swift:364-380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/TextFormatter.swift:272\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ca6f397be4ea5cab539839e42365e9953151108559472ed09e696ed56a88f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): FSNotesCore/ViewController\u002BWebApi.swift:38-54 | FSNotesCore/ViewController\u002BWebApi.swift:113-129 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/ViewController\u002BWebApi.swift:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/ViewController\u002BWebApi.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"167918de4b42e7fdeea5e52f6243935d6af926fee7cb1ab337f6c2771d1f300c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): FSNotesCore/Business/AttributedBox.swift:43-61 | FSNotesCore/Business/AttributedBox.swift:68-86 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/Business/AttributedBox.swift:43\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/AttributedBox.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"db37525db0e5eb96041beed6783bfdac32f5c1e9ceb21247192b7791b1e2a791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): FSNotesCore/Git/branch/Branches.swift:67-81 | FSNotesCore/Git/remote/Remotes.swift:61-74 | FSNotesCore/Git/repository/Repository\u002BLookup.swift:28-42 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Git/branch/Branches.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9f1fc3e6bb180480e424076c466c7a6115d9fd2fc7fe2f0bcf3711d57a0849"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): FSNotesCore/TextFormatter.swift:1154-1168 | FSNotesCore/TextFormatter.swift:1211-1225 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/TextFormatter.swift:1154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf628e19e29d2134cb62cff79eace7b624bb736cf40a1e423377f788733d7af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): FSNotesCore/TextFormatter.swift:1194-1208 | FSNotesCore/TextFormatter.swift:1265-1279 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/TextFormatter.swift:1194\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36e74f469bc2e849d924e780c21ff4ea2cb91e74574a76cff1185ce33d13b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): FSNotes iOS/EditorViewController.swift:1302-1315 | FSNotes iOS/View/EditTextView.swift:382-395 | FSNotes/View/EditTextView.swift:588-601 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/EditorViewController.swift:1302\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bf924f9bf8409581767099459d798b5fc2de527d55b72f04400be3ac2373a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): FSNotes iOS/Helpers/CloudDriveManager.swift:480-493 | FSNotes/Helpers/FileSystemEventManager.swift:373-385 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/Helpers/CloudDriveManager.swift:480\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ed95e06609ee0f9f91e63184dc7ab36ab953c76f498364b07ffc01e3466291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): FSNotes iOS/View/NoteCellView.swift:184-195 | FSNotes/View/NoteCellView.swift:348-361 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NoteCellView.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"75147284a09856f4487fe3b0481aa9a8df1c9fa021fe19b03f1c5393258be78f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): FSNotesCore/Business/Project.swift:855-868 | FSNotesCore/Business/Storage.swift:845-858 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/Business/Project.swift:855\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Project.swift"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db88a7023293a7fc4a5ae541f976cbd8d54082409f8ad0f51a33bcb1bd3f0c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): FSNotes iOS/Helpers/SingleImageTouchDownGestureRecognizer.swift:19-31 | FSNotes iOS/Helpers/SingleImageTouchDownGestureRecognizer.swift:45-57 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/Helpers/SingleImageTouchDownGestureRecognizer.swift:19\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060FSNotes iOS/Helpers/SingleImageTouchDownGestureRecognizer.swift:36\u0060 calls \u0060Int\u0060 and \u0060FSNotes iOS/Helpers/SingleImageTouchDownGestureRecognizer.swift:61\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/SingleImageTouchDownGestureRecognizer.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9755b57e1e296c33114f6e8435f95db896d1fa267baf93ca037ab7502ff05b2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): FSNotes/Preferences/PreferencesWebViewController.swift:94-106 | FSNotes/Preferences/SettingsViewController.swift:88-100 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes/Preferences/PreferencesWebViewController.swift:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesWebViewController.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a223bc1a98c04f3c2916ee017a6746f91630140bf1928bc8fd0af3abf09692e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): FSNotes/View/SidebarOutlineView.swift:1400-1412 | FSNotes/View/SidebarOutlineView.swift:1422-1434 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes/View/SidebarOutlineView.swift:1400\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"1899b67c7b0377e98be376e85f324cf9522dae2758f2af8aa0e0c9924762acf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): FSNotesCore/TextFormatter.swift:533-545 | FSNotesCore/TextFormatter.swift:554-566 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/TextFormatter.swift:533\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07584dcc6c05cb268584080a735acc40d600b4b4c6603dac3fbccf72f53a394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): FSNotes/View/SidebarOutlineView.swift:135-147 | FSNotes/View/SidebarOutlineView.swift:1732-1743 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060FSNotes/View/SidebarOutlineView.swift:1746\u0060 calls \u0060expandItem\u0060, \u0060item\u0060 and \u0060FSNotes/View/SidebarOutlineView.swift:149\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3438ee4790a480e126f9cc46b508d1240a7b8c014b013f1f0b7405fb4f6b5bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): FSNotes/ViewController.swift:1075-1086 | FSNotes/ViewController.swift:1089-1100 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController.swift"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4118c4328e0683edd0d809adb31db986c7b02744ade12aae9e3146eb4ffb3e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): FSNotes/Extensions/UserDefaultsManagement\u002B.swift:48-58 | FSNotes/Extensions/UserDefaultsManagement\u002B.swift:73-83 | FSNotes/Extensions/UserDefaultsManagement\u002B.swift:98-108 | FSNotes/Extensions/UserDefaultsManagement\u002B.swift:123-133 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes/Extensions/UserDefaultsManagement\u002B.swift:48\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Extensions/UserDefaultsManagement\u002B.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c66ca5e187012c3b56926ede4249834768363a9d9d5335bdd0b3fd37ae3901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): FSNotes iOS/ViewController\u002BMore.swift:627-637 | FSNotes iOS/ViewController\u002BMore.swift:719-729 | FSNotes iOS/ViewController\u002BMore.swift:796-806 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/ViewController\u002BMore.swift:627\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"1125a975acb3918e3d6d8c5afb0a0b48ff5a376bfd6d430d5316ba5c6a02ddec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): FSNotes/EditorViewController.swift:124-134 | FSNotes/EditorViewController.swift:137-147 | FSNotes/EditorViewController.swift:150-160 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes/EditorViewController.swift:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d65389e86c6f4476d10ce803e61ce135f5bf96ec6c61ca909a73af448a4a556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): FSNotes iOS/Preferences/ProViewController.swift:58-68 | FSNotes iOS/Preferences/SettingsEditorViewController.swift:93-103 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/Preferences/ProViewController.swift:58\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/ProViewController.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"04025fec9c075061da9390d67da5c4f757142d232a3bc33bed529074a2f174e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): FSNotes iOS/View/NotesTableView.swift:475-482 | FSNotes iOS/View/NotesTableView.swift:517-527 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/NotesTableView.swift:475\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fdf2b84e7fb03981145b13d84481e1c1fc25e91ca89b0cde5d7a0d7bfbe9e58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201310 lines \u00D7 9): FSNotes/View/EditTextView.swift:1742-1746 | FSNotes/View/EditTextView.swift:1747-1755 | FSNotes/View/EditTextView.swift:1758-1766 | FSNotes/View/EditTextView.swift:1769-1777 | FSNotes/View/EditTextView.swift:1780-1789 | FSNotes/View/EditTextView.swift:1792-1801 | FSNotes/View/EditTextView.swift:1804-1812 | FSNotes/View/EditTextView.swift:1815-1823 | FSNotes/View/EditTextView.swift:1825-1831 \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes/View/EditTextView.swift:1742\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060FSNotes/View/EditTextView.swift:1755\u0060 calls \u0060tint\u0060, \u0060NSSize\u0060 and \u0060FSNotes/View/EditTextView.swift:1746\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abb7b6305f0ab7647da684295e47eb904572035b202fea529d322cef05fe36d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): FSNotes iOS/EditorViewController.swift:433-440 | FSNotes iOS/EditorViewController.swift:955-964 \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":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"85da6a48fe0020f46d8927dee30bb5de54797f11d716f99a5362d7cef271d9f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): FSNotes iOS/MoveViewController.swift:114-123 | FSNotes iOS/Preferences/ProjectsViewController.swift:107-116 \u2014 before extracting anything, compare \u0060FSNotes iOS/MoveViewController.swift\u0060 and \u0060FSNotes iOS/Preferences/ProjectsViewController.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/MoveViewController.swift:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/MoveViewController.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf651a3e0856bc0eb4f1b3844632a174f97c2c444dd47f19cbeaae68e4d2409"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): FSNotes iOS/Preferences/GitViewController.swift:274-283 | FSNotes iOS/Preferences/GitViewController.swift:292-301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/Preferences/GitViewController.swift:274\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/GitViewController.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d347a8e93af5d4709a90609d4e1d6e6f02ac197fcc66733ea191e345c345bc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): FSNotes/View/NoteCellView.swift:211-220 | FSNotes/View/NoteCellView.swift:232-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes/View/NoteCellView.swift:211\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/NoteCellView.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"454e4d192d6f79968aaa8c634425af443bb104090125f9ce8502ef50ee2689a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201310 lines \u00D7 3): FSNotesCore/Business/Note.swift:1421-1430 | FSNotesCore/NameHelper.swift:34-36 | FSNotesCore/NameHelper.swift:65-74 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/NameHelper.swift:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb242cf8cb84b94e410ef2fa3066b71c5bf9b755d06db001c5f6790c2ea624e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): FSNotes/Preferences/PreferencesAdvancedViewController.swift:110-117 | FSNotes/Preferences/PreferencesEditorViewController.swift:184-191 | FSNotes/Preferences/PreferencesGeneralViewController.swift:159-167 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesAdvancedViewController.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f439aa7f20e1b12aaf6eff4858bd44173e710199b2d26b8e9e68ef32feb50b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift:23-31 | FSNotesCore/SwiftHighlighter/Themes/AtomOneLight.swift:23-31 | FSNotesCore/SwiftHighlighter/Themes/GitHubDark.swift:46-53 \u2014 before extracting anything, compare \u0060FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift\u0060 and \u0060FSNotesCore/SwiftHighlighter/Themes/AtomOneLight.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift:23\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f8e8aef11c695d3d06e6d44072aba68f49ab5cf53fb9ae33709989a505faef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): FSNotes iOS/Preferences/ProViewController.swift:149-157 | FSNotes iOS/RevisionsViewController.swift:67-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/Preferences/ProViewController.swift:149\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/ProViewController.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcda6287940eae524e8f2459c17923df1a231c50d5f859e7ad6b050d700738a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): FSNotes iOS/View/NoteCellView.swift:141-151 | FSNotes/View/NoteCellView.swift:255-265 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/NoteCellView.swift:141\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NoteCellView.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d47b5a10709cc31b27f2d9f8fd9a4bf4df4184210778fbd72fbbe4d343c02c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): FSNotes iOS/ViewController.swift:1460-1468 | FSNotes/EditorViewController.swift:1168-1176 \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":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ae2f2f10cf2f1faefb640d9a01581c353e32e8dcf6c190f2d77afcd76d69a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): FSNotesCore/Business/Note.swift:382-390 | FSNotesCore/Business/Note.swift:419-427 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/Business/Note.swift:382\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d80a7bf1a5046274802e8d583e556f817b224d8e77280e37d90275b6531798b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): FSNotesCore/MPreviewView.swift:173-181 | FSNotesCore/MPreviewView.swift:416-424 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/MPreviewView.swift:173\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/MPreviewView.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a4e79f62a22e153a6d1c07bf73bfc0d749c18257ddba625e47cfb9a1b5c5d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): FSNotesCore/TextFormatter.swift:165-173 | FSNotesCore/TextFormatter.swift:175-183 \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":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"236cb92667f0afca050c9fbca9441cd81f231071cc8c5742e9748b6b3687a79c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift:10-20 | FSNotesCore/SwiftHighlighter/Themes/AtomOneLight.swift:10-20 | FSNotesCore/SwiftHighlighter/Themes/GitHubDark.swift:10-17 | FSNotesCore/SwiftHighlighter/Themes/SolarizedDark.swift:10-17 | FSNotesCore/SwiftHighlighter/Themes/SolarizedLight.swift:10-17 \u2014 before extracting anything, compare \u0060FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift\u0060 and \u0060FSNotesCore/SwiftHighlighter/Themes/AtomOneLight.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift:10\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"00559712673698b05e8c5e132995c422ccef41a247cb669ed6fa8fc5017ea79e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift:70-77 | FSNotesCore/SwiftHighlighter/Themes/AtomOneLight.swift:70-78 | FSNotesCore/SwiftHighlighter/Themes/SolarizedDark.swift:63-71 | FSNotesCore/SwiftHighlighter/Themes/SolarizedLight.swift:58-66 \u2014 before extracting anything, compare \u0060FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift\u0060 and \u0060FSNotesCore/SwiftHighlighter/Themes/AtomOneLight.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift:70\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5ae5faf1b6ab016755f7027d0648bd9bdded90abf6361275de3a3d25bd1f70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): FSNotes iOS/ViewController.swift:554-561 | FSNotes iOS/ViewController.swift:573-580 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/ViewController.swift:554\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3a9f0d15dc2b4745278932d26fc52db5c167dcc2df1be5bc1372ef9cae25c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): FSNotes iOS/ViewController.swift:695-702 | FSNotes/ViewController.swift:1891-1898 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/ViewController.swift:695\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae757226815fae6ac65453f74106b99bb8487c5bf41ab2703fe14c92193d7171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): FSNotesCore/Business/Note.swift:862-869 | FSNotesCore/Business/Note.swift:871-878 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/Business/Note.swift:862\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"11be147a93cf508c6ea0caccd737f4f568c26075179e0d57bc4eab98863b4b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): FSNotesCore/Business/Project.swift:842-849 | FSNotesCore/Business/Storage.swift:833-840 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/Business/Project.swift:842\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Project.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50776dab35853d50bf7a4baa6883b9cdeb1d512882691964e39305cfa36445b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): FSNotesCore/Business/Storage.swift:209-216 | FSNotesCore/UserDefaultsManagement.swift:254-261 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/Business/Storage.swift:209\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b105d3613278bc54c345f4669f1b87e9d86afd0e203dc058c8e9dd841d9f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): FSNotesCore/NotesTextProcessor.swift:628-634 | FSNotesCore/NotesTextProcessor.swift:677-684 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/NotesTextProcessor.swift:628\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57957b716aa5e10befbc158afe178bcc2b51c7f28010c3c1dbb402d5daf2202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): FSNotes iOS/View/NotesTableView.swift:445-451 | FSNotes iOS/ViewController\u002BMore.swift:251-257 | FSNotes iOS/ViewController\u002BMore.swift:263-269 | FSNotes iOS/ViewController\u002BMore.swift:275-283 | FSNotes iOS/ViewController\u002BMore.swift:289-295 | FSNotes iOS/ViewController\u002BMore.swift:313-319 | FSNotes iOS/ViewController\u002BMore.swift:325-331 | FSNotes iOS/ViewController\u002BMore.swift:337-343 | FSNotes iOS/ViewController\u002BMore.swift:349-355 | FSNotes iOS/ViewController\u002BMore.swift:361-367 | FSNotes iOS/ViewController\u002BMore.swift:373-379 | FSNotes iOS/ViewController\u002BMore.swift:385-391 | FSNotes iOS/ViewController\u002BMore.swift:397-403 | FSNotes iOS/ViewController\u002BMore.swift:409-415 \u2014 there are 14 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 14 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/NotesTableView.swift:445\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bca21fc9b493455879dc45e45dc675100525be23851cb1588873e557a9fe1c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): FSNotes iOS/Extensions/UIColor\u002B.swift:14-20 | FSNotes iOS/Extensions/UIColor\u002B.swift:22-28 | FSNotes iOS/Extensions/UIColor\u002B.swift:30-36 | FSNotes iOS/Extensions/UIColor\u002B.swift:38-44 | FSNotes iOS/Extensions/UIColor\u002B.swift:46-52 | FSNotes iOS/Extensions/UIColor\u002B.swift:55-61 | FSNotes iOS/Extensions/UIColor\u002B.swift:63-69 | FSNotes iOS/Extensions/UIColor\u002B.swift:71-77 | FSNotes iOS/Extensions/UIColor\u002B.swift:79-85 | FSNotes iOS/Extensions/UIColor\u002B.swift:87-93 | FSNotes iOS/Extensions/UIColor\u002B.swift:95-101 | FSNotes iOS/Extensions/UIColor\u002B.swift:103-109 \u2014 all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060blue\u0060 to \u00600.90\u0060 in one and \u00600.11\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Extensions/UIColor\u002B.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dad2ff78e2280bccb72e10ddc8dab67ea5350d4ff5fb5ecc96b6d723c22ef4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 9): FSNotes iOS/ViewController\u002BMore.swift:251-257 | FSNotes iOS/ViewController\u002BMore.swift:275-283 | FSNotes iOS/ViewController\u002BMore.swift:325-331 | FSNotes iOS/ViewController\u002BMore.swift:337-343 | FSNotes iOS/ViewController\u002BMore.swift:373-379 | FSNotes iOS/ViewController\u002BMore.swift:385-391 | FSNotes iOS/ViewController\u002BMore.swift:397-403 | FSNotes iOS/ViewController\u002BMore.swift:409-415 | FSNotes iOS/ViewController\u002BMore.swift:421-427 \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/ViewController\u002BMore.swift:251\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba9af763b62bad518d42255db4aaad2cf54f159a51b56be272752f42512a162"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): FSNotes iOS/View/NotesTableView.swift:552-560 | FSNotes iOS/View/NotesTableView.swift:578-586 | FSNotes iOS/ViewController\u002BMore.swift:289-295 | FSNotes iOS/ViewController\u002BMore.swift:349-355 | FSNotes iOS/ViewController\u002BMore.swift:361-367 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/NotesTableView.swift:552\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d307657461f291f160e0be393c9d28c56ea4833a68c927dbaca6d64e4d785e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): FSNotes iOS/View/NotesTableView.swift:456-462 | FSNotes iOS/View/NotesTableView.swift:578-586 | FSNotes iOS/ViewController\u002BMore.swift:421-427 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/NotesTableView.swift:456\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d052ef65a57d521c438158ca44daa1df25ac53240643a0da766c39ce9221424"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotes iOS/Extensions/UITextView\u002B.swift:45-51 | FSNotes iOS/Extensions/UITextView\u002B.swift:65-71 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060FSNotes iOS/Extensions/UITextView\u002B.swift:52\u0060 calls \u0060setActionName\u0060 and \u0060FSNotes iOS/Extensions/UITextView\u002B.swift:73\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Extensions/UITextView\u002B.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7517689ae8a66217efc768dc1a89b8508e701364baecd737b62cae34329cc5cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotes iOS/Helpers/CloudDriveManager.swift:266-272 | FSNotes iOS/Helpers/CloudDriveManager.swift:282-288 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/Helpers/CloudDriveManager.swift:266\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab050c918ee3750a3dd3fe9e8f924f7adc2f1910a45a1233fc7992d5b2ce1a0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotes iOS/ImagePreviewViewController.swift:160-166 | FSNotes iOS/Preferences/ProjectsViewController.swift:180-186 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/ImagePreviewViewController.swift:160\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ImagePreviewViewController.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e78af43eccb45a2cd1c86f8b033072a93d596005e30c67aabe2c66f8c39402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotes iOS/View/NotesTableView.swift:445-451 | FSNotes iOS/View/NotesTableView.swift:456-462 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/NotesTableView.swift:445\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"149bd70ce29f64509185377d9316563a6d026e7ff94b7cfd584beb71940fd15e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotes iOS/ViewController\u002BMore.swift:64-70 | FSNotes iOS/ViewController\u002BMore.swift:224-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/ViewController\u002BMore.swift:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7b12c7fbaa567828ca9687b772987d9c771c2a610a2aac2d23014c369af4fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): FSNotes iOS/ViewController\u002BMore.swift:681-686 | FSNotes iOS/ViewController\u002BMore.swift:761-767 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/ViewController\u002BMore.swift:681\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController\u002BMore.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc270bf40493fbcadd016e5f835b443a46150c42cda3123a57a31b998ab85d7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotes iOS/ViewController.swift:712-718 | FSNotes/ViewController.swift:1908-1914 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/ViewController.swift:712\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7be42052523ac20c2b058d07e8a885e284ca3c91b813371d365ec7af02f712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotes/View/SidebarOutlineView.swift:169-175 | FSNotes/View/SidebarOutlineView.swift:1026-1032 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2edf98f30286f0c3e27b06b0dc8552519953a39ec0b4c17863f7c391bac8031e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): FSNotes iOS/View/NotesTableView.swift:466-471 | FSNotes iOS/View/NotesTableView.swift:475-480 | FSNotes iOS/View/NotesTableView.swift:485-492 | FSNotes iOS/View/NotesTableView.swift:517-524 | FSNotes iOS/View/NotesTableView.swift:552-559 | FSNotes iOS/View/NotesTableView.swift:578-585 | FSNotes iOS/ViewController\u002BMore.swift:289-294 | FSNotes iOS/ViewController\u002BMore.swift:349-354 | FSNotes iOS/ViewController\u002BMore.swift:361-366 \u2014 there are 9 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 9 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/NotesTableView.swift:466\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"89366f231d132a469394b65333dcb928c7e3e0aa08ad976f477dd1103bf0b0a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 7): FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift:66-71 | FSNotesCore/SwiftHighlighter/Themes/AtomOneLight.swift:66-71 | FSNotesCore/SwiftHighlighter/Themes/GitHubDark.swift:43-49 | FSNotesCore/SwiftHighlighter/Themes/GitHubDark.swift:56-60 | FSNotesCore/SwiftHighlighter/Themes/GitHubDark.swift:62-71 | FSNotesCore/SwiftHighlighter/Themes/SolarizedDark.swift:54-64 | FSNotesCore/SwiftHighlighter/Themes/SolarizedLight.swift:54-59 \u2014 before extracting anything, compare \u0060FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift\u0060 and \u0060FSNotesCore/SwiftHighlighter/Themes/AtomOneLight.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/SwiftHighlighter/Themes/GitHubDark.swift:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060FSNotesCore/SwiftHighlighter/Themes/GitHubDark.swift:60\u0060 calls \u0060PlatformColor\u0060 and \u0060FSNotesCore/SwiftHighlighter/Themes/GitHubDark.swift:49\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/SwiftHighlighter/Themes/AtomOneDark.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df6e9fc16501fad38cb6c7d7c669b33b21f6e495bb920d3308576ff5360b9d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): FSNotesCore/NotesTextProcessor.swift:663-668 | FSNotesCore/NotesTextProcessor.swift:735-740 | FSNotesCore/NotesTextProcessor.swift:749-754 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"985020f96dab6f30f44b5121a7dd4f6db61ee36e96cf5ecd71e55133fefce7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): FSNotes iOS/View/NotesTableView.swift:459-464 | FSNotes iOS/View/NotesTableView.swift:508-514 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/NotesTableView.swift:459\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"09319aafeaa0860f9245e89b63a1fe8a46f36663f22769f5fa5552abcf530d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotes/EditorViewController.swift:1227-1233 | FSNotes/EditorViewController.swift:1236-1242 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes/EditorViewController.swift:1227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa8e1915c7edbcac360fae21bf261c5ebf30666ff34d704d7994733dcec501b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): FSNotes/View/EditTextView.swift:673-678 | FSNotes/View/EditTextView.swift:784-789 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes/View/EditTextView.swift:673\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060FSNotes/View/EditTextView.swift:792\u0060 calls \u0060insertText\u0060, \u0060String\u0060 and \u0060FSNotes/View/EditTextView.swift:680\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c9ffd2256c37942175da233d2e78e79ab9ee8447833820590593a80753ce97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotesCore/Business/FSTag.swift:22-28 | FSNotesCore/Business/FSTag.swift:33-39 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/Business/FSTag.swift:22\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/FSTag.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48dd0c94d8872035d01f93dd000a00b0494206e1079b780b778c890eed1c6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotesCore/TextFormatter.swift:731-737 | FSNotesCore/TextFormatter.swift:1287-1293 \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":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f36512c8671002a2eabf54f0d8ba5dd0f311dcf7e8af7365b0761241de8b2d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): FSNotesCore/TextFormatter.swift:740-745 | FSNotesCore/TextFormatter.swift:1298-1303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotesCore/TextFormatter.swift:740\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"98180ffcbfacc5ab1157ddd164d6c872f922b99d79721de5b1e551e077b53bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): FSNotesCore/Business/Note.swift:859-866 | FSNotesCore/Business/Note.swift:868-875 | FSNotesCore/Business/Note.swift:877-884 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff53976c2ec83326e5c58306b1b4c4892d223587c4f4c068f813b222707815e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 3): FSNotes iOS/MoveViewController.swift:52-53 | FSNotes iOS/MoveViewController.swift:127-131 | FSNotes iOS/Preferences/ProjectsViewController.swift:120-124 \u2014 before extracting anything, compare \u0060FSNotes iOS/MoveViewController.swift\u0060 and \u0060FSNotes iOS/Preferences/ProjectsViewController.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/MoveViewController.swift:127\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/MoveViewController.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74e74a3e46770b66cdec580855443d6d09bbf03c8996b2bff568f5c90d6c6e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): FSNotes iOS/View/NotesTableView.swift:369-373 | FSNotes iOS/View/NotesTableView.swift:529-534 \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":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7448fc59126417aa9e3cc7f23b7226cc9c230988309119e7a4b326af470340"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): FSNotes iOS/View/NotesTableView.swift:469-473 | FSNotes iOS/View/NotesTableView.swift:572-576 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/NotesTableView.swift:469\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd8e26a506d21890276950bcb6a50644a2fa21a01571f1e2c3ccad9a69c25a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): FSNotes iOS/View/NotesTableView.swift:690-694 | FSNotes iOS/ViewController\u002BMore.swift:589-593 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/View/NotesTableView.swift:690\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060FSNotes iOS/View/NotesTableView.swift:695\u0060 calls \u0060NSAttributedString\u0060, \u0060getFileName\u0060 and \u0060FSNotes iOS/ViewController\u002BMore.swift:594\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81235c3e41d70ad1e53d143a7f46e1429cbaced022ae1759702415595dc3235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): FSNotesCore/MPreviewView.swift:184-188 | FSNotesCore/MPreviewView.swift:427-434 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/MPreviewView.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6e7eed132a987b380ae9542dbf0ea942f92179c36d02397d63ffd05f2c6ebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotesCore/NotesTextProcessor.swift:358-364 | FSNotesCore/NotesTextProcessor.swift:907-913 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dd5f457fd4209cb41e712f9a47f482c74dbc8d01f4c3e4fb41fe4396c7f426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotes iOS/Helpers/SandboxBookmark.swift:18-25 | FSNotes/Helpers/SandboxBookmark.swift:16-22 \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":"FSNotes iOS/Helpers/SandboxBookmark.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f590068ffb9238c2f53d373380536007cf93dbf491b970fb59e5c0ff581147"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): FSNotes iOS/Preferences/CodeFontViewController.swift:52-56 | FSNotes iOS/Preferences/FontViewController.swift:60-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/CodeFontViewController.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ca96066b657c691597637c9f864ed0cad1f11be2a7710810cc5c55ae452b25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): FSNotes iOS/Preferences/GitViewController.swift:428-433 | FSNotes iOS/Preferences/SFTPViewController.swift:416-421 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/GitViewController.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d28043dbbb14f3726151a3cb724080b8ce2cc30007b3c5e3e6f3495d15472f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): FSNotes iOS/View/NotesTableView.swift:259-265 | FSNotes iOS/View/SidebarTableView.swift:369-375 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"a051fea978807ad2c4ba90f1184b0171449adf0d681abd70ba18ac92026b52d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): FSNotes iOS/Preferences/ProViewController.swift:137-141 | FSNotes iOS/RevisionsViewController.swift:61-65 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060FSNotes iOS/Preferences/ProViewController.swift:137\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/ProViewController.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"921e4a10208ece6a57a9a1afd6d38ed3779892ee61fb2575f8e2fb9a2b1d54d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): FSNotes/EditorViewController.swift:447-451 | FSNotes/View/SidebarOutlineView.swift:726-730 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060FSNotes/View/SidebarOutlineView.swift:722\u0060 calls \u0060getFullName\u0060 and \u0060FSNotes/EditorViewController.swift:446\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"366e98a88d4a8148b8da13979759841f9b452da687d49cac18d54459deea8bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): FSNotes/View/EditTextView.swift:406-411 | FSNotes/View/EditTextView.swift:434-439 \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":"FSNotes/View/EditTextView.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"0457f899253d67ed0c46898027ae6bcb6ee9e80ba7772855201d3e90365f5c73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): FSNotes/ViewController\u002BMenu.swift:36-40 | FSNotes/ViewController\u002BMenu.swift:220-224 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ViewController\u002BMenu.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e5492779bfb9f7bf5dd8b1133d06f03383dc39f6bc1d1e66aec23ad1581730"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditTextView (LCOM4 35): EditTextView\u0027s methods fall into 35 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 35 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":"FSNotes/View/EditTextView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93485357d15f46e4670a55c594e2a37ebaf6a23476fbef2ea712cd063edd459"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 27): String\u0027s methods fall into 27 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 27 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesWebViewController.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"48eb55d7206ffdb67f56b33d172f3f916f08b04b0a583af889bb1ded17e84ef5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorViewController (LCOM4 26): EditorViewController\u0027s methods fall into 26 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 26 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":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5073ee4dcd5b2ea548a2d7434fc7563a14dbde751d6092cd5c4cf86068aa8bba"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditTextView (LCOM4 26): EditTextView\u0027s methods fall into 26 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 26 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":"FSNotes iOS/View/EditTextView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f395832482e9fc7ac40f7aa6dd084f6a3ce55e2d69d68edf144a4cf50c2c69f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ViewController (LCOM4 20): ViewController\u0027s methods fall into 20 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 20 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":"FSNotes/ViewController.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"363c6574b0a4729122835f5d65983c32cb8eb62d039fb72a4f8e02e2feb036f5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ViewController (LCOM4 18): ViewController\u0027s methods fall into 18 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 18 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":"FSNotes iOS/ViewController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"693d1e209998969b6653cf6ad154a61f6557a1f868317f629d6617aae2bd7ea6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppDelegate (LCOM4 17): AppDelegate\u0027s methods fall into 17 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 17 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/AppDelegate.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fa40d537b5f96bbead0a02b21a4b85b3eb3253af3aa7ac792f254aa07b26d9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PreferencesEditorViewController (LCOM4 17): PreferencesEditorViewController\u0027s methods fall into 17 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 17 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesEditorViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b821327286ef268bfb42d10a647c552f73083ed0f69d4820d3a57142bd93d8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorViewController (LCOM4 16): EditorViewController\u0027s methods fall into 16 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 16 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/EditorViewController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2830ae977fd86ae4b844c9538b25ecaac9b2ab52a62aff9877a34a66949e68"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SidebarOutlineView (LCOM4 14): SidebarOutlineView\u0027s methods fall into 14 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 14 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":"FSNotes/View/SidebarOutlineView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d031fde49a3d3f94c13b66d1833fb81449280b4ab084ba80abfa3e5a88c86008"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GitViewController (LCOM4 13): GitViewController\u0027s methods fall into 13 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 13 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":"FSNotes iOS/Preferences/GitViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"2338166c5b3fd4f47f13bc8c4e5211dc5c10b96b8a55be1055ac46e3f0a980c3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SettingsViewController (LCOM4 13): SettingsViewController\u0027s methods fall into 13 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 13 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":"FSNotes iOS/Preferences/SettingsViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"6528d04c137ae9ae958db99582eccf36700960ccb256fafbe27b7d4774c5dc5f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Storage (LCOM4 13): Storage\u0027s methods fall into 13 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 13 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":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a38e844953d5e0b05477c41cd7e700880345744278b78049e8f3cfc8ed349a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NotesTableView (LCOM4 12): NotesTableView\u0027s methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/NotesTableView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da36818b4d3212d89848a62ca20af9eb7058ddb935fb8d97ed52e9d67f1ef1c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PreferencesGeneralViewController (LCOM4 11): PreferencesGeneralViewController\u0027s methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesGeneralViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a677c966b852e435f20943baea3a9f8a6f5111b343e333be242122a2264b1d5c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PreferencesUserInterfaceViewController (LCOM4 11): PreferencesUserInterfaceViewController\u0027s methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesUserInterfaceViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5d4b785f883ca68b83116e2c8177b4fb9500ef595fb5633c551b9f44d5be31"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SettingsEditorViewController (LCOM4 10): SettingsEditorViewController\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/SettingsEditorViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd40b70dc8c4c130594cd65142161453b34a0b12386cb1c0090a602a69e0aa33"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PreferencesWebViewController (LCOM4 9): PreferencesWebViewController\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesWebViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa238c5b8a1c80f99cd13fca8e7b64c9664ce16e2c46e63ffb07c3c20ab41d9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ProjectSettingsViewController (LCOM4 8): ProjectSettingsViewController\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/ProjectSettingsViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"75781bbbc23093d4bd5fa157cd4032501a3878f4e604b75ae9e55b7945d6dee7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DefaultExtensionViewController (LCOM4 8): DefaultExtensionViewController\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/DefaultExtensionControllerView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd377ac94a6fe8cd67b8140d5b27fcbd978e54f8e50583a015aa955ebe156ff4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ProViewController (LCOM4 8): ProViewController\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/ProViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c51fc10050df0ad8777a90960528f6b015ec7177585e18d5568268f615ce034"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SFTPViewController (LCOM4 8): SFTPViewController\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/SFTPViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e9fece5bcf239e0d573658cab4c1b17c85fa581357321385b6d533f876c2c9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UIImage (LCOM4 8): UIImage\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Extensions/UIImage\u002B.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf93fa199bb1cf74b72ea65e508174ce715cbfd483201a110220dafc739882b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RevisionsViewController (LCOM4 7): RevisionsViewController\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":"FSNotes iOS/RevisionsViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7d1cf7b0d7fcd6501c1a8d3ab2ac0bbd344d4c943eb810a067e1e4a38c8a8c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MPreviewView (LCOM4 7): MPreviewView\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":"FSNotesCore/MPreviewView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e26b1fa7b4545239465ad00521ed4d09906fedbf4f818edcf48e9cf96ed7f76"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SecurityViewController (LCOM4 7): SecurityViewController\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":"FSNotes iOS/Preferences/SecurityViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"05766c85d745f4e9f39c118d3ec3111397cd0e9f973c4dd014117eabced7986b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PreferencesGitViewController (LCOM4 7): PreferencesGitViewController\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":"FSNotes/Preferences/PreferencesGitViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2abcd3e3e455630b27ccbea83e23c3cfcc46fe1eb5785874b492bf7b926813"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: URL (LCOM4 7): URL\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":"FSNotesCore/Extensions/URL\u002B.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"430be69367bf11dc151a3d802460ea853f16a43e77b78bdd7353e0716f19edc9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SidebarViewController (LCOM4 6): SidebarViewController\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":"FSNotes iOS/Preferences/SidebarViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cd6ca5c9126db6f341608617d57ca9ad3f1ffa1b6d733aa0ae6587c26b0314"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NotesTableView (LCOM4 6): NotesTableView\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":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"72413781679b001ca7ec1cb9ea99796a10e65a4bd2263bcf029fc0eedc9243f5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PreferencesSecurityViewController (LCOM4 6): PreferencesSecurityViewController\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":"FSNotes/Preferences/PreferencesSecurityViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b8d8bf14dd1d526bf1d12cb03a2bbb2843803bdb5ba1ed833491f603327e76"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NoteCellView (LCOM4 6): NoteCellView\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":"FSNotes/View/NoteCellView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb93998b860c1e9f54c91160aaa268e180b64de7339cae3d22a77a7dbb83192c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ShareViewController (LCOM4 5): ShareViewController\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":"FSNotes iOS Share/ShareViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8284ba8927362317f3e8f405578a126055f7ef85715368520d78644344d211a0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SceneDelegate (LCOM4 5): SceneDelegate\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":"FSNotes iOS/SceneDelegate.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f69ff4f05f5448c9eedfc292e2ce86df8aa5bddebaacdc98e66106c1219888"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainWindowController (LCOM4 5): MainWindowController\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":"FSNotes/MainWindowController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bf6ffd0fa044df000218cc7fd073c99b6e2133440f4db84fa06c5cc6a75398"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ProjectSettingsViewController (LCOM4 5): ProjectSettingsViewController\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":"FSNotes iOS/Preferences/ProjectSettingsViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cebcb869e28981cee3d722a811272f4481709b826370c04de1d10faaa3e6649"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SortByViewController (LCOM4 5): SortByViewController\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":"FSNotes iOS/Preferences/SortByViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35180be69c09dd58b7d97f1ceb372fb45d4d461e6a41fff85b5048d830849eb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ThanksViewController (LCOM4 5): ThanksViewController\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":"FSNotes iOS/Preferences/ThanksViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27be24290801999fdfbc049b6a149cec5061a588b8834fd818b6ade26c2228a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MPreviewFindPanel (LCOM4 5): MPreviewFindPanel\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":"FSNotes/View/MPreviewFindPanel.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1973ecb2fd06f366344013eaa71ef9cf96cc0c65271ff592cf5c2967497c6dbc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TitleBarView (LCOM4 5): TitleBarView\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":"FSNotes/View/TitleBarView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b94e5d7bd45a5818431c84841dc84a7e270d5919f63bc143b67c9d3462f4a09"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Project (LCOM4 5): Project\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":"FSNotesCore/Business/Project.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a117002325606985fe6b7ba53d0f70fee33a574f9441a0c7a2b2f0a0d5935ace"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NSTextStorage (LCOM4 5): NSTextStorage\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":"FSNotesCore/NSTextStorage\u002B\u002B.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e9856e95d71d394be3d36e519140b4b7c9355b2c2f2b76c6b0320c16ea4b48"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NSImage (LCOM4 5): NSImage\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":"FSNotes/Extensions/NSImage\u002B.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ce9f5760edf5d38fbcd1a5a92d398fab56e71867751121280ed6e1dad83c7d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ImagePreviewViewController (LCOM4 4): ImagePreviewViewController\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":"FSNotes iOS/ImagePreviewViewController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b54c5b4c06105e30d69490b8e47457838b2f4e6f7e65dfe42c8baa62d45d1a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LayoutManager (LCOM4 4): LayoutManager\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":"FSNotes/LayoutManager.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abe261ea49bb40b0b4ecfc2202e940ba3a8797077ee2d34ff290e777da43b21"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TextFormatter (LCOM4 4): TextFormatter\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":"FSNotesCore/TextFormatter.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d96c18862840df4f4b2dee3b45606d16c2a83ae7a45c4bb9fd9f9bc7cc63448"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CodeFontViewController (LCOM4 4): CodeFontViewController\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":"FSNotes iOS/Preferences/CodeFontViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1deea193741ebed90b3d85424c6abeb7f3d59bfde6e57b0f69f979d2111ea3f8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CodeThemeViewController (LCOM4 4): CodeThemeViewController\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":"FSNotes iOS/Preferences/CodeThemeViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85432ed7ea44c14eb0218ecb1be611cc74864c0b116538117b09b05812ee75c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FontViewController (LCOM4 4): FontViewController\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":"FSNotes iOS/Preferences/FontViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3192e66dab1d10eb63750946188cd2f74cd3c33a10152d168b2d8bb8b5e8e64"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ProjectsViewController (LCOM4 4): ProjectsViewController\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":"FSNotes iOS/Preferences/ProjectsViewController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9a2a1e730492dbfc9681b03e25478195152b8f31b8e57bc21205ab0491e689"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ImageScrollView (LCOM4 4): ImageScrollView\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":"FSNotes iOS/View/ImageScrollView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"98da3ee530614bfd6d31b27ec3ceed8ffa18675a7cc8f0b26ebef3335134b32e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorSplitView (LCOM4 4): EditorSplitView\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":"FSNotes/View/EditorSplitView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd25ed3f5745ce6fc8139be14f7824e456201bfa9b81f8f7e35aaf5d9463ce5b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TitleTextField (LCOM4 4): TitleTextField\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":"FSNotes/View/TitleTextField.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44079b2b23459acd76843720c38b85e9efca2ea29e15b337b4acc8f519fa7d0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Note (LCOM4 4): Note\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":"FSNotesCore/Business/Note.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"409e5d6f7a6f0fc55c7ce6ee426b62bc7ed1266378e6255f2f77f07995bae0c9"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (XCTest or Swift Testing), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: libcmark_gfm: Dependency \u0060libcmark_gfm\u0060 is resolved in FSNotes.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"329e2c0bb68157924f66305bd9a622339f30dc0aca5f935eb6d606035b67ad67"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: shout: Dependency \u0060shout\u0060 is resolved in FSNotes.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"de709fb53bce9baa331aaab78e1db9819b66f1fc0f748b4c289276210d9168bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: FSNotesCore/NotesTextProcessor.swift: FSNotesCore/NotesTextProcessor.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 106 in NotesTextProcessor.highlightMarkdown at line 437. 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-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 19:50:09 \u002B02:00\u0027 --until=\u00272026-11-08 19:50:09 \u002B02:00\u0027 --full-history --no-merges -- FSNotesCore/NotesTextProcessor.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":"FSNotesCore/NotesTextProcessor.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a59b940b8077e2431a94b35f310c8f9518cd38989bde2e3e93690e5936c86a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: FSNotes iOS/ViewController.swift: FSNotes iOS/ViewController.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ViewController.createNote at line 1029. 2 of those changes were fix/bug commits, 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-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 19:50:09 \u002B02:00\u0027 --until=\u00272026-11-08 19:50:09 \u002B02:00\u0027 --full-history --no-merges -- FSNotes iOS/ViewController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a2f3929b26937c363d3e5a2a73997ca94df09032177332f4f325268beb91af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: FSNotes iOS/View/SidebarTableView.swift: FSNotes iOS/View/SidebarTableView.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in SidebarTableView.selectItem at line 232. 1 of those changes was a fix/bug commit, and the other 2 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-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 19:50:09 \u002B02:00\u0027 --until=\u00272026-11-08 19:50:09 \u002B02:00\u0027 --full-history --no-merges -- FSNotes iOS/View/SidebarTableView.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":"FSNotes iOS/View/SidebarTableView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"016896b3da6a1ec8e7c79ee6780e6ac26c955aef218220c890207b00c70f4b08"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Unknown status \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Git/status/Status.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23374a23ee14bfaeb2d7c4d2ce80a7f0ecbeb923bed38ce619093ee67f7006e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/Sidebar.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2203676bbe36796b5149538c9df298b436db86475047d236d2c93cc061b6b45e"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack for invalidate prev layout data (order is important, only before fill) \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"680b42a0c1720c01da7837c66afdbc88c59c7b833fc2a34b5e12ebfff0674e7e"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // hack: occasionally get rename event when created \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Helpers/FileSystemEventManager.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"27352276d01b8bf49d9908af5e4e5deab7978f89b3266598520b9bc3de6ea9af"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060FSNotes.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa71a63fe53c0e88f9dbe0fe997e831b56204fdb5de0d1a628388069d14c0e9a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 166 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 166 of the 274 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: FSNotes iOS/Helpers/SFTPUploader.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/SFTPUploader.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"057783a49defbb9ed6e1aa08983a6089e8a6dbc64c3da8f1f95c2b498df3586c"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: GitViewController.swift \u2194 Project\u002BGit.swift: \u0060FSNotes iOS/Preferences/GitViewController.swift\u0060 (context FSNotes iOS) and \u0060FSNotesCore/Extensions/Project\u002BGit.swift\u0060 (context FSNotesCore) sit in DIFFERENT parts of the tree yet change together 69% of the time (22 of the 32 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 22 shared commits counted here, the most recent 3 are \u006016b021bb\u0060 #1849; \u0060ef82804d\u0060 - Fixes and improvements (at that commit the files were still \u0060FSNotes iOS/Settings/GitViewController.swift\u0060 and \u0060FSNotesCore/Shared/Extensions/Project\u002BGit.swift\u0060); \u0060a801a996\u0060 - Fixes and improvements - Improves commit process #1522 (at that commit the files were still \u0060FSNotes iOS/Settings/GitViewController.swift\u0060 and \u0060FSNotesCore/Shared/Extensions/Project\u002BGit.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/GitViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ab5d6a86c14af7702939349ff460b4611680d7d5fc5c4026e7003ec6ecb05d"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: ViewController.swift \u2194 Project\u002BGit.swift: \u0060FSNotes iOS/ViewController.swift\u0060 (context FSNotes iOS) and \u0060FSNotesCore/Extensions/Project\u002BGit.swift\u0060 (context FSNotesCore) sit in DIFFERENT parts of the tree yet change together 54% of the time (20 of the 37 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 20 shared commits counted here, the most recent 3 are \u0060387cec31\u0060 - Fixes iOS deprecated code (at that commit the file was still \u0060FSNotesCore/Shared/Extensions/Project\u002BGit.swift\u0060); \u0060c47da23a\u0060 - Fixes and improvements (at that commit the file was still \u0060FSNotesCore/Shared/Extensions/Project\u002BGit.swift\u0060); \u0060ef82804d\u0060 - Fixes and improvements (at that commit the file was still \u0060FSNotesCore/Shared/Extensions/Project\u002BGit.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9d921cb46de90c85dcee0522e7f117fc6124d051cf48fc3aaf6566138f6399"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: NotesTableView.swift \u2194 NoteCellView\u002B.swift: \u0060FSNotes/View/NotesTableView.swift\u0060 (context FSNotes) and \u0060FSNotesCore/NoteCellView\u002B.swift\u0060 (context FSNotesCore) sit in DIFFERENT parts of the tree yet change together 53% of the time (8 of the 15 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060794b5751\u0060 - fixes and improvements; \u0060b5c05a68\u0060 - fixes and improvements; \u0060523a26bb\u0060 - fixes images preview - fixes first note selection \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/NotesTableView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f33d6ce0ca80d320146af7e29e568f19586ff4d984bcf9918e5d1886f4ab4ab"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: ViewController.swift \u2194 Note\u002BHistory.swift: \u0060FSNotes iOS/ViewController.swift\u0060 (context FSNotes iOS) and \u0060FSNotesCore/Note\u002BHistory.swift\u0060 (context FSNotesCore) sit in DIFFERENT parts of the tree yet change together 52% of the time (11 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u0060ffea8590\u0060 - refactoring (at that commit the file was still \u0060FSNotesCore/Shared/Note\u002BHistory.swift\u0060); \u0060c47da23a\u0060 - Fixes and improvements (at that commit the file was still \u0060FSNotesCore/Shared/Note\u002BHistory.swift\u0060); \u0060ef82804d\u0060 - Fixes and improvements (at that commit the file was still \u0060FSNotesCore/Shared/Note\u002BHistory.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c53e9f951258554454033a28f2d372e1e13246189398530c40a459f87fe42e"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: Sidebar.swift \u2194 Note.swift: \u0060FSNotes/Helpers/Sidebar.swift\u0060 (context FSNotes) and \u0060FSNotesCore/Business/Note.swift\u0060 (context FSNotesCore) sit in DIFFERENT parts of the tree yet change together 50% of the time (22 of the 44 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 22 shared commits counted here, the most recent 3 are \u0060bb6c0c30\u0060 - Consistecy refactoring (at that commit the files were still \u0060FSNotes/Business/Sidebar.swift\u0060 and \u0060FSNotes/Business/Note.swift\u0060); \u00600a13ab0b\u0060 - Fixes order by creation date (at that commit the files were still \u0060FSNotes/Business/Sidebar.swift\u0060 and \u0060FSNotes/Business/Note.swift\u0060); \u0060267c72e1\u0060 - Ongoing refactoring (at that commit the files were still \u0060FSNotes/Business/Sidebar.swift\u0060 and \u0060FSNotes/Business/Note.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Helpers/Sidebar.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"129f66c999686f6dfe3fbaaa9052bd18b8f3ffe59ebed56215026fa0181d0e0a"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: Sidebar.swift \u2194 SidebarItemType.swift: \u0060FSNotes/Helpers/Sidebar.swift\u0060 (context FSNotes) and \u0060FSNotesCore/Business/SidebarItemType.swift\u0060 (context FSNotesCore) sit in DIFFERENT parts of the tree yet change together 50% of the time (10 of the 20 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060bb6c0c30\u0060 - Consistecy refactoring (at that commit the files were still \u0060FSNotes/Business/Sidebar.swift\u0060 and \u0060FSNotes/Business/SidebarItemType.swift\u0060); \u0060267c72e1\u0060 - Ongoing refactoring (at that commit the files were still \u0060FSNotes/Business/Sidebar.swift\u0060 and \u0060FSNotes/Business/SidebarItemType.swift\u0060); \u0060597d14ce\u0060 Bug fixes and improvements (at that commit the files were still \u0060FSNotes/Business/Sidebar.swift\u0060 and \u0060FSNotes/Business/SidebarItemType.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Helpers/Sidebar.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad475024504a43b77ccfbda4ac541347c05f038b009b26e239b8d474135771c6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: EditorViewController.swift \u2194 LanguageViewController.swift: \u0060FSNotes iOS/EditorViewController.swift\u0060 and \u0060FSNotes iOS/Preferences/LanguageViewController.swift\u0060 change together 100% of the time (11 of the 11 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 11 shared commits counted here, the most recent 3 are \u0060ef286693\u0060 - Default keybaord refactoring (at that commit the file was still \u0060FSNotes iOS/Settings/LanguageViewController.swift\u0060); \u0060a8801d9b\u0060 - Allows bulk delete - Allows multiple select - Adds new icons (at that commit the file was still \u0060FSNotes iOS/Settings/LanguageViewController.swift\u0060); \u0060e8bad49e\u0060 Adds iPhone X, XS, XR support (at that commit the file was still \u0060FSNotes iOS/Settings/LanguageViewController.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7952f6e3bf0c70b1dd941bed39f7c0d9c20daba928bd71e2e501da86cbe3a504"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: ViewController.swift \u2192 AppDelegate.swift, UserDefaultsManagement\u002B.swift, MoveViewController.swift, ProjectSettingsViewController.swift, ProjectsViewController.swift, NoteCellView.swift, SidebarTableCellView.swift: \u0060FSNotes iOS/ViewController.swift\u0060 changes together with 7 other files \u2014 \u0060FSNotes iOS/AppDelegate.swift\u0060, \u0060FSNotes iOS/Extensions/UserDefaultsManagement\u002B.swift\u0060, \u0060FSNotes iOS/MoveViewController.swift\u0060, \u0060FSNotes iOS/Preferences/ProjectSettingsViewController.swift\u0060, \u0060FSNotes iOS/Preferences/ProjectsViewController.swift\u0060, \u0060FSNotes iOS/View/NoteCellView.swift\u0060, \u0060FSNotes iOS/View/SidebarTableCellView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 7 separate couplings, not 7 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 7."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e467cba8c33df0d55fbc79619701972fe9857810e2f3899c07a2c01368e3e6b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SidebarCellView.swift \u2194 ViewController.swift: \u0060FSNotes/View/SidebarCellView.swift\u0060 and \u0060FSNotes/ViewController.swift\u0060 change together 80% of the time (24 of the 30 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 24 shared commits counted here, the most recent 3 are \u006016f753a1\u0060 - UI refactoring; \u006087496a10\u0060 - Ongoing refactoring; \u00604f2d70a4\u0060 #1574 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/SidebarCellView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39d5d76cd280257d4a9b063a943248c3207250bad2001c98178c69d3cd3121f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: SidebarTableView.swift \u2192 MoveViewController.swift, ProjectSettingsViewController.swift, ProjectsViewController.swift: \u0060FSNotes iOS/View/SidebarTableView.swift\u0060 changes together with 3 other files \u2014 \u0060FSNotes iOS/MoveViewController.swift\u0060, \u0060FSNotes iOS/Preferences/ProjectSettingsViewController.swift\u0060, \u0060FSNotes iOS/Preferences/ProjectsViewController.swift\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":"FSNotes iOS/View/SidebarTableView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e83ddb5341e08a48f0bac8992aa56e717d9843bd4f9f5595a0b3477fbfd39ee"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PreferencesWebViewController.swift \u2194 ViewController.swift: \u0060FSNotes/Preferences/PreferencesWebViewController.swift\u0060 and \u0060FSNotes/ViewController.swift\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060702fa825\u0060 - Fixes and improvements; \u0060c83090af\u0060 - Adds sharing to public server; \u0060241f3aca\u0060 - Fixes and improvements \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesWebViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c655ed6574d5d4c12f6c22abd604055f31a78ad4029717ce1297f10a652bdc0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SidebarItem.swift \u2194 Storage.swift: \u0060FSNotesCore/Business/SidebarItem.swift\u0060 and \u0060FSNotesCore/Business/Storage.swift\u0060 change together 60% of the time (12 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060bb6c0c30\u0060 - Consistecy refactoring (at that commit the files were still \u0060FSNotes/Business/SidebarItem.swift\u0060 and \u0060FSNotes/Business/Storage.swift\u0060); \u0060267c72e1\u0060 - Ongoing refactoring (at that commit the files were still \u0060FSNotes/Business/SidebarItem.swift\u0060 and \u0060FSNotes/Business/Storage.swift\u0060); \u00603eb18b47\u0060 #1143 #1147 (at that commit the files were still \u0060FSNotes/Business/SidebarItem.swift\u0060 and \u0060FSNotes/Business/Storage.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/SidebarItem.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"394c70c8d557bb2d214e6c797577e1ac543ad5407dec4a5606cd7f28dd6fc1f2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ProjectSettingsViewController.swift \u2194 NotesTableView.swift: \u0060FSNotes iOS/Preferences/ProjectSettingsViewController.swift\u0060 and \u0060FSNotes iOS/View/NotesTableView.swift\u0060 change together 55% of the time (12 of the 22 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 12 shared commits counted here, the most recent 3 are \u0060bb6c0c30\u0060 - Consistecy refactoring (at that commit the file was still \u0060FSNotes iOS/Settings/ProjectSettingsViewController.swift\u0060); \u0060e8bd7fca\u0060 - Fixes and improvements (at that commit the file was still \u0060FSNotes iOS/Settings/ProjectSettingsViewController.swift\u0060); \u0060c6d10b0a\u0060 Fixes and improvements (at that commit the file was still \u0060FSNotes iOS/Settings/ProjectSettingsViewController.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Preferences/ProjectSettingsViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd0ae78a9185cb33f1bfac897cc41ff214d8925deae7ebe360ee0ebca43fae8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: EditTextView.swift \u2194 EditorSplitView.swift: \u0060FSNotes/View/EditTextView.swift\u0060 and \u0060FSNotes/View/EditorSplitView.swift\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00602826061a\u0060 - refactoring; \u006079b249f3\u0060 Fixed resizing master view while in Preview mode; \u006014dc9d5e\u0060 Fixed resizing master view while in Preview mode \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/View/EditTextView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71688134512277c555b309e2ad840ebcddc07ee83110f8d3e8de4983a15df478"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Project\u002BGit.swift \u2194 Note\u002BHistory.swift: \u0060FSNotesCore/Extensions/Project\u002BGit.swift\u0060 and \u0060FSNotesCore/Note\u002BHistory.swift\u0060 change together 52% of the time (11 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in 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 11 shared commits counted here, the most recent 3 are \u0060dce89695\u0060 #1477 (at that commit the files were still \u0060FSNotesCore/Shared/Extensions/Project\u002BGit.swift\u0060 and \u0060FSNotesCore/Shared/Note\u002BHistory.swift\u0060); \u0060c47da23a\u0060 - Fixes and improvements (at that commit the files were still \u0060FSNotesCore/Shared/Extensions/Project\u002BGit.swift\u0060 and \u0060FSNotesCore/Shared/Note\u002BHistory.swift\u0060); \u0060ef82804d\u0060 - Fixes and improvements (at that commit the files were still \u0060FSNotesCore/Shared/Extensions/Project\u002BGit.swift\u0060 and \u0060FSNotesCore/Shared/Note\u002BHistory.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Extensions/Project\u002BGit.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d811087556a208f62957f55455cc768774f33d5007d7dd1ecafe69a60ffdcc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AppDelegate.swift \u2194 EditorViewController.swift: \u0060FSNotes iOS/AppDelegate.swift\u0060 and \u0060FSNotes iOS/EditorViewController.swift\u0060 change together 51% of the time (27 of the 53 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 27 shared commits counted here, the most recent 3 are \u00603681254d\u0060 #1777; \u0060c75f2cc2\u0060 - Fixes and improvements; \u0060ff554947\u0060 - Adds preview state sync for iOS/macOS \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/AppDelegate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"725925fab5d587636c35315a5b40f9b662a48c4268458b16ca69651cd8f33109"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PreferencesEditorViewController.swift \u2194 EditTextView.swift: \u0060FSNotes/Preferences/PreferencesEditorViewController.swift\u0060 and \u0060FSNotes/View/EditTextView.swift\u0060 change together 50% of the time (18 of the 36 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 18 shared commits counted here, the most recent 3 are \u00604a80d6fe\u0060 - Adds hide markdown option; \u00602826061a\u0060 - refactoring; \u00604c731ad7\u0060 - Cursor position save/load refactoring \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes/Preferences/PreferencesEditorViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"158c065c367d617de727907f43decdf70f1c71ebea9fbb9f33b05bf417f3bec5"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CloudDriveManager.swift \u2194 MoveViewController.swift: \u0060FSNotes iOS/Helpers/CloudDriveManager.swift\u0060 and \u0060FSNotes iOS/MoveViewController.swift\u0060 change together 50% of the time (11 of the 22 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 11 shared commits counted here, the most recent 3 are \u0060267c72e1\u0060 - Ongoing refactoring (at that commit the file was still \u0060FSNotes iOS/CloudDriveManager.swift\u0060); \u00604fb5e5d3\u0060 - Improves versioning (at that commit the file was still \u0060FSNotes iOS/CloudDriveManager.swift\u0060); \u006015754ccb\u0060 Refactoring (at that commit the file was still \u0060FSNotes iOS/CloudDriveManager.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4c9e0626f770797a18e3f9efe86138176209d2f9565587388c5558a04d6b08"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Note.swift \u2194 SidebarItem.swift: \u0060FSNotesCore/Business/Note.swift\u0060 and \u0060FSNotesCore/Business/SidebarItem.swift\u0060 change together 50% of the time (10 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060bb6c0c30\u0060 - Consistecy refactoring (at that commit the files were still \u0060FSNotes/Business/Note.swift\u0060 and \u0060FSNotes/Business/SidebarItem.swift\u0060); \u0060267c72e1\u0060 - Ongoing refactoring (at that commit the files were still \u0060FSNotes/Business/Note.swift\u0060 and \u0060FSNotes/Business/SidebarItem.swift\u0060); \u0060f38222ff\u0060 #188 (at that commit the files were still \u0060FSNotes/Business/Note.swift\u0060 and \u0060FSNotes/Business/SidebarItem.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Business/Note.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26783fd2429ffe72ef19014c5f6084f8a8b8b6019761a59bf94263657cd6ad53"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Sidebar.swift \u2194 NotesTableView.swift: \u0060FSNotes iOS/Helpers/Sidebar.swift\u0060 and \u0060FSNotes iOS/View/NotesTableView.swift\u0060 change together 50% of the time (8 of the 16 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 8 shared commits counted here, the most recent 3 are \u0060f821ee39\u0060 #iOS app improvements; \u0060bb6c0c30\u0060 - Consistecy refactoring (at that commit the file was still \u0060FSNotes iOS/Business/Sidebar.swift\u0060); \u006092fc9e72\u0060 init (at that commit the file was still \u0060FSNotes iOS/Business/Sidebar.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/Sidebar.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ba002c2e1147634ad2250bcb1c6d6de7c3415168809eeb1bcc90338accaa10"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"note","message":{"text":"CI test execution not evidenced: A CI pipeline exists but no test-runner invocation (your stack\u0027s test command, or a test job) was found \u2014 changes may merge without the suite running."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"860902100b1c048f49c648730bdf23459de2d8ca6af82ef0ec593ecb3995a80c"}},{"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":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!UserDefaultsManagement.horizontalOrientation \u0026\u0026 !UserDefaultsManagement.hidePreviewImages\u0060 appears character-identically in 2 files \u2014 FSNotes/View/NoteCellView.swift, FSNotes/View/NotesTableView.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":"FSNotes/View/NoteCellView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a52c41d2a6154c68c243989c5347ad832c3bdc2d5aa6dbfa2965ce8f2f21609"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!note.isLoaded \u0026\u0026 !note.isLoadedFromCache\u0060 appears character-identically in 2 files \u2014 FSNotes iOS/View/NotesTableView.swift, FSNotes/View/NotesTableView.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":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c8f13d8bdd34276643ef585998ece59b251400e96daef4247bcf2c0974ab92"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060FileManager.default.fileExists(atPath: destination.path) || FileManager.default.fileExists(atPath: icloud.path)\u0060 appears character-identically in 2 files \u2014 FSNotesCore/Business/Note.swift, FSNotesCore/ImagesProcessor.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":"FSNotesCore/Business/Note.swift"},"region":{"startLine":2266}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f115414b9ab067cff40f96277f9b94877f4dbc4697d172444c61ef9b88b3c96"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.type == .All || item.type == .Untagged || item.type == .Todo || item.type == .Trash || item.type == .Inbox\u0060 appears character-identically in 2 files \u2014 FSNotes iOS/ViewController.swift, FSNotes/ViewController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"127ae361e17a0391983b17a0176f497afc074ae74099396a133d2379307c9044"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060location \u003E= range.location \u0026\u0026 location \u003C= upper\u0060 appears character-identically in 3 files \u2014 FSNotes iOS/EditorViewController.swift, FSNotes iOS/View/EditTextView.swift, FSNotes/View/EditTextView.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":"FSNotes iOS/EditorViewController.swift"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f5ba521871a5b1209695ae757aff0b80615d67a4cae104267b9d0d13840995"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060note.isTextBundle() \u0026\u0026 !note.isFullLoadedTextBundle()\u0060 appears character-identically in 3 files \u2014 FSNotes iOS/Helpers/CloudDriveManager.swift, FSNotesCore/Business/Project.swift, FSNotesCore/Business/Storage.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":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da7016ece75c9ac4f501c66fc557d30a4a931c76215c659c01128dabf9a35ba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060note.isTextBundle() || note.isEncrypted()\u0060 appears character-identically in 2 files \u2014 FSNotes iOS/View/NotesTableView.swift, FSNotes/EditorViewController.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":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee2b8a5c52499e4f538feacb6abdb388b8a749dc10772f933facf47f4ecac67"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060note.type == .Markdown \u0026\u0026 note.container == .none\u0060 appears character-identically in 2 files \u2014 FSNotes iOS/View/NotesTableView.swift, FSNotes/EditorViewController.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":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba879c6dc0f0ed982017e256f05660d202409d4b7d913e456e8dde5adfd44db"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060passwordExist \u0026\u0026 context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil)\u0060 appears character-identically in 2 files \u2014 FSNotes iOS/ViewController.swift, FSNotes/EditorViewController.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":"FSNotes iOS/ViewController.swift"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"b904f1e4b2e3155b3247dd8b40aa432f80dbd4b633a61fd5fb853207e97b1717"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060project.isEncrypted \u0026\u0026 project.isLocked()\u0060 appears character-identically in 3 files \u2014 FSNotes iOS/Helpers/CloudDriveManager.swift, FSNotes/Helpers/FileSystemEventManager.swift, FSNotes/ViewController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotes iOS/Helpers/CloudDriveManager.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ccfd4b5c7cf59c289411832ed61ca60512b2425b53153a73956b72f6665c9c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060results.0.count \u003E 0 || results.1.count \u003E 0 || results.2.count \u003E 0\u0060 appears character-identically in 2 files \u2014 FSNotes iOS/View/NotesTableView.swift, FSNotes/View/NotesTableView.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":"FSNotes iOS/View/NotesTableView.swift"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d223951717b2b312d620ea983701664250a1a4ec226eb5fcfcb053634ebb7568"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/ImagesProcessor.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8321ae645d409bb38d1dc0ed418ae14abc42de4db7b5fc197d17c05c646790"}},{"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":"FSNotesCore/Git/revision/FileHistoryIterator.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"beaf329977c94708617bf90e7fdd330fd59e3ae0beb80d41e8547bd3c0328909"}},{"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":"FSNotesCore/Git/revision/FileHistoryIterator.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da2bc68c30bd1ee2e2a0c38788e4ab94323c5b702634e09d298e71fcf4d9701"}},{"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":"FSNotesCore/Git/branch/Branch.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f35d8e12d97f9440add605da09f34d31955ac55b123d0b6e5d6026923e4f73"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Extensions/Project\u002BGit.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad3679adc3b3270c3f41cfeceaea5090cce2d52c01acc5b309945efcb375b5d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Extensions/URL\u002B.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6394d6e6bd9df3fb425af5e70ca60e9827939f3c98d395053492f52f01b9c46b"}},{"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":"FSNotesCore/Business/Note.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4b7b6913ddae27a71475740d4755dc4df6a85d1a9b6a46881008dcd0bdc47f"}},{"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":"FSNotesCore/Business/Note.swift"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b511ef655be1d65f2fea359da955ecb6c16d7b56c48e774a023187131d37fd3"}},{"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":"FSNotesCore/Business/Storage.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0e97a14d9f50202e2d30c3ed939f6bbf5141018056eb935b50bec5590d2da4"}},{"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":"FSNotes iOS Share/ShareViewController.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbb8881a5dd600f797295b9e6f0d6e08ad22a84b4d8d34499460947998e3e1a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060matchingStrings\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"FSNotesCore/Extensions/String\u002B.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3c61f709c860e0a3ab5d0df32f3aed7cf7fe02a23cbfcec2818847b16b5143"}}],"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-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-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":0,"secretScannerRunsExcluded":0}}}]}