{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"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":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"TasksView.taskviewtoolbarcontent (cyclomatic 26): TasksView.taskviewtoolbarcontent 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":"RsyncUI/Views/Tasks/extensionTasksView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe18c8d6b69659322eb35e9df399a7ddf43aff7390dc631b95d80179aec96141"}},{"ruleId":"D1","level":"warning","message":{"text":"QuicktaskFormView.body (cyclomatic 23): QuicktaskFormView.body has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Quicktask/QuicktaskFormView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be1cdbb8490e4d49592f6dde7f886512f84b4ff85ccf0d0fa4507b633b325ac"}},{"ruleId":"D1","level":"warning","message":{"text":"RestoreTableView.restoretoolbarcontent (cyclomatic 20): RestoreTableView.restoretoolbarcontent has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Restore/RestoreTableView.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9073eee97955f41b91e3475e8da18ceda0e6a5a91a59d97085054333f3b63139"}},{"ruleId":"D1","level":"warning","message":{"text":"LogStatsChartView.body (cyclomatic 20): LogStatsChartView.body 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":"RsyncUI/Views/Tasks/LogStatsChartView.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"601191af78dde54c7f7a2607683cdc5c98fe9822f30649848f1ba72baafab5c4"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigurationsTableDataMainView.body (cyclomatic 19): ConfigurationsTableDataMainView.body has cyclomatic complexity 19 (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":"RsyncUI/Views/Configurations/ConfigurationsTableDataMainView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"db513514fefe9a0ce7759f1d213a5b6370af17abebc2bfb3fd7584dd9dc53859"}},{"ruleId":"D1","level":"warning","message":{"text":"SynchronizeConfiguration.== (cyclomatic 17): SynchronizeConfiguration.== has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Storage/Basic/SynchronizeConfiguration.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd47caf0c5c51b761ce861fb7ea0ab9fe0954c1bfe4f467623bb1434fe1b181"}},{"ruleId":"D1","level":"warning","message":{"text":"RsyncParametersView.notifydataisupdated (cyclomatic 16): RsyncParametersView.notifydataisupdated has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"979e53fbc1dfbcb21a0e20f341a68d31f16ec5422aae0120e1ad5c6801c5229c"}},{"ruleId":"D1","level":"warning","message":{"text":"VerifyTaskTabView.body (cyclomatic 16): VerifyTaskTabView.body has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/InspectorViews/VerifyTask/VerifyTaskTabView.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4bbbb5aa34f5407a0a807cbb300f9fc4aeea00d68510d474e22f95c0db30c4"}},{"ruleId":"D2","level":"warning","message":{"text":"QuicktaskFormView.body (cognitive 37): QuicktaskFormView.body has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (34 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Quicktask/QuicktaskFormView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"86155a46a191fe29e90f49942d24244ff72079e8e12703ce2300ab0a5f093d2a"}},{"ruleId":"D2","level":"warning","message":{"text":"TasksView.taskviewtoolbarcontent (cognitive 37): TasksView.taskviewtoolbarcontent has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (30 pts), boolean chains 6, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Tasks/extensionTasksView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ecc8e47a69bc09e65d7fa463fe885d97409a25ba6956bf70657403d61de7f5"}},{"ruleId":"D2","level":"warning","message":{"text":"LogStatsChartView.body (cognitive 32): LogStatsChartView.body has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 10, boolean chains 6, match/switch 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Tasks/LogStatsChartView.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"231de1c3868d5a4918129447eefb9e31813cb9b59c4a75ee78c2d093a4c0ed57"}},{"ruleId":"D2","level":"warning","message":{"text":"ObservableParametersRsync.updatersyncparameters (cognitive 28): ObservableParametersRsync.updatersyncparameters has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (28 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Global/ObservableParametersRsync.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cfb485cedde08788c54ae296a3b6d8916c2d87fe2bc6bb72bb8eef096162ed"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyTaskTabView.body (cognitive 28): VerifyTaskTabView.body has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/InspectorViews/VerifyTask/VerifyTaskTabView.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"473e829fd0d3c7735eeaf795fb50f78f5e37d65512f9471c9a59de57d10311fd"}},{"ruleId":"D2","level":"warning","message":{"text":"TagSnapshots.keepallorlastdayinperiod (cognitive 27): TagSnapshots.keepallorlastdayinperiod has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 4 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Snapshots/TagSnapshots.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7982cd72ff3019cc52345d723d15850b614b5493961a5ac83352ed2587f2f46"}},{"ruleId":"D2","level":"warning","message":{"text":"Execute.startexecution (cognitive 26): Execute.startexecution has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 2 (7 pts), boolean chains 4 (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":"RsyncUI/Model/Execution/EstimateExecute/Execute.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"5919366a42e17603dc50c8a87f60c750854e241ff2e2c2466e9f9f0da5e954d0"}},{"ruleId":"D2","level":"warning","message":{"text":"RestoreTableView.restoretoolbarcontent (cognitive 23): RestoreTableView.restoretoolbarcontent has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (9 pts), ternaries 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Restore/RestoreTableView.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a04afcea336acc98945b6249060962b01c6b314edad28d67386c274f2e77d5"}},{"ruleId":"D2","level":"warning","message":{"text":"UserConfiguration.init (cognitive 22): UserConfiguration.init has cognitive complexity 22 (threshold 15). Drivers by points: if/else 22. 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":"RsyncUI/Model/Storage/Basic/UserConfiguration.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f23e109cc7fb7b852d3c3f0f08c380b024d1af1a19a1098dbf4da5205d57f8"}},{"ruleId":"D2","level":"warning","message":{"text":"ObservableRestore.computerestorearguments (cognitive 21): ObservableRestore.computerestorearguments has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), ternaries 1 (3 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Global/ObservableRestore.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c431c281a23483e1a92ee8d4fd4c44c1d48984b3feda201738335904ddd181f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationsTableDataMainView.body (cognitive 21): ConfigurationsTableDataMainView.body has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8 (9 pts), if/else 7, boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Configurations/ConfigurationsTableDataMainView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"914ea02f8d7907dad19503a055e107f4a380b113b208408863b86aa5feb6842b"}},{"ruleId":"D2","level":"warning","message":{"text":"Execute.startexecution_noestimate (cognitive 20): Execute.startexecution_noestimate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, error handling 2 (5 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":"RsyncUI/Model/Execution/EstimateExecute/Execute.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a94b95d5d6b755af208dbc350983e2e85da3af0bc60db3bcadfe6249743cadf"}},{"ruleId":"D2","level":"warning","message":{"text":"GetfullpathforRsync.rsyncpath (cognitive 19): GetfullpathforRsync.rsyncpath has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Utils/GetfullpathforRsync.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c5835076b51f44dc094db048b8923bea9bc34a8c5a26aa89b132f63f6f173a"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidateArguments.validate (cognitive 19): ValidateArguments.validate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Utils/ValidateArguments.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdff01a9f77f48c4ced84238625a812b2c9bdc17e242b9bacba458f1ad55925"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailsView.body (cognitive 19): DetailsView.body has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 7 (9 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/OutputViews/DetailsView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a022ce389cb6cc6f26ff56eb5f0e473ac75b16088931f7f61a3c5016df37f34d"}},{"ruleId":"D2","level":"warning","message":{"text":"ItemizedOutputRecord.init (cognitive 17): ItemizedOutputRecord.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Output/ItemizedOutput.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b94a5f8ebfbe92a57ce49bfc814831133284999689f7114dafa43a74b904e5"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationsTableDataMainView.synchronizeIDText (cognitive 17): ConfigurationsTableDataMainView.synchronizeIDText has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (11 pts), if/else 4 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Configurations/ConfigurationsTableDataMainView.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"421dda1c6a66414f61b4ca3ac8bdb7d861d6a982396bee6304da77a861709e5a"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteDataNumbers.init (cognitive 17): RemoteDataNumbers.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Execution/EstimateExecute/RemoteDataNumbers.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"77763b80bdb5c169019184eaa042365d87a6eb7b50acbdefe999351680217889"}},{"ruleId":"D2","level":"warning","message":{"text":"SynchronizeConfiguration.== (cognitive 16): SynchronizeConfiguration.== has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 16. 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":"RsyncUI/Model/Storage/Basic/SynchronizeConfiguration.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"3386b2eab5b4a105b46c75ea32cdf29afa51952cd9e8ff019a34d732852b0263"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QuicktaskFormView.body: MethodTooLong \u2014 body runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"RsyncUI/Views/Quicktask/QuicktaskFormView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb33f06882af3a1ea65bb202c5c0d79f4ab444bc6549b16bf446200e0b22053"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TasksView.taskviewtoolbarcontent: MethodTooLong \u2014 taskviewtoolbarcontent runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Tasks/extensionTasksView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e3f31568b6263edad7cadd29791bd4dfed7e568c731b7144ebe0c42f7f8a75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift:55-72 | RsyncUI/Model/Snapshots/Snapshotlogsandcatalogs.swift:125-145 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"066cf3191a22d2368885556c118296d646e6e4ca72812e09633ae3bfca90b2a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift:91-117 | RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift:119-145 | RsyncUI/Views/Settings/Sshsettings.swift:101-127 | RsyncUI/Views/Settings/Sshsettings.swift:129-155 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6fc9193e70812af8318942f027f7ac0299ca0dba2e24e17067c7aa7153df5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): RsyncUI/Model/Execution/EstimateExecute/Estimate.swift:55-118 | RsyncUI/Model/Execution/EstimateExecute/Execute.swift:172-227 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Execution/EstimateExecute/Estimate.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41c90e8b74c2a282aeae46bd1e5ea4790dff23037ebd3d10c944d599f0d8d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): RsyncUI/Views/Configurations/ConfigurationsTableLoadDataView.swift:16-65 | RsyncUI/Views/Detailsview/EstimateTableView.swift:17-61 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"RsyncUI/Views/Configurations/ConfigurationsTableLoadDataView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"358cc13bba5da816b067753d16672b63da255fa959e3d8d945bf941633486411"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): RsyncUI/Model/Utils/OtherRsyncCommandtoDisplay.swift:107-138 | RsyncUI/Model/Utils/OtherRsyncCommandtoDisplay.swift:140-171 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Utils/OtherRsyncCommandtoDisplay.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"2503553e7593ac277718e41ffe3f250d2ddee7e5ef55dea0d23a011fd172b362"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): RsyncUI/Model/ParametersRsync/ArgumentsSynchronize.swift:33-80 | RsyncUI/Model/ParametersRsync/ArgumentsVerify.swift:13-60 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"RsyncUI/Model/ParametersRsync/ArgumentsSynchronize.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e2b5df24ae0b7c7bd92bd81d7eb22c6fae9f2dcc090671861ea94439c6af13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): RsyncUI/Model/Utils/ReadAllTasks.swift:13-50 | RsyncUI/Model/Utils/ReadAllTasks.swift:53-81 \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":"RsyncUI/Model/Utils/ReadAllTasks.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"027a88e3d22d20ac5a620d1251bad3121dfef47980a410a4cb93a74089295a68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): RsyncUI/Views/InspectorViews/Add/extensionAddTaskView\u002BFormFields.swift:42-70 | RsyncUI/Views/InspectorViews/Add/extensionAddTaskView\u002BFormFields.swift:72-100 \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":"RsyncUI/Views/InspectorViews/Add/extensionAddTaskView\u002BFormFields.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f1f88ddd610ae42c7c86838610bc04ee155a871403f119544ede1afa367b31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): RsyncUI/Model/Storage/WriteLogRecordsJSON.swift:13-38 | RsyncUI/Model/Storage/WriteSynchronizeConfigurationJSON.swift:13-38 \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":"RsyncUI/Model/Storage/WriteLogRecordsJSON.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9e0e9bcf18fa767a589ee7ce4c7ae6e41d34261e9cbaf7903ef5411fef9d33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): RsyncUI/Model/Execution/EstimateExecute/Execute.swift:242-262 | RsyncUI/Model/Execution/EstimateExecute/Execute.swift:264-283 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Execution/EstimateExecute/Execute.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c646b631a696071985172e0314bf6457486429db4ab1559eeb30d829c3c5e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): RsyncUI/Views/InspectorViews/Add/extensionAddTaskView\u002BFormFields.swift:117-141 | RsyncUI/Views/InspectorViews/Add/extensionAddTaskView\u002BFormFields.swift:166-194 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"RsyncUI/Views/InspectorViews/Add/extensionAddTaskView\u002BFormFields.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab0a390efc9fc8c56683a994b3b79dc16eb0e8a6a58cf49d2e6bb2496bf043b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift:22-45 | RsyncUI/Model/Snapshots/Snapshotlogsandcatalogs.swift:22-46 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c6a7ae83230936d47adc7b392c3bf96e3f6ac6dc48c1e8cb238a7a05517d83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): RsyncUI/Views/Modifiers/Viewmodifiers.swift:41-61 | RsyncUI/Views/Modifiers/Viewmodifiers.swift:75-89 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Modifiers/Viewmodifiers.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a540fcf8faa06f4cc30e509d7edacdb1c6e6391c51d36ff6be9c64cb2d9793"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): RsyncUI/Views/Sidebar/extensionSidebarMainView.swift:63-79 | RsyncUI/Views/Sidebar/extensionSidebarMainView.swift:81-97 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Sidebar/extensionSidebarMainView.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbeb517ea30a2486fb1e0f02a12dab50197676f02948c4abe57b8b14b5b2c7bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): RsyncUI/Model/Loggdata/LogChartService.swift:132-139 | RsyncUI/Model/Loggdata/Logging.swift:111-117 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Loggdata/LogChartService.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d8a3c817f76840c0041e96920d615d47687d132d2310660b18cc19dcd0c138"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): RsyncUI/Model/ParametersRsync/ArgumentsRestore.swift:15-30 | RsyncUI/Model/ParametersRsync/ArgumentsSynchronize.swift:13-31 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/ParametersRsync/ArgumentsRestore.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"504264d456d7625eb3d7218f327ae65e4725dbe5680b2a886e8214cdb0a471d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): RsyncUI/Views/Tasks/ExecuteEstTasksView.swift:128-144 | RsyncUI/Views/Tasks/ExecuteNoEstTasksView.swift:102-116 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Tasks/ExecuteEstTasksView.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c689e147890bd8c7cd55a1019aa5f18007435d5aa98d5e83bac59e7028427d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): RsyncUI/Views/InspectorViews/Add/extensionAddTaskView\u002BBusinessLogic.swift:53-69 | RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift:68-85 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/InspectorViews/Add/extensionAddTaskView\u002BBusinessLogic.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6362b58063319ad384e66456e11a7f5b9cf366deeb3913971416af6a944295e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): RsyncUI/Model/Storage/SharedJSONStorageReader.swift:14-20 | WidgetEstimate/SharedJSONStorageReader.swift:18-24 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Storage/SharedJSONStorageReader.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7746db4fb72949791c54d1104ff06303a5faf8b1ab452c4b48665f0717a4251"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): RsyncUI/Model/Storage/Basic/UpdateConfigurations.swift:138-147 | RsyncUI/Model/Storage/Basic/UpdateConfigurations.swift:150-159 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Storage/Basic/UpdateConfigurations.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ba8f7310b4e8452f1b23310b68e0b9473dd424424aaa78b92e0470fad07126"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): RsyncUI/Model/Newversion/CheckfornewversionofRsyncUI.swift:20-24 | RsyncUI/Model/Storage/Basic/JSON/DecodeLogRecords.swift:39-43 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Newversion/CheckfornewversionofRsyncUI.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"517b0cd6bc758c9755c5b0f4445d12881ee8cd50558bbf94b234025e6ef58463"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift:147-150 | RsyncUI/Views/Settings/Sshsettings.swift:157-160 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94044aeaae4d7b5e585ac1ccb51e96701f99ba2c21c464a4acba2efb76d988e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): RsyncUI/Model/Global/ObservableAddConfigurations.swift:150-159 | RsyncUI/Model/Storage/Basic/UpdateConfigurations.swift:16-25 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Global/ObservableAddConfigurations.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7bc52a6d45c663bb649e7ca38a32e46bf16ad1e5a39b7be17a0423e76688e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): RsyncUI/Views/Detailsview/EstimationInProgressView.swift:71-76 | RsyncUI/Views/Detailsview/OneTaskDetailsView.swift:97-102 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Detailsview/EstimationInProgressView.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd231d7481338f01c36436b5992b28fdabbeda6bdebdef3f0b2fe5f498050f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): RsyncUI/Views/Settings/SidebarSettingsView.swift:57-60 | RsyncUI/Views/Sidebar/SidebarMainView.swift:335-339 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Settings/SidebarSettingsView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8b45c56b58aa3654f422563f5ae655f18d444cbb5eb0fbc345acaec9e40db5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): RsyncUI/Model/Execution/EstimateExecute/Estimate.swift:28-35 | RsyncUI/Model/Execution/EstimateExecute/Execute.swift:56-64 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Execution/EstimateExecute/Estimate.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1bb2b1a8e1e032d4c539bf09188b345fc78676758cc1e6206e4079ae8bbf68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): RsyncUI/Views/Configurations/ConfigurationsTableDataMainView.swift:175-177 | RsyncUI/Views/Profiles/ProfilesToUpdateView.swift:66-68 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Configurations/ConfigurationsTableDataMainView.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d07e36629a0d01ca68aaaf18b88a4438e063b94c81b6bfcfc8e213bc1e41cc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): RsyncUI/Views/Quicktask/QuicktaskView.swift:156-162 | RsyncUI/Views/Tasks/TasksFocusActionsView.swift:24-31 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Quicktask/QuicktaskView.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"2877d8821beff931a37e722b83bf06f3ad391091de9943ec878e54ef63fe005e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): RsyncUI/Views/Configurations/ConfigurationsTableDataView.swift:17-44 | RsyncUI/Views/Configurations/ConfigurationsTableLoadDataView.swift:18-45 \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":"RsyncUI/Views/Configurations/ConfigurationsTableDataView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6f4197c42d86c5d1c58764f6118c1869ce1c6b52503a12aeaf4f04df150857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): RsyncUI/Model/Utils/OtherRsyncCommandtoDisplay.swift:77-97 | RsyncUI/Model/Utils/OtherRsyncCommandtoDisplay.swift:108-128 | RsyncUI/Model/Utils/OtherRsyncCommandtoDisplay.swift:141-161 \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 \u0060RsyncUI/Model/Utils/OtherRsyncCommandtoDisplay.swift:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Utils/OtherRsyncCommandtoDisplay.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a50135d96913ed8f323d4d3311de9d1e214d81304150774757d70465b9faf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): RsyncUI/Model/Global/ObservableParametersRsync.swift:170-188 | RsyncUI/Model/Global/ObservableSSH.swift:23-41 | RsyncUI/Model/Ssh/SshKeys.swift:68-86 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Global/ObservableParametersRsync.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9b70295f505de2762233e4899c597a49b33af57cc81cb180d012d44207af24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): RsyncUI/Views/Configurations/ConfigurationsTableDataView.swift:37-54 | RsyncUI/Views/Configurations/ConfigurationsTableLoadDataView.swift:38-55 | RsyncUI/Views/Detailsview/EstimateTableView.swift:44-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060RsyncUI/Views/Configurations/ConfigurationsTableDataView.swift:37\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":"RsyncUI/Views/Configurations/ConfigurationsTableDataView.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b272ff04ecd13429d06d07ff63a3e058c8563098605ff6bfe960cfa5eebd47ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift:101-117 | RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift:129-145 | RsyncUI/Views/Settings/Sshsettings.swift:111-127 | RsyncUI/Views/Settings/Sshsettings.swift:139-155 \u2014 before extracting anything, compare \u0060RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift\u0060 and \u0060RsyncUI/Views/Settings/Sshsettings.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift:101\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":"RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb12390ef7f92b5fb28010eaff46f7be110f4ccf02a41c15c1f4cd4f4f6ae92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): RsyncUI/Model/Execution/EstimateExecute/Execute.swift:142-156 | RsyncUI/Model/Execution/EstimateExecute/Execute.swift:189-203 \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":"RsyncUI/Model/Execution/EstimateExecute/Execute.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d4f612ef337016fa2fce6c2a6ee2d505ba0f9b360ac31f6fe93c85962f894e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift:31-45 | RsyncUI/Model/Snapshots/Snapshotlogsandcatalogs.swift:32-46 \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 \u0060RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift:31\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb66e970c790266a44969f05d960ea92f688d63f7899e510ca737d92c0392d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): RsyncUI/Views/Quicktask/QuicktaskFormView.swift:103-117 | RsyncUI/Views/Quicktask/QuicktaskFormView.swift:190-204 \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 \u0060RsyncUI/Views/Quicktask/QuicktaskFormView.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. 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":"RsyncUI/Views/Quicktask/QuicktaskFormView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"6077f6c2afbda5a2363b78013fcbdad60b0e0a1bd1dc3324a76759efac6882f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): RsyncUI/Views/Quicktask/QuicktaskFormView.swift:135-149 | RsyncUI/Views/Quicktask/QuicktaskFormView.swift:158-172 \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 \u0060RsyncUI/Views/Quicktask/QuicktaskFormView.swift:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Quicktask/QuicktaskFormView.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f1d731128fddfe1ed97ab1ccb080610422667c61fcddfcd51de5ceaf2b9b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): RsyncUI/Model/Utils/ReadAllTasks.swift:37-50 | RsyncUI/Model/Utils/ReadAllTasks.swift:68-81 \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 \u0060RsyncUI/Model/Utils/ReadAllTasks.swift:37\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Utils/ReadAllTasks.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a6fac2aace81ec76e6c290df22c2f6ff0889ff1042dad3533de1516bd8006c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift:152-165 | RsyncUI/Views/Settings/Sshsettings.swift:162-175 \u2014 before extracting anything, compare \u0060RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift\u0060 and \u0060RsyncUI/Views/Settings/Sshsettings.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed4d7204c7931c7614a38e83c90c0b9a2a307a4bcb5ad503adc3bb3738b45c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): RsyncUI/Model/Execution/EstimateExecute/Execute.swift:246-258 | RsyncUI/Model/Execution/EstimateExecute/Execute.swift:268-280 \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 \u0060RsyncUI/Model/Execution/EstimateExecute/Execute.swift:246\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":"RsyncUI/Model/Execution/EstimateExecute/Execute.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"d614183efcb145d2455d5ceca173139e3f52802ac14490888b7d813b52746392"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): RsyncUI/Model/Execution/EstimateExecute/Estimate.swift:120-131 | RsyncUI/Model/Execution/EstimateExecute/Execute.swift:229-240 \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":"RsyncUI/Model/Execution/EstimateExecute/Estimate.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ef677232e09f225e8ab68a053e9f2854dce7421c151e3b041a4e8bf6cc1a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): RsyncUI/Model/ParametersRsync/Params.swift:31-42 | RsyncUI/Model/ParametersRsync/SSHParams.swift:21-32 \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":"RsyncUI/Model/ParametersRsync/Params.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb365733e044520a4d681090725a70c3324e81e716965fed87c61f376130ebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): RsyncUI/Views/Configurations/ListofTasksAddView.swift:57-68 | RsyncUI/Views/Configurations/ListofTasksMainView.swift:87-98 \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":"RsyncUI/Views/Configurations/ListofTasksAddView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a03f67a0147ba70c4162bd83e5ed7f9cb0898dc4fd2f953dd6c566dfb5b4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): RsyncUI/Views/Tasks/extensionTasksView.swift:41-52 | RsyncUI/Views/Tasks/extensionTasksView.swift:61-73 \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 \u0060RsyncUI/Views/Tasks/extensionTasksView.swift:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"RsyncUI/Views/Tasks/extensionTasksView.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9541cb91b322bfac2d4aba6af67e47e80d798e6fa1edf0a1734606f2fc3891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): RsyncUI/Views/Quicktask/QuicktaskFormView.swift:119-129 | RsyncUI/Views/Quicktask/QuicktaskFormView.swift:174-184 \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 \u0060RsyncUI/Views/Quicktask/QuicktaskFormView.swift:119\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":"RsyncUI/Views/Quicktask/QuicktaskFormView.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae006811f567180e30fce4ad2bb14d63302026b102640267faf90314eec38b70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): RsyncUI/Model/Execution/EstimateExecute/Execute.swift:113-121 | RsyncUI/Model/Execution/EstimateExecute/Execute.swift:173-181 \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 \u0060RsyncUI/Model/Execution/EstimateExecute/Execute.swift:113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Execution/EstimateExecute/Execute.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"129eaa85348a0436a2c215725521b418949483b6d8acbb3a3ee250e14f0a00dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): RsyncUI/Model/Utils/OtherRsyncCommandtoDisplay.swift:130-138 | RsyncUI/Model/Utils/OtherRsyncCommandtoDisplay.swift:163-171 \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 \u0060RsyncUI/Model/Utils/OtherRsyncCommandtoDisplay.swift:130\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":"RsyncUI/Model/Utils/OtherRsyncCommandtoDisplay.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"397834ccfde0d36244fbb8e6542b2dde382d597356cb04bcaf3656e1da3df1ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): RsyncUI/Views/Detailsview/OneTaskDetailsView.swift:65-73 | RsyncUI/Views/InspectorViews/VerifyTask/VerifyTaskTabView.swift:125-133 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Detailsview/OneTaskDetailsView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"953a25a7fd0dacfe1060daeb5e24c898059ae838741114ba4c4350230d46c714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): RsyncUI/Views/InspectorViews/Add/extensionAddTaskView\u002BFormFields.swift:49-57 | RsyncUI/Views/InspectorViews/Add/extensionAddTaskView\u002BFormFields.swift:79-87 \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 \u0060RsyncUI/Views/InspectorViews/Add/extensionAddTaskView\u002BFormFields.swift:49\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":"RsyncUI/Views/InspectorViews/Add/extensionAddTaskView\u002BFormFields.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccbac671eff8e58d93856a83c1901eb4baeab6f5280c9a3be5c5530ba3632fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift:91-99 | RsyncUI/Views/Settings/Sshsettings.swift:101-109 \u2014 before extracting anything, compare \u0060RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift\u0060 and \u0060RsyncUI/Views/Settings/Sshsettings.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift:91\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":"RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b46dd52235df161db05268c809ca77dd8291652927a61626e0601d631d5aff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift:119-127 | RsyncUI/Views/Settings/Sshsettings.swift:129-137 \u2014 before extracting anything, compare \u0060RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift\u0060 and \u0060RsyncUI/Views/Settings/Sshsettings.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift:119\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":"RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"33618402cf96fe468643db1b08088ff12bbb27f369f9160dec2bee5b6d827b06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): RsyncUI/Model/ParametersRsync/ArgumentsSynchronize.swift:34-41 | RsyncUI/Model/ParametersRsync/ArgumentsVerify.swift:14-21 \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 \u0060RsyncUI/Model/ParametersRsync/ArgumentsSynchronize.swift:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/ParametersRsync/ArgumentsSynchronize.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d00b6c583f3a521817b8b787a335b82701f9badf6d05872a94b0eaebe3881d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): RsyncUI/Model/Storage/WriteLogRecordsJSON.swift:15-22 | RsyncUI/Model/Storage/WriteSynchronizeConfigurationJSON.swift:15-22 \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 \u0060RsyncUI/Model/Storage/WriteLogRecordsJSON.swift:15\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Storage/WriteLogRecordsJSON.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4d646b64e32fdb5c4f0d688f25155565d8755c037eadbde96a77699d35ad9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): RsyncUI/Model/Snapshots/TagSnapshots.swift:87-94 | RsyncUI/Model/Snapshots/TagSnapshots.swift:98-105 \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 \u0060RsyncUI/Model/Snapshots/TagSnapshots.swift:87\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":"RsyncUI/Model/Snapshots/TagSnapshots.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"293269f55323883f8aee9e533a5a629e451a487eff1f3dc8f5869b1f3069cc7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift:55-68 | RsyncUI/Model/Snapshots/Snapshotlogsandcatalogs.swift:125-138 \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 \u0060RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift:55\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060RsyncUI/Model/Snapshots/Snapshotlogsandcatalogs.swift:139\u0060 calls \u0060mergeremotecatalogsandlogs\u0060 and \u0060RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift:70\u0060 does not \u2014 after which the two agree again for 3 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":"RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1288f373c9de66cc7fde1e07a28df37c503d1779849b409bcc3a206978dba319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): RsyncUI/Model/Utils/ReadAllTasks.swift:18-23 | RsyncUI/Model/Utils/ReadAllTasks.swift:57-62 \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 \u0060RsyncUI/Model/Utils/ReadAllTasks.swift:18\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":"RsyncUI/Model/Utils/ReadAllTasks.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5306adc461ff5f3c29b6340b95a4a1b8797270c7e31ad4b54b24b586ad7b91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): RsyncUI/Model/Loggdata/LogChartService.swift:135-139 | RsyncUI/Model/Loggdata/Logging.swift:113-117 \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 \u0060RsyncUI/Model/Loggdata/LogChartService.swift:135\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"RsyncUI/Model/Loggdata/LogChartService.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"94236bc1146b836773a7f1f329cd74ad82b89400504716b207f9a30029980298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): RsyncUI/Model/Execution/EstimateExecute/Estimate.swift:48-53 | RsyncUI/Model/Execution/EstimateExecute/Execute.swift:40-45 \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":"RsyncUI/Model/Execution/EstimateExecute/Estimate.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b493953f2c7622d5cc96ae96237134c4c4bccb54e1492925ab493b1d08af1b85"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Date (LCOM4 8): Date\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Utils/extensions.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f5a2d299f912bc697bde717bc0e3001ce147ccf61f1d437911da8f67a8d02a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ObservableRsyncPathSetting (LCOM4 4): ObservableRsyncPathSetting\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Global/ObservableRsyncPathSetting.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca2c4ff64b5c36528b9ce84e678aac7d07c3a3d0082d20c0b43e55944e53b27"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: RsyncUI/Views/Restore/RestoreTableView.swift: RsyncUI/Views/Restore/RestoreTableView.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in RestoreTableView.restoretoolbarcontent at line 76. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:46:50 \u002B01:00\u0027 --until=\u00272026-11-13 06:46:50 \u002B01:00\u0027 --full-history --no-merges -- RsyncUI/Views/Restore/RestoreTableView.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":"RsyncUI/Views/Restore/RestoreTableView.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e25ad6e73fc84d039d42083621001f2d3f9484a2c0952e1e17372066ac90317"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: RsyncUI/Views/Tasks/extensionTasksView.swift: RsyncUI/Views/Tasks/extensionTasksView.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in TasksView.taskviewtoolbarcontent at line 14. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:46:50 \u002B01:00\u0027 --until=\u00272026-11-13 06:46:50 \u002B01:00\u0027 --full-history --no-merges -- RsyncUI/Views/Tasks/extensionTasksView.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":"RsyncUI/Views/Tasks/extensionTasksView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3515c95e85497399693b1994c6c1fe6b5831c7d5c46630f81cd4dc86b90f3e31"}},{"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 \u0060RsyncUI.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d035d28f8a07fc26f1cbc0bd2a50a5e6deff6cf914569af0359223b9f46192"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060maxhiddenId\u0060 spells \u0060Id\u0060 where 48 names in the project spell it \u0060ID\u0060: 48 of 49 names in project repository spell the token \u0060ID\u0060 (48 of 49; unit: names in project repository containing \u0060ID\u0060). Peers: RsyncUIView.selectedprofileID (RsyncUI/Main/RsyncUIView.swift:13); Estimate.processRecordAndContinueEstimation(hiddenID) (RsyncUI/Model/Execution/EstimateExecute/Estimate.swift:185); RemoteDataNumbers.hiddenID (RsyncUI/Model/Execution/EstimateExecute/RemoteDataNumbers.swift:13); RemoteDataNumbers.backupID (RsyncUI/Model/Execution/EstimateExecute/RemoteDataNumbers.swift:34); ObservableAddConfigurations.backupID (RsyncUI/Model/Global/ObservableAddConfigurations.swift:20). Rename to \u0060maxhiddenID\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Storage/ExportImport/ReadImportConfigurationsJSON.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1a8fdf936bef86d43d7aee0821a94480d0b47352a6133f35fdc54fa8886c1e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: InterruptProcess.swift \u2194 SshKeys.swift: \u0060RsyncUI/Model/Process/InterruptProcess.swift\u0060 and \u0060RsyncUI/Model/Ssh/SshKeys.swift\u0060 change together 73% of the time (11 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u00608e620d8b\u0060 updates; \u00600526acf3\u0060 Refactor ActorLogToFile usage to method calls; \u0060836e3b62\u0060 Refactor ActorLogToFile initialization and add logger closures \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Process/InterruptProcess.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d62ad122cf3cd380d3a9a559c9f670b0766eb019402b9330b75b052fc674b7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: RestoreFilesTableView.swift \u2194 RestoreTableView.swift: \u0060RsyncUI/Views/Restore/RestoreFilesTableView.swift\u0060 and \u0060RsyncUI/Views/Restore/RestoreTableView.swift\u0060 change together 68% of the time (15 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 15 shared commits counted here, the most recent 3 are \u0060f23cecf9\u0060 restore; \u0060774ac43f\u0060 Update restore table views to improve file count display; \u00607f8d3b80\u0060 update \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Restore/RestoreFilesTableView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44fc87f58fff204c4663193a3aaeae3bc05969f387c6de006dec01e18d841c6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SnapshotListView.swift \u2194 SnapshotsView.swift: \u0060RsyncUI/Views/Snapshots/SnapshotListView.swift\u0060 and \u0060RsyncUI/Views/Snapshots/SnapshotsView.swift\u0060 change together 67% of the time (31 of the 46 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 31 shared commits counted here, the most recent 3 are \u006046315c23\u0060 Improve UI copy and wording across views; \u0060863a5035\u0060 Use .foregroundStyle and add debounce cancellation; \u00609f942c6c\u0060 Replace inflect syntax with explicit pluralization \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Snapshots/SnapshotListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f253b105c4003f1d7ecb8b8f5aa575f24971b8ad74341db4c6e7199a15e4b1b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: WriteLogRecordsJSON.swift \u2194 WriteSynchronizeConfigurationJSON.swift: \u0060RsyncUI/Model/Storage/WriteLogRecordsJSON.swift\u0060 and \u0060RsyncUI/Model/Storage/WriteSynchronizeConfigurationJSON.swift\u0060 change together 65% of the time (54 of the 83 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 54 shared commits counted here, the most recent 3 are \u0060e7830374\u0060 Updates; \u0060d35aac7f\u0060 Concurrency logfile; \u006084e7a97a\u0060 Refactor logging \u0026 JSON persist; bump version \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Storage/WriteLogRecordsJSON.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21209662820ae514086daf8d5e3615205d2fbfecdedaa4c3662093825d895e48"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ListofTasksAddView.swift \u2194 ListofTasksMainView.swift: \u0060RsyncUI/Views/Configurations/ListofTasksAddView.swift\u0060 and \u0060RsyncUI/Views/Configurations/ListofTasksMainView.swift\u0060 change together 60% of the time (15 of the 25 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 15 shared commits counted here, the most recent 3 are \u00602af6568e\u0060 update Delete issues; \u00608e720a1c\u0060 initial commit; \u0060e7830374\u0060 Updates \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Configurations/ListofTasksAddView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cb5dc0a0f0fca28ce5650e30f46f5953f40596766926197a0845f9089b729c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ObservableLogSettings.swift \u2194 UserConfiguration.swift: \u0060RsyncUI/Model/Global/ObservableLogSettings.swift\u0060 and \u0060RsyncUI/Model/Storage/Basic/UserConfiguration.swift\u0060 change together 57% of the time (12 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060b284c3df\u0060 Add \u0027Use two tables Inspector\u0027 setting; \u006072124d3e\u0060 Add \u0027validate arguments\u0027 setting to user configuration; \u0060e16d317d\u0060 Add \u0027silence missing stats\u0027 user setting \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Global/ObservableLogSettings.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf7153756589a93bd2f9ab1f8a9cf073ad921c77be4bbec827f9699a1d0661b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: TrimOutputForRestore.swift \u2194 TrimOutputFromRsync.swift: \u0060RsyncUI/Model/Output/TrimOutputForRestore.swift\u0060 and \u0060RsyncUI/Model/Output/TrimOutputFromRsync.swift\u0060 change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006021fd3b6f\u0060 update; \u00602d59c8ae\u0060 update; \u00601b49325f\u0060 update \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Output/TrimOutputForRestore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"484b5e87bb929d6243fbc484686197b1f203b288e86b78ec745d23739d87fe51"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ExecuteEstTasksView.swift \u2194 ExecuteNoEstTasksView.swift: \u0060RsyncUI/Views/Tasks/ExecuteEstTasksView.swift\u0060 and \u0060RsyncUI/Views/Tasks/ExecuteNoEstTasksView.swift\u0060 change together 57% of the time (65 of the 115 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 65 shared commits counted here, the most recent 3 are \u00602435f174\u0060 Preserve process ownership and cancel remaining batch tasks; \u0060885c50bc\u0060 Record backup success only after a successful process exit; \u0060f30d22a6\u0060 updates \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Tasks/ExecuteEstTasksView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"611340a688716bc0643b1eda6cea8e1b70db80d3541c4ac4a2302e9c7ebeaa56"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SharedReference.swift \u2194 DecodeUserConfiguration.swift: \u0060RsyncUI/Model/Global/SharedReference.swift\u0060 and \u0060RsyncUI/Model/Storage/Basic/JSON/DecodeUserConfiguration.swift\u0060 change together 56% of the time (23 of the 41 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 23 shared commits counted here, the most recent 3 are \u0060868dab3d\u0060 Remove network monitoring feature and related code; \u0060a5357ec7\u0060 Remove \u0027Hide Schedule\u0027 option and related code; \u0060e3397d99\u0060 Add option to hide Calendar in settings and sidebar \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Global/SharedReference.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72d6411d0392cf88333a6d0a2acbd68e6ef33b9f0db8434c3347bd4ea71ebf5"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SnapshotRemoteCatalogs.swift \u2194 Snapshotlogsandcatalogs.swift: \u0060RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift\u0060 and \u0060RsyncUI/Model/Snapshots/Snapshotlogsandcatalogs.swift\u0060 change together 55% of the time (33 of the 60 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 33 shared commits counted here, the most recent 3 are \u006098ca3cda\u0060 Remove unnecessary [weak self] in processTermination handlers; \u0060516c4aa4\u0060 Release streaming references to prevent retain cycles; \u00603343709b\u0060 Refactor to safely unwrap streamingHandlers before use \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6785c17ad25fd99dfda6101267ad8c5b366c433fc0326cf4b44a7d99f9cff30"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Environmentsettings.swift \u2194 RsyncandPathsettings.swift: \u0060RsyncUI/Views/Settings/Environmentsettings.swift\u0060 and \u0060RsyncUI/Views/Settings/RsyncandPathsettings.swift\u0060 change together 53% of the time (36 of the 68 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 36 shared commits counted here, the most recent 3 are \u0060dcdc3c6b\u0060 Auto-save user config in settings views; \u006066b3813e\u0060 Remove debug logging statements; \u006056abaa2b\u0060 Refactor .onAppear and .onDisappear closures \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Settings/Environmentsettings.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e480b2c139adbf7c12a2a74cd9c83bfb5680c736074a738f59de0394335bfef1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ObservableLogSettings.swift \u2194 DecodeUserConfiguration.swift: \u0060RsyncUI/Model/Global/ObservableLogSettings.swift\u0060 and \u0060RsyncUI/Model/Storage/Basic/JSON/DecodeUserConfiguration.swift\u0060 change together 52% of the time (11 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u0060b284c3df\u0060 Add \u0027Use two tables Inspector\u0027 setting; \u006072124d3e\u0060 Add \u0027validate arguments\u0027 setting to user configuration; \u0060e16d317d\u0060 Add \u0027silence missing stats\u0027 user setting \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/Global/ObservableLogSettings.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0921deff153500bdd991636f7e315a5bf66d08816c9dd3a5b46937016fe35b0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Environmentsettings.swift \u2194 Sshsettings.swift: \u0060RsyncUI/Views/Settings/Environmentsettings.swift\u0060 and \u0060RsyncUI/Views/Settings/Sshsettings.swift\u0060 change together 51% of the time (35 of the 68 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 35 shared commits counted here, the most recent 3 are \u0060dcdc3c6b\u0060 Auto-save user config in settings views; \u006066b3813e\u0060 Remove debug logging statements; \u0060c4f1e131\u0060 Refactor EditValue to EditValueScheme and add EditValueNoScheme \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Views/Settings/Environmentsettings.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0c41be3fbfed04b33201ffc46724d76ee5b3eadf5782cf9af146fbcab80306"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CatalogForProfile.swift \u2194 Backupconfigfiles.swift: \u0060RsyncUI/Model/FilesAndCatalogs/CatalogForProfile.swift\u0060 and \u0060RsyncUI/Model/Utils/Backupconfigfiles.swift\u0060 change together 50% of the time (9 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060295aa27f\u0060 update; \u0060973e25a2\u0060 Update; \u00607a849db0\u0060 update (at that commit the file was still \u0060RsyncUI/Model/FilesAndCatalogs/CatalogProfile.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/FilesAndCatalogs/CatalogForProfile.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b36c2d0790971ce290975056e28f9f562597fd83c3641cf5871b95c88fa70a"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"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":"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":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060sleep\u0060 is async and calls sleep \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Main/RsyncUIView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"598c3a0c0238ce623ca88b772420887ed4e3ac8ceb22281267aacd983dc30d1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!valueToValidate.isEmpty \u0026\u0026 !isValidSSHKeyPath(valueToValidate)\u0060 appears character-identically in 2 files \u2014 RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift, RsyncUI/Views/Settings/Sshsettings.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":"RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e712872c6113b87b2067a635291d287f829eaafa859632448da53a23d4f26a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!valueToValidate.isEmpty \u0026\u0026 !isValidSSHPort(valueToValidate)\u0060 appears character-identically in 2 files \u2014 RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift, RsyncUI/Views/Settings/Sshsettings.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":"RsyncUI/Views/InspectorViews/RsyncParameters/extensionRsyncParametersView.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5b4e277f038e79656583015121018bc140bd726e69d10290a70bb78bc77eeb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060gettingfilelist || restore.restorefilesinprogress\u0060 appears character-identically in 2 files \u2014 RsyncUI/Views/Restore/RestoreContentView.swift, RsyncUI/Views/Restore/RestoreTableView.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":"RsyncUI/Views/Restore/RestoreContentView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee645d44ca97df6ba8387a1ab06e2cff87b75f47eb67e7ec7e665e73cb7869fa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.contains(\u0022done\u0022) == false \u0026\u0026 line.contains(\u0022receiving\u0022) == false \u0026\u0026 line.contains(\u0022sent\u0022) == false \u0026\u0026 line.contains(\u0022total\u0022) == false \u0026\u2026\u0060 appears character-identically in 2 files \u2014 RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift, RsyncUI/Model/Snapshots/Snapshotlogsandcatalogs.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":"RsyncUI/Model/Snapshots/SnapshotRemoteCatalogs.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b737335d5cd7e82681ec8874cae215095dd32116266b4cbabc5b332a7320081"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060selecteduuids.contains($0.id) \u0026\u0026 $0.task != SharedReference.shared.halted\u0060 appears character-identically in 2 files \u2014 RsyncUI/Model/Execution/EstimateExecute/Estimate.swift, RsyncUI/Model/Execution/EstimateExecute/Execute.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":"RsyncUI/Model/Execution/EstimateExecute/Estimate.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"546f45e308f88d4ebbec34852374a415f18e4c245e2efbe1e3c9a7da1a43edbe"}},{"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":"WidgetEstimate/WidgetEstimate.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"98accbcf4158a2b90f65818bb3f29232aa9b8543258a431a7b7318d8be1ead3f"}},{"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":"RsyncUI/Model/Utils/FileSize.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e2f7a12c83bfe0210996753a816f85c3de169b683dc2bb3cc6079e9603e84f"}},{"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":"RsyncUI/Model/Ssh/SshKeys.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"501c30e205d21b9ea29dda185bb546fdb1d002c49671e50becce64afe327bfcf"}},{"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":"RsyncUI/Model/Process/Rsyncversion.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e84d87b6c4a53228f6affa5433894c2260901ad393a27f49cbfe2937b177192"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/ParametersRsync/ArgumentsRemoteFileList.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"146761be05e2b69eb5753bf858944bb46ec00c77b4341a9befac398924b1fca6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/ParametersRsync/ArgumentsRemoteFileList.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"494ab85132ba14d07934a497d4d1df9f7b6af3205b57861fe576972095bfbc2c"}},{"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":"RsyncUI/Model/ParametersRsync/ArgumentsRestore.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"305c2aa1d976f7726ca1ffa0b3044b15af4ada1ddc7dcdad7dc3918915c7d097"}},{"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":"RsyncUI/Model/ParametersRsync/ArgumentsSnapshotRemoteCatalogs.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dc5d2ddb873d64ba8447dc7b9116048c215ff5a6f4224906e286fedfe8ea9c"}},{"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":"RsyncUI/Model/ParametersRsync/ArgumentsSynchronize.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce7cc3a69d4dff290c550b2d5c9d74ca03e565bdae9e352c7c06a31596b8a97"}},{"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":"RsyncUI/Model/ParametersRsync/ArgumentsSynchronize.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"274633ef04c68fa9b943b735d31ae0746d368e43abd6ce4298b0157549fc91ce"}},{"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":"RsyncUI/Model/ParametersRsync/ArgumentsSynchronize.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"94583b7e4ae5a2baf88722c0fd9ee9b6fd962f172c2f90fe81c66d900e7da085"}},{"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":"RsyncUI/Model/ParametersRsync/ArgumentsSynchronize.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e29ca3500dae69c32a25637bcc8ad7eeb74d164c5fc925a2fa542abb6704226"}},{"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":"RsyncUI/Model/ParametersRsync/ArgumentsVerify.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d0b68165ce4ca56be9272b082c9021a3c6539c19f412449af5d531abf19c50"}},{"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":"RsyncUI/Model/ParametersRsync/ArgumentsVerify.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8ef59f9aa0abfbe6f1922ea07d7de19880ce60bc9c8c0b4b0bddc2d8f28c85"}},{"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":"RsyncUI/Model/ParametersRsync/ArgumentsVerify.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2e2ece1e65c67f157d32797fb3b3737c8ee9f80231dfb2a8b02fc4f3c78c7e"}},{"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":"RsyncUI/Model/Global/ObservableRsyncPathSetting.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee3bc0f45a9f179129c31a707adfe5d5fe1ea55a9323aa1e5d5e428a34e8bc0"}},{"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":"RsyncUI/Model/FilesAndCatalogs/HomeCatalogsService.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc6d77db94c0f9123ff161dfeefa518a4a8867b245c883dfc5f7a1691507753"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060homeCatalogs\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RsyncUI/Model/FilesAndCatalogs/HomeCatalogsService.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5488da69e6d691148afc0f34eba68fe837cdfbdcf188069be51e20f2875db3c"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":0,"secretScannerRunsExcluded":0}}}]}