{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"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":"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":"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"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":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"SyncEngine.performSync (cyclomatic 202): SyncEngine.performSync has cyclomatic complexity 202 (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":"Obsync/Services/SyncEngine.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c1cfb57ca22846a5935c2b50d3815c76df4850708b83348f96f52659c997a3"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncConfiguration.explainTargetList (cyclomatic 47): SyncConfiguration.explainTargetList has cyclomatic complexity 47 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Models/SyncConfiguration.swift"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b59048fda310f7bf26aece661cc046e0ee36ad170b699e026b861b990303a8"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskNotesSource.parseTaskNotesFile (cyclomatic 45): TaskNotesSource.parseTaskNotesFile has cyclomatic complexity 45 (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":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"b634b829e95808aca02204e40cd5b2a28cb3aca7db32c2e4926945b57621eb2e"}},{"ruleId":"D1","level":"warning","message":{"text":"AdvancedSettingsView.body (cyclomatic 32): AdvancedSettingsView.body has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Views/SettingsView.swift"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fe09f4258b93e8b0585b4188d1c224330bf866ed33fe706c36e82c666a259d"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncTask.parseDataviewFields (cyclomatic 31): SyncTask.parseDataviewFields has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Models/SyncTask.swift"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e273d63ff0da17b19b011f302045fafd73084aeaef19de2fd159c882ad154f5"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncHealth.evaluate (cyclomatic 31): SyncHealth.evaluate has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/SyncHealth.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b46330c8f757a0cfc25fdb21db112b6cf9eecf6bc7f8c564c2e19cd506e5e25"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncTask.fromObsidianLine (cyclomatic 30): SyncTask.fromObsidianLine has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Models/SyncTask.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"3937ad1d8260df618c1fa12b5a98ca70b46ff5f17a84ed400591583f29ebc51e"}},{"ruleId":"D1","level":"warning","message":{"text":"GeneralSettingsView.body (cyclomatic 29): GeneralSettingsView.body has cyclomatic complexity 29 (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":"Obsync/Views/SettingsView.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"833807b985e2b67579efe6e308e788989eca3b7143d4910c97cbd1a8b90e8d3b"}},{"ruleId":"D1","level":"warning","message":{"text":"ObsidianService.computeNextOccurrence (cyclomatic 27): ObsidianService.computeNextOccurrence has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdedec156b5c42959ac945286e871881a140a461d997fa0efbbf923950c8b026"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskNotesSource.appendNewTaskViaFiles (cyclomatic 26): TaskNotesSource.appendNewTaskViaFiles 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":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d80843688e1808e6cf1859ea20ecc72f6dbca0757c25589b72b70601ab97ba"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncTask.applyToReminder (cyclomatic 26): SyncTask.applyToReminder 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":"Obsync/Models/SyncTask.swift"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"5615e034ba07a516bcd542321f984f942a34d6ef2fde9b57ed5928a9b58358d3"}},{"ruleId":"D1","level":"warning","message":{"text":"ObsidianService.findMarkdownFiles (cyclomatic 24): ObsidianService.findMarkdownFiles 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f38a413cf7e69c49017e60e6ef478c934338e10925c41b20a3bcbf102b635a1"}},{"ruleId":"D1","level":"warning","message":{"text":"GenericMarkdownParser.buildLine (cyclomatic 22): GenericMarkdownParser.buildLine 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":"Obsync/Services/Sources/GenericMarkdownParser.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3997dddabc89e375a838ec5f5b8f10bf54ea9d9253997f0acaec40684527975d"}},{"ruleId":"D1","level":"warning","message":{"text":"ObsidianService.markTaskComplete (cyclomatic 22): ObsidianService.markTaskComplete 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"a180018663d532a3e98a2dd0df31a3c6f57462e3e566e653ca668e269665c4e0"}},{"ruleId":"D1","level":"warning","message":{"text":"ObsidianService.appendTaskToInbox (cyclomatic 21): ObsidianService.appendTaskToInbox 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"62afc45805285047fce2f39af90d0e8e9bc823e05d2f569a0a0ecb0ab1daf3fb"}},{"ruleId":"D1","level":"warning","message":{"text":"GenericMarkdownSource.findFiles (cyclomatic 20): GenericMarkdownSource.findFiles 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":"Obsync/Services/Sources/GenericMarkdownSource.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c6a2426cf8b8cf8252248c3e5091df623218e4fccd4607425a998bc5ee5558"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncManager.runHealthCheck (cyclomatic 19): SyncManager.runHealthCheck 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":"Obsync/Services/SyncManager.swift"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7f7a8ff39106af235240d420f8bcd44b0517f57ef56f28e58ccb855e9c1a7c"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncTask.userWrittenNotes (cyclomatic 18): SyncTask.userWrittenNotes 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":"Obsync/Models/SyncTask.swift"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c6233a8b84bfafe80dddd358a1a3b4f98c14e8c1b9fac794fd281e84d684f8"}},{"ruleId":"D1","level":"warning","message":{"text":"ListMappingsView.body (cyclomatic 18): ListMappingsView.body 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":"Obsync/Views/SettingsView.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f9c151c15c19627b9cf4ef10bf9a09843a5512c1647eae00106d654b6ed8c5"}},{"ruleId":"D1","level":"warning","message":{"text":"CalendarFeedDestination.parseICS (cyclomatic 18): CalendarFeedDestination.parseICS 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":"Obsync/Services/Destinations/CalendarFeedDestination.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ece722194b418686c16977f28bd8e8f48497ae383986cdafceea39f6e1f7a2"}},{"ruleId":"D1","level":"warning","message":{"text":"DuplicateReminders.plan (cyclomatic 17): DuplicateReminders.plan has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Destinations/RemindersDestination.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34e289b357828015f72cd341fa4d801e5007964b846b8d49d31341d3375309d"}},{"ruleId":"D1","level":"warning","message":{"text":"Things3Destination.fetchRecentLogbookTasks (cyclomatic 17): Things3Destination.fetchRecentLogbookTasks 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. This shape REPEATS in the file: one other method here (Things3Destination.fetchTasks) 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":"Obsync/Services/Destinations/Things3Destination.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d2a6d5d9d340b7e4b19bebbea33218ba457fa63dc5abc29631098a9ec1c725"}},{"ruleId":"D1","level":"warning","message":{"text":"Things3Destination.fetchTasks (cyclomatic 17): Things3Destination.fetchTasks 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. This shape REPEATS in the file: one other method here (Things3Destination.fetchRecentLogbookTasks) 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":"Obsync/Services/Destinations/Things3Destination.swift"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09070a4c589441bcc8ad4b584699348d6bb3ad19bfb10745a8560c32377eda6"}},{"ruleId":"D1","level":"warning","message":{"text":"ObsidianService.scanVault (cyclomatic 16): ObsidianService.scanVault 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"67126063cb00f75c9fe0cda87ae0a984490240708c9a993c668bb8b0991f2a93"}},{"ruleId":"D1","level":"warning","message":{"text":"ObsidianService.applySubtaskHandling (cyclomatic 16): ObsidianService.applySubtaskHandling has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3dbf58b450a55e19574ccf219ccd8ef5b692825644cd76cc0ae85059f5369c"}},{"ruleId":"D1","level":"warning","message":{"text":"ObsidianService.parseTasksFromFile (cyclomatic 16): ObsidianService.parseTasksFromFile 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a140a3cda76792a492b5aa7741345ffa233e086966ea1b36f0e4971322ca12"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.performSync (cognitive 668): SyncEngine.performSync has cognitive complexity 668 (threshold 15). Drivers by points: if/else 112 (484 pts), ternaries 13 (54 pts), boolean chains 53, loops 18 (45 pts), error handling 6 (29 pts), match/switch 1 (3 pts) (nesting depth added 465). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass\u0027s cognitive complexity CONCENTRATES: Obsync/Services/SyncEngine.swift holds 2 of the 38 methods over the threshold \u2014 including the worst \u2014 and 656 of the 1237 points over it (53%), 4.3\u00D7 the next-largest file (Obsync/Services/ObsidianService.swift at 154). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/SyncEngine.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabdc3a3616d2434e6d6925dba1b5663230508999e92b73bcdce346fcbd0c5f5"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskNotesSource.parseTaskNotesFile (cognitive 77): TaskNotesSource.parseTaskNotesFile has cognitive complexity 77 (threshold 15). Drivers by points: if/else 21 (46 pts), match/switch 4 (15 pts), boolean chains 9, ternaries 3 (6 pts), loops 1 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b775ecffca9c6e13bf666552d6293cb385714ab72a6bafaf5573e298696f61"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncConfiguration.explainTargetList (cognitive 70): SyncConfiguration.explainTargetList has cognitive complexity 70 (threshold 15). Drivers by points: if/else 20 (37 pts), boolean chains 19, ternaries 5 (9 pts), loops 3 (5 pts) (nesting depth added 23). Of this number, 69 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Models/SyncConfiguration.swift"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"744cd5a635483bf773633f002314f72798f9edc0e99badbe2ef2c7f23a9dad83"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncTask.parseDataviewFields (cognitive 53): SyncTask.parseDataviewFields has cognitive complexity 53 (threshold 15). Drivers by points: if/else 11 (29 pts), boolean chains 7, ternaries 2 (7 pts), match/switch 2 (6 pts), loops 2 (4 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Models/SyncTask.swift"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1619aa90211490cfe3ebb0174ef944e60f4f39c9bce995c7378bffec6949ec7"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncTask.fromObsidianLine (cognitive 52): SyncTask.fromObsidianLine has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (39 pts), loops 6 (7 pts), boolean chains 6 (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":"Obsync/Models/SyncTask.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fafa098b0a967d4abcfa9c8fcf84ee4a3c1c92163ca4abdbc359b1c375cc0b7"}},{"ruleId":"D2","level":"warning","message":{"text":"AdvancedSettingsView.body (cognitive 50): AdvancedSettingsView.body has cognitive complexity 50 (threshold 15). Drivers by points: if/else 27 (33 pts), ternaries 9 (17 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":"Obsync/Views/SettingsView.swift"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"151a343f738b7568e6acb425331a443734d7b46cc53743be755d0ad6478efd44"}},{"ruleId":"D2","level":"warning","message":{"text":"ObsidianService.noteTags (cognitive 43): ObsidianService.noteTags has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (34 pts), loops 3 (9 pts) (nesting depth added 29). 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52c48f53af9abb48ff9329f095e864b0f9959e1ca27b521724c36457ad0cd72"}},{"ruleId":"D2","level":"warning","message":{"text":"ObsidianService.findMarkdownFiles (cognitive 43): ObsidianService.findMarkdownFiles has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 8, loops 3 (6 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af669f478b2fe20aa394ef29ae886dd7072e38cc558a7c299fed3742025e9ca"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncHealth.evaluate (cognitive 43): SyncHealth.evaluate has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 13 (26 pts), if/else 12, boolean chains 5 (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":"Obsync/Services/SyncHealth.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"426d8186a512a0020470e3bc5e5f5cfefbd0618e899ee1490b1f791db5e04e30"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncTask.applyToReminder (cognitive 41): SyncTask.applyToReminder has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (24 pts), loops 3 (8 pts), boolean chains 6, match/switch 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Models/SyncTask.swift"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3b634604268dfc64904aadd4febd4a96048c0e859f764e91a7114cc0b9eb0d"}},{"ruleId":"D2","level":"warning","message":{"text":"ObsidianService.computeNextOccurrence (cognitive 40): ObsidianService.computeNextOccurrence has cognitive complexity 40 (threshold 15). Drivers by points: if/else 20 (32 pts), boolean chains 6, loops 1 (2 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"029b344ccbb1722bfc0753a9887b6186c25ed4908e50970f8baaa49378f006e2"}},{"ruleId":"D2","level":"warning","message":{"text":"ObsidianService.markTaskComplete (cognitive 39): ObsidianService.markTaskComplete has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (35 pts), boolean chains 3, match/switch 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"af644dee6106681b365b5bd2d1b25a5fbc631ca0eb30694d88671a836819c3f2"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneralSettingsView.body (cognitive 33): GeneralSettingsView.body has cognitive complexity 33 (threshold 15). Drivers by points: if/else 21 (24 pts), boolean chains 7, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Views/SettingsView.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7daaeca9216e9aa1cee682a7b1eea14620466027c2e29e43286ddf88925e289f"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericMarkdownSource.findFiles (cognitive 30): GenericMarkdownSource.findFiles has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 10, 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":"Obsync/Services/Sources/GenericMarkdownSource.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f875167aa48d94f39ba53704e7969df79b7d876ee882805077dd3394fb627b"}},{"ruleId":"D2","level":"warning","message":{"text":"Things3Destination.getAvailableLists (cognitive 30): Things3Destination.getAvailableLists has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2 (8 pts), boolean chains 1 (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":"Obsync/Services/Destinations/Things3Destination.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69a1d50695c4188d5ef77f1b22f214520bd8cd7b88a4ac89226bad9b14e2407"}},{"ruleId":"D2","level":"warning","message":{"text":"Things3Destination.fetchRecentLogbookTasks (cognitive 28): Things3Destination.fetchRecentLogbookTasks has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 11 (22 pts), if/else 3 (4 pts), boolean chains 1, 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. This shape REPEATS in the file: one other method here (Things3Destination.fetchTasks) 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":"Obsync/Services/Destinations/Things3Destination.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"288444746de84962757a1be1614b832911563eb3974fbf08f1f6a6785e6b135f"}},{"ruleId":"D2","level":"warning","message":{"text":"Things3Destination.fetchTasks (cognitive 28): Things3Destination.fetchTasks has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 11 (22 pts), if/else 3 (4 pts), boolean chains 1, 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. This shape REPEATS in the file: one other method here (Things3Destination.fetchRecentLogbookTasks) 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":"Obsync/Services/Destinations/Things3Destination.swift"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcb1f6dfdb491a928d1e6fd774d4e0c9c9cae2bc452e1dbfc7af7552a882ec2"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericMarkdownParser.buildLine (cognitive 26): GenericMarkdownParser.buildLine has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7, ternaries 4 (7 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Sources/GenericMarkdownParser.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4deba3992896918f36ba23671220cb4bff3a0e5ef43a2096e07ee52f2105bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ObsidianService.parseTasksFromFile (cognitive 25): ObsidianService.parseTasksFromFile has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5497857097a73189649c1f37095441481afc343f05109f9ebb9c1f0642906ad"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskNotesSource.appendNewTaskViaFiles (cognitive 24): TaskNotesSource.appendNewTaskViaFiles has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 4, ternaries 4, loops 1 (2 pts), match/switch 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fb7c678fc6bc063881053bea9caf5487d724369669d51dcb842baa2a50ae2f"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncManager.runHealthCheck (cognitive 24): SyncManager.runHealthCheck has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (9 pts), loops 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/SyncManager.swift"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7063a3dd64324b20bce74e0499217f7605e40ca01d787e053e2d58018509846"}},{"ruleId":"D2","level":"warning","message":{"text":"ObsidianService.applySubtaskHandling (cognitive 23): ObsidianService.applySubtaskHandling has cognitive complexity 23 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 3 (7 pts), boolean chains 3, ternaries 1 (3 pts), match/switch 1 (nesting depth added 10). Of this number, 21 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16ba975c8bba3980d148720b5858af3d7d54d2930ddea49648ff683c47782c2"}},{"ruleId":"D2","level":"warning","message":{"text":"ObsidianService.appendTaskToInbox (cognitive 23): ObsidianService.appendTaskToInbox has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 6, ternaries 3 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42b499e86c1dd08fae8b0f116b6e3e42c60660ed6539d30c6a8f18b395aa9db"}},{"ruleId":"D2","level":"warning","message":{"text":"ObsidianService.applyPriorityChange (cognitive 23): ObsidianService.applyPriorityChange has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c83a54569b1a872661abb7ca80d709477f529a7b63ae8421fe8bc8b7e34e7b"}},{"ruleId":"D2","level":"warning","message":{"text":"ObsidianService.scanVault (cognitive 22): ObsidianService.scanVault has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (8 pts), ternaries 1 (3 pts), error handling 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5287db59071ed5af1f89fe9fc8cd5fdee60b0438c87ab826838b1b1b1071b472"}},{"ruleId":"D2","level":"warning","message":{"text":"ObsidianService.nextMonthlyOnThe (cognitive 22): ObsidianService.nextMonthlyOnThe has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 2 (3 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"050cca60a9626db49470faf280bc86ca078b0926c3450cc5c32a9447d9469369"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarFeedDestination.parseICS (cognitive 22): CalendarFeedDestination.parseICS has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Destinations/CalendarFeedDestination.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c60c798b3b6d4618191ea6f315c0a0fc0c0d48336cbb84d762201ea47ba2fb1"}},{"ruleId":"D2","level":"warning","message":{"text":"DuplicateReminders.plan (cognitive 22): DuplicateReminders.plan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 6). Of this number, 14 points are the body\u0027s own statements and 8 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Destinations/RemindersDestination.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59946487d8089e2f50dfbd846e58fba8aed1d59bcd0b3e43160e090647975ea"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickAddParser.parse (cognitive 21): QuickAddParser.parse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (2 pts), ternaries 2, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/QuickAddParser.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e61a23e1dc43bdd79294200ca8f42a374db4ba63fcfcbdaf1a3da141b709868"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskNotesSource.decodeApiTasks (cognitive 20): TaskNotesSource.decodeApiTasks has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (20 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":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"52261e90df7071cd6f569711f9ff144b95b8953bbe36a1c81dab5dd8dc7fd545"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericMarkdownSource.scanTasks (cognitive 19): GenericMarkdownSource.scanTasks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Sources/GenericMarkdownSource.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3172553b2bcabdd43c6f4252b42f4a79046d9ee431724d26d6b1c10514f46fc4"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarFeedDestination.writeICS (cognitive 19): CalendarFeedDestination.writeICS has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 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":"Obsync/Services/Destinations/CalendarFeedDestination.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e6983ce47c5f497dc63e9d0e60cdd6e6c22e54aa2635a2211b2e04a162f9f9"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncState.loadFile (cognitive 18): SyncState.loadFile has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 1, error handling 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":"Obsync/Models/SyncState.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"7701ef1dd54f702d08540fccb4710517b5f86140b8ecc4b3ffc7e99e24852b55"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncTask.userWrittenNotes (cognitive 18): SyncTask.userWrittenNotes has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 2 (3 pts), loops 3, ternaries 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Models/SyncTask.swift"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fda889ad7ef2853b9df6846a3196ab63e11e5c179be4daf8416e34a3a55475"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.createNewTasks (cognitive 18): SyncEngine.createNewTasks has cognitive complexity 18 (threshold 15). Drivers by points: loops 3 (8 pts), if/else 5 (7 pts), error handling 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: Obsync/Services/SyncEngine.swift holds 2 of the 38 methods over the threshold \u2014 including the worst \u2014 and 656 of the 1237 points over it (53%), 4.3\u00D7 the next-largest file (Obsync/Services/ObsidianService.swift at 154). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/SyncEngine.swift"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ad00a2523b0b467565ac60555ae691c63dd533a64a559d9e6eb46a2d0bac3b"}},{"ruleId":"D2","level":"warning","message":{"text":"ObsidianTasksSource.scanTasks (cognitive 17): ObsidianTasksSource.scanTasks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, ternaries 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Sources/ObsidianTasksSource.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c184e97955a8bf5f648e149e6ba74566dbd585ef00609ff4a1d82f71677fdc40"}},{"ruleId":"D2","level":"warning","message":{"text":"ListMappingsView.body (cognitive 17): ListMappingsView.body has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 5, ternaries 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":"Obsync/Views/SettingsView.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ac4104e2afc58e8fc4406e2e547bdc4a9af23ca6657c64bdc1bf82c7abb0ea"}},{"ruleId":"D2","level":"warning","message":{"text":"ObsidianService.applyDateChange (cognitive 16): ObsidianService.applyDateChange has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b059357feca747323d093183483c4cb53e7f78dd4249009c22038d9453b3ac8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncEngine.performSync: MethodTooLong \u2014 performSync runs 679 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 579 over it, 6.79\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":"Obsync/Services/SyncEngine.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01aeb16706bccda7896df5a1d50e5527efda140b49fb605e16259f3b8374092"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GeneralSettingsView.body: MethodTooLong \u2014 body runs 359 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 259 over it, 3.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Views/SettingsView.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bce92014c58ac428f4c4ef5a67373ec026383058568f05b46e5cd84ccb103d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdvancedSettingsView.body: MethodTooLong \u2014 body runs 336 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 236 over it, 3.36\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":"Obsync/Views/SettingsView.swift"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"202d08bd35378ca4c20fdf343f92b769a8f1d3da98927308ead2280a1bd21410"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SyncManager: TooManyMethods \u2014 76 methods. The bar is 30 methods; this is 46 over it, 2.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":"Obsync/Services/SyncManager.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d174395e8a32dae568687fd26fe216892038aa3b9307b72ff1ddfa302896600"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/SettingsView.swift: FileTooLong \u2014 1247 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 747 over it, 2.49\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":"Obsync/Views/SettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5827a22db295d7a987b09346cd8ab14b5c07dc043d380147c5eb30388828e2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ListMappingsView.body: MethodTooLong \u2014 body runs 245 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 145 over it, 2.45\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":"Obsync/Views/SettingsView.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f40288fc475d42c5d97625ec9c4807ee6d054996fa0d42fe05abf98b7022d5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ObsidianService: ClassTooLong \u2014 910 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 510 over it, 2.28\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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3b635843e3a42880d319f250670e69c38a1b40d11d734dab766c40c050f837"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SyncManager: ClassTooLong \u2014 899 significant lines (blank, comment-only and punctuation-only lines excluded), 76 methods. The bar is 400 significant lines; this is 499 over it, 2.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/SyncManager.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f54b45cbdc1dac88e97b0978c33981620b8ecdc167ee9369313ec66e6b844ef"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SyncEngine: ClassTooLong \u2014 887 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 487 over it, 2.22\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":"Obsync/Services/SyncEngine.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7105b83f5cee176b19ce3581cea36d74de680edaa7642b82783951ccbc3fdea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/ObsidianService.swift: FileTooLong \u2014 951 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ObsidianService (6-1734). 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9c911d7994aa2ffaa0e6276e736f0c4a1b32e3088880187c9dfccd14291a79"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/SyncManager.swift: FileTooLong \u2014 950 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: SyncManager (95-1590). The bar is 500 significant lines; this is 450 over it, 1.90\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/SyncManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d162002bb9167f483ba7677e0fbc155e4154d7ef0ee2c4d3a6eb7a7c43bbce7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/SyncEngine.swift: FileTooLong \u2014 927 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SyncEngine (7-1687). The bar is 500 significant lines; this is 427 over it, 1.85\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":"Obsync/Services/SyncEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e24cd0dc071df3d3f813993dd8bbc198551c68ae51da57cf40d95c3ce5a38c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SyncConfiguration: ClassTooLong \u2014 681 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 281 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":"Obsync/Models/SyncConfiguration.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc47cbfd03ece26f9f732d453bded792320bbbea39b5e0cae593a7c7cfa4203c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TaskNotesSource: ClassTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 270 over it, 1.68\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":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a715a07f96aee8ef8ff8549011134c782cf780a6ebc70eac048b080104ca517e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sources/TaskNotesSource.swift: FileTooLong \u2014 792 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: TaskNotesSource (25-1142). The bar is 500 significant lines; this is 292 over it, 1.58\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"925200d207eec90da75e9a08a2312201d4db0ef252cf745228ef61b14937c579"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TaskNotesSettingsView.body: MethodTooLong \u2014 body runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"Obsync/Views/SettingsView.swift"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe325aa4737c5ee601274caf58fdf12d19e8eb44bf071f6a0cf97415be31cba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Models/SyncConfiguration.swift: FileTooLong \u2014 711 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SyncConfiguration (50-1144). The bar is 500 significant lines; this is 211 over it, 1.42\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":"Obsync/Models/SyncConfiguration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fbe5ee071e9b1ecb04bb589076d93592a55111c0e68479f1aea462fda2e395"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TaskNotesSource.parseTaskNotesFile: MethodTooLong \u2014 parseTaskNotesFile runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\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":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"17698cf6034a033895a4a97bf29185da5e384394780dab97a1b6dd1631cb974f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AboutView.body: MethodTooLong \u2014 body 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":"Obsync/Views/AboutView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"de812df796927240d46d63decce3eafe687e1348098d417ae608045a6ed0e7ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Destinations/Things3Destination.swift: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 88 over it, 1.18\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":"Obsync/Services/Destinations/Things3Destination.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa816a4752e243d8e948bce93451bec2bd7262d8dc12f2370a2e0e1487cb323e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ObsidianService: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fae2c36cb7a6f53b46a92c4f58c8986b33bebd41b4530f7b7e8dc74d44c3be5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ObsidianService.markTaskComplete: MethodTooLong \u2014 markTaskComplete 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"9819847f9be6e37d9d5593882fba922d657d78b5c9665d6bf0b7fe265ee8d551"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Models/SyncTask.swift: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 47 over it, 1.09\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":"Obsync/Models/SyncTask.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5608a3ec64c6376b1ad5562d0f9cf1a88a1bbc7a9f813dd5bb562b27c1856a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskNotesSource: 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":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d4d36acf671d93f1f03399e981a45d5f67327b2b043c49a9f0c7c3cc7e9d2b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncTask.fromObsidianLine: MethodTooLong \u2014 fromObsidianLine runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"Obsync/Models/SyncTask.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"2504378198d23231fe1d9d4e1e726fc627e0054a4b5346ca140c0b6d5dc7b352"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/ContentView.swift: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 28 over it, 1.06\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":"Obsync/Views/ContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c7106be2950d39ef733359d74641aad4b9626c955b954d50ed59da96c94068"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (44 shared lines): Obsync/Services/ObsidianService.swift:920-985 | Obsync/Services/ObsidianService.swift:1004-1085 \u2014 These two members are variants of one another: 44 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8382f612dc41cbd6164804b8d4e2ca78571175a8b3e2af946649c94a746eab"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (19 shared lines): Obsync/Services/Sources/TaskNotesSource.swift:1161-1209 | Obsync/Services/Sources/TaskNotesSource.swift:1229-1268 \u2014 These two members are variants of one another: 19 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":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e645cd4e1edfc13149b742f8079b2c076bf7085de00c70fdc1d7bee9af457151"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Obsync/Views/ContentView.swift:8-35 | Obsync/Views/MenuBarView.swift:461-493 | Obsync/Views/MenuBarView.swift:495-519 | Obsync/Views/PreviewChangesView.swift:5-26 | Obsync/Views/SyncHealthView.swift:203-224 \u2014 These 5 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 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":"Obsync/Views/ContentView.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbc30fa383120891b9798c5772e409ff8a9062e178a36b35b6cfc29417b28fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (84 corresponding lines): Obsync/Services/Destinations/Things3Destination.swift:682-777 | Obsync/Services/Destinations/Things3Destination.swift:794-877 \u2014 These two members are one piece of code written twice and then edited apart: 84 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Destinations/Things3Destination.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ffb14f63a3a5ad011aaea8dd2f3dd262810fd6804e19cb9dfa141c9bb9ee4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 54\u002B corresponding lines): Obsync/Services/Destinations/AsanaDestination.swift:216-270 | Obsync/Services/Destinations/LinearDestination.swift:264-317 | Obsync/Services/Destinations/TodoistDestination.swift:208-265 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 54 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":"Obsync/Services/Destinations/AsanaDestination.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bf5a35fd852b7e4239f4c6c32c28e28df67b58db57164b586c6941fa603186"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Obsync/Services/ObsidianService.swift:1128-1175 | Obsync/Services/ObsidianService.swift:1179-1215 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5b21b73f85cd0880e5d997b652e2822a30857a09f2b0b906b545aae1bb0ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Obsync/Services/SyncManager.swift:856-884 | Obsync/Services/SyncManager.swift:906-937 \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":"Obsync/Services/SyncManager.swift"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"39adc241e354f3c5e65c5ad66d3b8c5545297009042d519293bdfd5010dfae90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Obsync/Services/Destinations/TickTickDestination.swift:99-131 | Obsync/Services/Destinations/TodoistDestination.swift:94-133 \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":"Obsync/Services/Destinations/TickTickDestination.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7567abda74357038fe6665cc63fc5820343383df0223834179395500d456d147"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Obsync/Services/Destinations/TickTickDestination.swift:261-286 | Obsync/Services/Destinations/TickTickDestination.swift:290-326 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Destinations/TickTickDestination.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36892f34463398728f06bbdb358cc85c0feb1c66bc409ba402c792bc656183f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Obsync/Views/MenuBarView.swift:336-374 | Obsync/Views/MenuBarView.swift:376-408 \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":"Obsync/Views/MenuBarView.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"01abeb282ca0d69708d8f7313f9c08e60fcf1c7381bc3c34114cc2fa53f746b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Obsync/Views/MenuBarView.swift:726-748 | Obsync/Views/PinnedTasksView.swift:364-375 \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":"Obsync/Views/MenuBarView.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ac3e83a028d73faa5fb9396bd11765909cc2665dc57959b48bbada45e19b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Obsync/Views/ContentView.swift:490-525 | Obsync/Views/OnboardingView.swift:225-261 \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":"Obsync/Views/ContentView.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a796ba8ae1efa777da2f39dbd7f2ce342e4d6ce15c5d5d4c2bad52bdb135b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Obsync/Services/Destinations/RemindersDestination.swift:156-175 | Obsync/Services/Destinations/RemindersDestination.swift:177-195 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Destinations/RemindersDestination.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c26cb4767c40528e1d8402c70c435bb3437188bd20bd98756c6f64e79752ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Obsync/Services/Destinations/AsanaDestination.swift:159-171 | Obsync/Services/Destinations/TickTickDestination.swift:154-165 | Obsync/Services/Destinations/TodoistDestination.swift:166-174 \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":"Obsync/Services/Destinations/AsanaDestination.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdff9d4a1f5298b23bda872597c642f61e4b1680067c0f02bbbec70416043a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Obsync/Services/Destinations/AsanaDestination.swift:76-90 | Obsync/Services/Destinations/TickTickDestination.swift:81-95 | Obsync/Services/Destinations/TodoistDestination.swift:77-90 \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":"Obsync/Services/Destinations/AsanaDestination.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5f02ceea4625b8fa8345d2687780e4cf972a01e7456f1f53a6e5322d535924"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Obsync/Services/AuditLog.swift:41-51 | Obsync/Services/SyncManager.swift:52-59 \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":"Obsync/Services/AuditLog.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"683ad204cc2df12654851b36c00eeb75ebca96fb676567c1bc6605fa7c444a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Obsync/Services/Destinations/AsanaDestination.swift:29-41 | Obsync/Services/Destinations/TodoistDestination.swift:29-39 \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":"Obsync/Services/Destinations/AsanaDestination.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0a730e26e8d99c0f8d47a008a4ef897902b698a45bd886ad22b3f04a47d1f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Obsync/Services/ObsidianService.swift:1529-1536 | Obsync/Services/Sources/GenericMarkdownSource.swift:146-154 | Obsync/Services/Sources/TaskNotesSource.swift:720-728 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b99721fe7c4ae41034d6f3c503841d142dff196790b0ba2cd695d849f33cbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Obsync/Services/Destinations/CalendarFeedDestination.swift:247-252 | Obsync/Services/Destinations/CalendarFeedDestination.swift:254-259 | Obsync/Services/Destinations/LinearDestination.swift:371-375 \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":"Obsync/Services/Destinations/CalendarFeedDestination.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5df0a1388d0b06b8cdcfbda15baf3295178966fd4b5d62eff86682ac052b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Obsync/Services/Destinations/LinearDestination.swift:225-233 | Obsync/Services/Destinations/LinearDestination.swift:235-243 \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":"Obsync/Services/Destinations/LinearDestination.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aacc4f3c9bf3b3cc2c9322da16f0b4713508548311210e869e06bf1183d5b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Obsync/Services/Destinations/TickTickDestination.swift:68-79 | Obsync/Services/RemindersService.swift:86-96 \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":"Obsync/Services/Destinations/TickTickDestination.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"018676c8ed569ee33b7105ce022df6cefd13f48a1f1595930c131a4bd41b8887"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Obsync/Services/Destinations/AsanaDestination.swift:211-214 | Obsync/Services/Destinations/TickTickDestination.swift:346-349 | Obsync/Services/Destinations/TodoistDestination.swift:203-206 \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":"Obsync/Services/Destinations/AsanaDestination.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9d598f9533818a2a9d052935d92d04d5a65ef03cafb006f743fc6c4ff6d024"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Obsync/Services/Destinations/AsanaDestination.swift:173-175 | Obsync/Services/Destinations/TickTickDestination.swift:342-344 | Obsync/Services/Destinations/TodoistDestination.swift:176-178 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"Obsync/Services/Destinations/AsanaDestination.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d822ccad0f70b39fb3f90c034e89afd6e12f9f1aa5ff9b3ba8f7289d231ce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Obsync/Views/ContentView.swift:115-142 | Obsync/Views/ContentView.swift:639-666 \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":"Obsync/Views/ContentView.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b79637203dccf2acafd3d7d35258bbe88aec9297c1aa18f0214c9acc46d2d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201324 lines \u00D7 2): Obsync/Services/Destinations/RemindersDestination.swift:260-279 | Obsync/Services/RemindersService.swift:32-55 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Destinations/RemindersDestination.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"439944f609150159d9c1f54fa199230d1693f3d32cbc64b21396819c135aa650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 3): Obsync/Services/ObsidianService.swift:747-767 | Obsync/Services/ObsidianService.swift:926-944 | Obsync/Services/ObsidianService.swift:1013-1033 \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 \u0060Obsync/Services/ObsidianService.swift:747\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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf3a2ae452942f4d394c9484b019ff73cc92cdaccfa548cf2c99757166b80cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Obsync/Services/Destinations/Things3Destination.swift:351-370 | Obsync/Services/Destinations/Things3Destination.swift:425-443 \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":"Obsync/Services/Destinations/Things3Destination.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0c4ac7116a3fea9bc51192f6354edac66fc82909f59048670ec5556a5fbc07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Obsync/Services/Destinations/Things3Destination.swift:761-777 | Obsync/Services/Destinations/Things3Destination.swift:861-877 \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 \u0060Obsync/Services/Destinations/Things3Destination.swift:761\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":"Obsync/Services/Destinations/Things3Destination.swift"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a4cab9bc8555d620d0d8027d1b0bf0eac186d4cb9c6451c9d3b33297cd57f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Obsync/Services/Destinations/Things3Destination.swift:732-758 | Obsync/Services/Destinations/Things3Destination.swift:832-858 \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 \u0060Obsync/Services/Destinations/Things3Destination.swift:732\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Destinations/Things3Destination.swift"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"432fb5f825225504c49fca37779efe71b983647a8d44924c525965d421845f8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Obsync/Services/SyncEngine.swift:953-968 | Obsync/Services/SyncEngine.swift:1020-1034 \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 \u0060Obsync/Services/SyncEngine.swift:953\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":"Obsync/Services/SyncEngine.swift"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfceb0f432c2cbb2fffc59032f45368c105660257c4cfeac2dc6e2eb26afbc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Obsync/Services/Destinations/AsanaDestination.swift:226-240 | Obsync/Services/Destinations/TodoistDestination.swift:218-232 \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 \u0060Obsync/Services/Destinations/AsanaDestination.swift:226\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":"Obsync/Services/Destinations/AsanaDestination.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"917e4d38e59662881cbc55aa7cb0e6932b304afc6eff7c9ad42c2136b08daddd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201325 lines \u00D7 2): Obsync/Views/MenuBarView.swift:642-666 | Obsync/Views/PinnedTasksView.swift:315-328 \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. 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":"Obsync/Views/MenuBarView.swift"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f89b1432cdb4fc6fcf45a91f9d1489f297ea5d67bb35da30d0f2b4e4b85ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Obsync/Services/Destinations/RemindersDestination.swift:160-173 | Obsync/Services/Destinations/RemindersDestination.swift:181-194 \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":"Obsync/Services/Destinations/RemindersDestination.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a0a67d3cee699c82044cc482b945833ac276f66e297aa5a71ded19ff96328b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Obsync/Services/Destinations/Things3Destination.swift:525-538 | Obsync/Services/Destinations/Things3Destination.swift:561-574 \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":"Obsync/Services/Destinations/Things3Destination.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f2cbf2d681e4b8949e525a5ab2792cfec94a4f5f8aae0b6b6ce53714fa2b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Obsync/Services/ObsidianService.swift:946-958 | Obsync/Services/ObsidianService.swift:1035-1047 \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 \u0060Obsync/Services/ObsidianService.swift:946\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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"90eaf6f007b787a7f2ea5bdce61df177141533e94f685e80aa84c963641fefee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Obsync/Views/OnboardingView.swift:103-115 | Obsync/Views/OnboardingView.swift:429-441 \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 \u0060Obsync/Views/OnboardingView.swift:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006016\u0060 in one and \u00604\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":"Obsync/Views/OnboardingView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e16bdcb47314af27a0cdfabfb89d4c2990722519dde4730bfe14e2748cdd55c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Obsync/Services/ObsidianService.swift:974-985 | Obsync/Services/ObsidianService.swift:1074-1085 \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 \u0060Obsync/Services/ObsidianService.swift:974\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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"296a52cb9afe5bc9ff24b2f117fd45509c239b730e8f4157ab2448be2c6eff11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Obsync/Services/ObsidianService.swift:1162-1175 | Obsync/Services/ObsidianService.swift:1202-1215 \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 \u0060Obsync/Services/ObsidianService.swift:1162\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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"645a2e367b2a91e52cf8b6f22d58d5f3fe3fbd417b340eda537a896db5832dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Obsync/Views/ContentView.swift:369-380 | Obsync/Views/OnboardingView.swift:287-298 \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":"Obsync/Views/ContentView.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fb8367fec9c56ee1f70460ce115ecf5a717ef11a32bf11c0f1399d383d4553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Obsync/Services/SyncEngine.swift:719-728 | Obsync/Services/SyncEngine.swift:842-852 \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 \u0060Obsync/Services/SyncEngine.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":"Obsync/Services/SyncEngine.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0833e415d571d95abcdc7a5d57dbe3206a82f0c48aa85a27b978cb6d87ffa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Obsync/Views/ContentView.swift:149-159 | Obsync/Views/ContentView.swift:298-308 \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 \u0060Obsync/Views/ContentView.swift:149\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":"Obsync/Views/ContentView.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd1737d3d6b388a0e569e43c317542e3f9ce0c9015f75c88d06c8043570ac15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Obsync/Services/Destinations/TickTickDestination.swift:262-271 | Obsync/Services/Destinations/TickTickDestination.swift:301-309 \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":"Obsync/Services/Destinations/TickTickDestination.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"53de673359c0ccc8a3b774334eaeca79714ba88e6eff2dc737673f0d8e79d227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Obsync/Services/Sources/TaskNotesSource.swift:461-470 | Obsync/Services/Sources/TaskNotesSource.swift:487-496 \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 \u0060Obsync/Services/Sources/TaskNotesSource.swift:461\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":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"902a573377152f93b8535773448cbf6a8b3cbf7028736934fb349fd4d8c67bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Obsync/Views/SettingsView.swift:1337-1346 | Obsync/Views/SettingsView.swift:1359-1368 \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 \u0060Obsync/Views/SettingsView.swift:1337\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":"Obsync/Views/SettingsView.swift"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97d3a2027f17b1577f7448aab29d598936ad94fac759dbf2805ebd63a3cfda5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Obsync/Services/Sources/TaskNotesSource.swift:400-408 | Obsync/Services/Sources/TaskNotesSource.swift:465-473 | Obsync/Services/Sources/TaskNotesSource.swift:491-499 \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":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc45842f824a306e067638d6b4c4b16e8cc5adb69e8b323757b1aa2b7b8dc19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Obsync/Views/ContentView.swift:27-35 | Obsync/Views/PreviewChangesView.swift:18-26 | Obsync/Views/SyncHealthView.swift:216-224 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Obsync/Views/ContentView.swift:27\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":"Obsync/Views/ContentView.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a607740c35f30367476b9f28f26f3a52a42e0814e86e41268e91e80a1d1003e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Obsync/Services/Destinations/RemindersDestination.swift:48-56 | Obsync/Services/RemindersService.swift:73-83 \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 \u0060Obsync/Services/Destinations/RemindersDestination.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 \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":"Obsync/Services/Destinations/RemindersDestination.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccce4c293b81979c8da782a455370e97b3641502be58cfb278fbd54e6b3f267"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Obsync/Services/ObsidianService.swift:1146-1154 | Obsync/Services/ObsidianService.swift:1192-1200 \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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fa45fa67567a01366e9deaa82387634ca78308c5ff802f57fa4c0b440ca9ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Obsync/Services/Sources/TaskNotesSource.swift:1168-1176 | Obsync/Services/Sources/TaskNotesSource.swift:1234-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d021cec0d8ec2a350b61c3d619a1f597e45432e3e06db40b2531c03bc8b977"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Obsync/Views/PreviewChangesView.swift:6-14 | Obsync/Views/SyncHealthView.swift:204-212 \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. 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":"Obsync/Views/PreviewChangesView.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e7af8a66a9b285b5a52bafe5d2894138449d5735c2b3f32b9fa24007a28d76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Obsync/Views/SettingsView.swift:1176-1183 | Obsync/Views/SettingsView.swift:1191-1198 | Obsync/Views/SettingsView.swift:1230-1237 \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 \u0060Obsync/Views/SettingsView.swift:1176\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Obsync/Views/SettingsView.swift:1175\u0060 calls \u0060Text\u0060, \u0060tag\u0060 and \u0060Obsync/Views/SettingsView.swift:1190\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":"Obsync/Views/SettingsView.swift"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"921d54210626d148c39ad989cfb609d9e37c99f9f3db8d0ebda8f89d4180b9f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Obsync/Models/SyncTask.swift:344-351 | Obsync/Services/Sources/GenericMarkdownParser.swift:148-154 \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 \u0060Obsync/Models/SyncTask.swift:344\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":"Obsync/Models/SyncTask.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb3b4ef2bafdd3ef0d662c58e3d5ca67d1f9bf8f699e1a6ed52d77f88a161e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Obsync/Models/SyncTask.swift:370-377 | Obsync/Models/SyncTask.swift:385-392 \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 \u0060Obsync/Models/SyncTask.swift:370\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":"Obsync/Models/SyncTask.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5c1ebda1b31ed5c02493bf3d51e2dd1f9d51adcdf08664205dd378e65f735f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Obsync/Services/Destinations/AsanaDestination.swift:56-64 | Obsync/Services/Destinations/AsanaDestination.swift:195-202 \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 \u0060Obsync/Services/Destinations/AsanaDestination.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/Destinations/AsanaDestination.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7534e922d2c8a0e3c7f7241e88bcb4b4a22ba7dc40ff112ac146d499a9ac5b82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Obsync/Services/ObsidianService.swift:1287-1296 | Obsync/Services/ObsidianService.swift:1342-1351 \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 \u0060Obsync/Services/ObsidianService.swift:1287\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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e40003951a0d16718d3cb2a1651d7d321a7514afb866093c9da30a214a8c3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Obsync/Services/Sources/GenericMarkdownParser.swift:287-295 | Obsync/Services/Sources/GenericMarkdownParser.swift:365-373 \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 \u0060Obsync/Services/Sources/GenericMarkdownParser.swift:287\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":"Obsync/Services/Sources/GenericMarkdownParser.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cb0936607f44096a76c654834c0b8ac460451c5dadd1c55dffcabc1d7b0c5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Obsync/Views/SettingsView.swift:611-618 | Obsync/Views/SettingsView.swift:668-674 | Obsync/Views/SettingsView.swift:794-801 | Obsync/Views/SettingsView.swift:866-873 \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 \u0060Obsync/Views/SettingsView.swift:611\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Views/SettingsView.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e4dca463003c30ba12aba16b22a7fc5876a0a54c12b0c9a2a3097df65cabdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Obsync/Services/Sources/GenericMarkdownParser.swift:288-294 | Obsync/Services/Sources/GenericMarkdownParser.swift:350-356 | Obsync/Services/Sources/GenericMarkdownParser.swift:366-372 \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 \u0060Obsync/Services/Sources/GenericMarkdownParser.swift:288\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":"Obsync/Services/Sources/GenericMarkdownParser.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb4a673296787dcb40f752b13e18c51e0b810cd725b94df9ff18f8ee26c3f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Obsync/Models/SyncConfiguration.swift:975-981 | Obsync/Models/SyncConfiguration.swift:999-1005 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Obsync/Models/SyncConfiguration.swift:975\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":"Obsync/Models/SyncConfiguration.swift"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59a323374e7d95fdde7d979237b1e94b13ffe73b915d87e2a37ac72672db208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Obsync/Services/SyncManager.swift:862-869 | Obsync/Services/SyncManager.swift:911-918 \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":"Obsync/Services/SyncManager.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"143032d50a6c831345d2e91988fc9dffc3324382acf06bb883fc628b1b67a9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Obsync/Views/ContentView.swift:26-30 | Obsync/Views/MenuBarView.swift:482-486 | Obsync/Views/MenuBarView.swift:506-510 | Obsync/Views/PreviewChangesView.swift:17-21 | Obsync/Views/SyncHealthView.swift:215-219 \u2014 there are 5 copies across 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Views/ContentView.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8ef229cda8d4a6f1b059556ff561c399dc645b2416f8a32518fdc3b3f9d8fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Obsync/Models/SyncConfiguration.swift:862-867 | Obsync/Models/SyncConfiguration.swift:974-979 | Obsync/Models/SyncConfiguration.swift:998-1003 \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 \u0060Obsync/Models/SyncConfiguration.swift:862\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 before the matched lines, \u0060Obsync/Models/SyncConfiguration.swift:997\u0060 calls \u0060isFilterTag\u0060 and \u0060Obsync/Models/SyncConfiguration.swift:973\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":"Obsync/Models/SyncConfiguration.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf888e7c728128932a62d7c539294eb899023b73e1845e48c9bbc30b789d1747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Obsync/Services/Destinations/AsanaDestination.swift:251-257 | Obsync/Services/Destinations/TodoistDestination.swift:245-251 \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 \u0060Obsync/Services/Destinations/AsanaDestination.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. 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":"Obsync/Services/Destinations/AsanaDestination.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b13d4aa2c9193cb88e0c821f4bffd631725ee83101b3722fcb409abb4a016f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Obsync/Services/ObsidianService.swift:1670-1675 | Obsync/Services/Sources/GenericMarkdownSource.swift:224-228 \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 \u0060Obsync/Services/ObsidianService.swift:1670\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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbbb7079e9a6d3c650e9a746bcfbe8b68d2c809cccca4f2a8abfbd822f06d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Obsync/Services/Sources/TaskNotesSource.swift:1189-1193 | Obsync/Services/Sources/TaskNotesSource.swift:1251-1255 \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 \u0060Obsync/Services/Sources/TaskNotesSource.swift:1189\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Obsync/Services/Sources/TaskNotesSource.swift:1188\u0060 calls \u0060replacingOccurrences\u0060, \u0060trimmingCharacters\u0060 and \u0060Obsync/Services/Sources/TaskNotesSource.swift:1250\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":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"284fbcd0b4591ae6e6813dc7df93d5af62c7ba98c5e2a68ad59163c03f563dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Obsync/Views/MenuBarView.swift:677-684 | Obsync/Views/PinnedTasksView.swift:349-353 \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 \u0060Obsync/Views/MenuBarView.swift:677\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":"Obsync/Views/MenuBarView.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fa47f7515c5eb88352657a408e586300d638c01c0b841a34db27580af09ac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Obsync/Views/MenuBarView.swift:711-717 | Obsync/Views/PinnedTasksView.swift:343-347 \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 \u0060Obsync/Views/MenuBarView.swift:711\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":"Obsync/Views/MenuBarView.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c53358b5de581635478ad290ef6403f047aaa3d05d0313461e6623f4fc24d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Obsync/Models/SyncTask.swift:691-695 | Obsync/Services/Destinations/AsanaDestination.swift:296-300 | Obsync/Services/Destinations/LinearDestination.swift:365-369 | Obsync/Services/Destinations/Things3Destination.swift:883-887 | Obsync/Services/Destinations/TodoistDestination.swift:316-320 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Models/SyncTask.swift"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"2877b5a256ff8344f9f8bf31cbe8271b151a35eb8bf5071f492dc99f9177aecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Obsync/Services/Destinations/RemindersDestination.swift:19-26 | Obsync/Services/RemindersService.swift:11-18 \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 \u0060Obsync/Services/Destinations/RemindersDestination.swift:19\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":"Obsync/Services/Destinations/RemindersDestination.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1a7a72321610c7a8bf1a76a3c7807c2f74ec237a734522c811142a920ddbe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Obsync/Views/MenuBarView.swift:696-703 | Obsync/Views/PinnedTasksView.swift:355-362 \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":"Obsync/Views/MenuBarView.swift"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5555731616dd13457b6046548a696305a1a8ca0f423ee1e96d6e147217cfca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Obsync/Models/ProfileStore.swift:114-122 | Obsync/Models/SyncConfiguration.swift:795-803 | Obsync/Models/SyncLog.swift:69-77 \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":"Obsync/Models/ProfileStore.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09cc9e9e6720451ce848a1f1e4a7c0b1c937e3afa0087731f38809d3531a464"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Obsync/Models/SyncConfiguration.swift:805-813 | Obsync/Models/SyncLog.swift:79-87 \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":"Obsync/Models/SyncConfiguration.swift"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9aa45906e9e7ac20d2d71d13a816eb2161adcbcf62e7a2108fce542a3f78cb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Obsync/Services/Destinations/LinearDestination.swift:346-354 | Obsync/Services/Destinations/TickTickDestination.swift:409-416 | Obsync/Services/Destinations/TodoistDestination.swift:288-295 \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":"Obsync/Services/Destinations/LinearDestination.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d9a91f6ede5feccaab08cf9f984778a8e4d034259cdd8067fb61e98f774e12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Obsync/Services/Destinations/TickTickDestination.swift:418-425 | Obsync/Services/Destinations/TodoistDestination.swift:297-304 \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":"Obsync/Services/Destinations/TickTickDestination.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ca7edf8f32aa5e069858cab31811437fc823a4247c598f45d0103e31b60838"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Obsync/Services/AgendaBuilder.swift:26-30 | Obsync/Services/PinnedTasksOrganizer.swift:97-101 \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 \u0060Obsync/Services/AgendaBuilder.swift:26\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060calendar\u0060 to \u0060Calendar = .current\u0060 in one and \u0060Calendar\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":"Obsync/Services/AgendaBuilder.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"26767f6405d50909123c5e85b1aa560f6fe34ac966df80ad92930b55b0a8d387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Obsync/Services/ObsidianService.swift:860-865 | Obsync/Services/ObsidianService.swift:869-874 | Obsync/Services/ObsidianService.swift:876-881 \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 \u0060Obsync/Services/ObsidianService.swift:860\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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1183e3e85b02bb662f2f0a578ba6566d4cebc2aabdee503e33d6ec66395375d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Obsync/Services/Sources/TaskNotesSource.swift:1183-1187 | Obsync/Services/Sources/TaskNotesSource.swift:1245-1249 \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 \u0060Obsync/Services/Sources/TaskNotesSource.swift:1183\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":"Obsync/Services/Sources/TaskNotesSource.swift"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"d147ed3e18003f8cc87efe5a545343e8dcad87e633ca47aca5858e45904ed335"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Obsync/Views/ContentView.swift:229-234 | Obsync/Views/ContentView.swift:608-613 \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 \u0060Obsync/Views/ContentView.swift:229\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":"Obsync/Views/ContentView.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f3c70d741915682c6331677a37254ec7a86ddbdbb8bb745f6c42eb431f143b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Obsync/Views/OnboardingView.swift:353-357 | Obsync/Views/SettingsView.swift:1407-1411 \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":"Obsync/Views/OnboardingView.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d17854641d86ced9d579a12299eabca967dd17fbaf7976efa3176fc28de0dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Obsync/Views/OnboardingView.swift:367-371 | Obsync/Views/SettingsView.swift:1435-1439 \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":"Obsync/Views/OnboardingView.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f25e7499ea15525aac36fea19668efde183ed0a7400ee103d6c168ccfb73507"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ObsidianService (LCOM4 5): ObsidianService\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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6af5f6edfc3e2ccee2395a7dade139afa9448ac49e7911e2a7f0f39f517476"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStartThrowsWhenPortAlreadyInUse: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RemindianTests/TickTickOAuthServerTests.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"be66eef4ebbdbee6dab355aee41de89b6509555013e44339afe5d27e7793644b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_fuzz_randomEditsAlwaysMatchColdScan: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RemindianTests/ObsidianServiceParseCacheTests.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"403e13020828a8236f91b9480ed9c604968d3bc92242e244babfd1a48303c611"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRoundTripDaily: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RemindianTests/RecurrenceConverterTests.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b0606a6f05ae371431c7942c173b2aee28aec3b73a2a7b49208d2c88ccc788"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRoundTripWeekly: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RemindianTests/RecurrenceConverterTests.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3618df7cbfef0d4740c4ea732a6566085000df744d3dee3c37b37b425025c8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRoundTripMonthly: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RemindianTests/RecurrenceConverterTests.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f556ba074530be29d70d8f279999149a81df5a9b273276d27e6d94a0db759d04"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIncompleteSurroundingLinesUntouched: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RemindianTests/WritebackTests.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"988c58e2ba5e5721db276b28c98f11390dd59ab7fc5ec02a0f81ed2245297e10"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMetadataPreservesSurroundingLines: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RemindianTests/WritebackTests.swift"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2003affaa0e5636b6a041a2431bc547684b6472abc7396103e15ca9407fc20b"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4e1851781ec289f88755a5ccc9db55b07e4fcc49b862fae382a81f0a5236f000"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a73297e0398cce0917cf9101030c7f6c5ba9e599fea07b4868314fcd80207285"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Obsync/Services/SyncEngine.swift: Obsync/Services/SyncEngine.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 202 in SyncEngine.performSync at line 236. 1 of those changes was a fix/bug commit, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:48:54 \u002B00:00\u0027 --until=\u00272026-11-11 12:48:54 \u002B00:00\u0027 --full-history --no-merges -- Obsync/Services/SyncEngine.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":"Obsync/Services/SyncEngine.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6b78cb2cd75318e2277c62fa70896e18957be72776ae72c9bb322b698ef064"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Obsync/Models/SyncConfiguration.swift: Obsync/Models/SyncConfiguration.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in SyncConfiguration.explainTargetList at line 924. 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-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:48:54 \u002B00:00\u0027 --until=\u00272026-11-11 12:48:54 \u002B00:00\u0027 --full-history --no-merges -- Obsync/Models/SyncConfiguration.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":"Obsync/Models/SyncConfiguration.swift"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"045b98eb3c664956e7060f109e29a4d05d24d4cd948ca6d71d703bdf849684d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Obsync/Views/SettingsView.swift: Obsync/Views/SettingsView.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in AdvancedSettingsView.body at line 1164. 1 of those changes was a fix/bug commit, and the other 8 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-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:48:54 \u002B00:00\u0027 --until=\u00272026-11-11 12:48:54 \u002B00:00\u0027 --full-history --no-merges -- Obsync/Views/SettingsView.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":"Obsync/Views/SettingsView.swift"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c594f15faaecd438ed9f6e548be01a92bc7a585a9e08b6848e9b03458da960"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Obsync/Models/SyncTask.swift: Obsync/Models/SyncTask.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in SyncTask.applyToReminder at line 841. 1 of those changes was a fix/bug commit, and the other 7 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-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:48:54 \u002B00:00\u0027 --until=\u00272026-11-11 12:48:54 \u002B00:00\u0027 --full-history --no-merges -- Obsync/Models/SyncTask.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":"Obsync/Models/SyncTask.swift"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"b008ea72dfc433f15ccbce974f352bae6d8124cd14a3fec46acfbb57e2607fd5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Obsync/Services/ObsidianService.swift: Obsync/Services/ObsidianService.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ObsidianService.appendTaskToInbox at line 529. 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-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 12:48:54 \u002B00:00\u0027 --until=\u00272026-11-11 12:48:54 \u002B00:00\u0027 --full-history --no-merges -- Obsync/Services/ObsidianService.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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f316cf4eee48cf8357b995571a5a48217f9c425169af6f435b47b499cca7811"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // A plain-text filter like TODO never appears in tags, so routing is normal. \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":"RemindianTests/GlobalFilterTests.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"55804b340665e62c7667c53b9deac42345113f179b11a40f095a00a0f1ba5b7b"}},{"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 \u0060ObsidianRemindersSync.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ObsidianRemindersSync.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5c34e553bb2e968753e18db709fe3093b38314ef1b822fd44265e0e510d257"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2d19f36fb780ee25008cfaaddf9e022603585e3753fbe9ec10ccb518a38d5d1d"},"properties":{"commitSha":"a58aa6c6966f7bb7357cd36acffb92c274b6ad47"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b4f870141e0d2a87223fd4995a4fd138a5199461c720fcbd91e74243e84d1123"},"properties":{"commitSha":"ec9e4dde9da1b48d02583f176b791d55930baed9"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"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) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 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":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!content.isEmpty \u0026\u0026 !content.hasSuffix(\u0022\\n\u0022)\u0060 appears character-identically in 2 files \u2014 Obsync/Services/ObsidianService.swift, Obsync/Services/Sources/GenericMarkdownSource.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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c806fbc02d2471247d76c607b4a2bb6d65d6ec71f825b54596a373bdfc25d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.enableTagWriteback \u0026\u0026 config.writeTagsToReminderNotes\u0060 appears character-identically in 2 files \u2014 Obsync/Services/Destinations/RemindersDestination.swift, Obsync/Services/SyncEngine.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":"Obsync/Services/Destinations/RemindersDestination.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fca6535e5fe8d9d1d20640641d7b4523710f3143944e62abf9169a63fa8a5bd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name == trimmed || relativePath == trimmed || relativePath.hasPrefix(trimmed \u002B \u0022/\u0022)\u0060 appears character-identically in 2 files \u2014 Obsync/Services/ObsidianService.swift, Obsync/Services/Sources/GenericMarkdownSource.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":"Obsync/Services/ObsidianService.swift"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b1dada462300ddd932549d7e608a239595d8a6ca44d8ca47b4cdc01c16ea37"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060newDueDate != nil || newStartDate != nil || newPriority != nil || newTags != nil\u0060 appears character-identically in 2 files \u2014 Obsync/Protocols/TaskSource.swift, Obsync/Services/ObsidianService.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":"Obsync/Protocols/TaskSource.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f905515747d3f11a03430cb49d7505958a61dabbe02a3b8197d9f77b8d0d85e4"}},{"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":"Obsync/Services/SecureFile.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75623c1350d6440a507ed91bbb65dfe260ba71be6e738d850fbd83a3047557c"}},{"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":"Obsync/Services/SyncManager.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e8fa1a0f9d6db67c7d8843754415a5f7a17b37a7f08e63ca1846de2937d716"}},{"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":"Obsync/Services/Destinations/TickTickDestination.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7b9a34820412b8959cd8b015e2865de27d4a1d28c0923103236aee6fe14782"}},{"ruleId":"X5","level":"note","message":{"text":"Ruby\u0027s type checker does not check nil everywhere: This repository commits no Sorbet configuration (\u0060sorbet/config\u0060) and no \u0060Steepfile\u0060, so nothing type-checks its 1 Ruby product file(s): a nilable value reaches a method call silently and raises \u0060NoMethodError: undefined method \u2026 for nil\u0060 the first time it is nil. A \u0060# typed:\u0060 sigil does nothing without a \u0060sorbet/config\u0060 beside the code; a Steep run configured only on a command line is not something this check can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"32b27113b1bc22f400935e8620d19eae7fd3ef145cc36018609c445ea8cd4af1"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060u.hasPrefix(\u0022ann\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060u.hasPrefix(\u0022ann\u0022)\u0060 also satisfies \u0060u.hasPrefix(\u0022an\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Obsync/Services/QuickAddParser.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44bd632422ad50fad9e5e04a906f8df6953990b6ee4e33260cee450f68d5683"}}],"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-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-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-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":"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/"}]}],"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":5,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}