{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"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":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"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":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"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":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"SearchViewModel.transform (cyclomatic 44): SearchViewModel.transform has cyclomatic complexity 44 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Search/SearchViewModel.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"03007e75eb98dc87d2d2dae6391555ff71f7cfc7f2c606fed14c050afacf3593"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryViewController.bindViewModel (cyclomatic 33): RepositoryViewController.bindViewModel has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Repository Details/RepositoryViewController.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f00024520e5dcd156a90ab697b16c2d0340bd79184ef24f4acf2f06bd0b13c"}},{"ruleId":"D1","level":"warning","message":{"text":"UserViewModel.transform (cyclomatic 31): UserViewModel.transform has cyclomatic complexity 31 (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":"SwiftHub/Modules/User Details/UserViewModel.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3046e8d8e265b5f0a454df5040fde397cd2f67bb44eb66846cba5ef4332f89f"}},{"ruleId":"D1","level":"warning","message":{"text":"UserViewController.bindViewModel (cyclomatic 27): UserViewController.bindViewModel has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/User Details/UserViewController.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9a1f41e732801a0eecc8eb9a225dca628b8c375c2dab9c6353a986b50ceece"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryViewModel.transform (cyclomatic 24): RepositoryViewModel.transform has cyclomatic complexity 24 (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":"SwiftHub/Modules/Repository Details/RepositoryViewModel.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c718fa12b0879348329edb57827b5e6265ff4c1485ee0284f369ffcd6977f78"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsViewController.bindViewModel (cyclomatic 18): SettingsViewController.bindViewModel has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Settings/SettingsViewController.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e102c405cf3c8248f4dee86b26882fc49556c8cf36233ebbe98622c7562c1c"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchViewModel.transform (cognitive 51): SearchViewModel.transform has cognitive complexity 51 (threshold 15). Drivers by points: if/else 16 (24 pts), match/switch 14 (16 pts), boolean chains 6, ternaries 3 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Search/SearchViewModel.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd0d3fb543c708117e0c19f53852a2d875f6ea417a565f505c8acaa1941b60d"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryViewController.bindViewModel (cognitive 36): RepositoryViewController.bindViewModel has cognitive complexity 36 (threshold 15). Drivers by points: if/else 19 (33 pts), match/switch 2, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Repository Details/RepositoryViewController.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5051e472c9fe2bb1fc28ec3ae4d9d083c82785a7b4b4195ff6fb09641ce359f2"}},{"ruleId":"D2","level":"warning","message":{"text":"UserViewModel.transform (cognitive 27): UserViewModel.transform has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17, boolean chains 5, match/switch 3 (4 pts), ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/User Details/UserViewModel.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4d1041eb4592e2956da78e2c0fb741e87c96e8ed7cb958834e6405c9802cc3"}},{"ruleId":"D2","level":"warning","message":{"text":"UserViewController.bindViewModel (cognitive 25): UserViewController.bindViewModel has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (22 pts), match/switch 2, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/User Details/UserViewController.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"582882f3427c827f5e5fcb18cdf58c950c0b1df23cede41ddac6762b11bf1a18"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryViewModel.transform (cognitive 19): RepositoryViewModel.transform has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 3, match/switch 2, ternaries 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":"SwiftHub/Modules/Repository Details/RepositoryViewModel.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f525162a254dcf161930034bcc13ab2d987975c7a3a7d495269156a0cb4da6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SearchViewModel.transform: MethodTooLong \u2014 transform runs 253 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 153 over it, 2.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Search/SearchViewModel.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"640457148f1a8b90e4443d0dbaf1fa9011f90a54c2d716ba26a3ce67330d5e7d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepositoryViewModel.transform: MethodTooLong \u2014 transform runs 198 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 98 over it, 1.98\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":"SwiftHub/Modules/Repository Details/RepositoryViewModel.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17bfa930cd552ee1c16dd260b30718366dc51c56909e2bff790d5736de81d16"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RestApi: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. Most of these members implement repository.SwiftHubAPI (50 of 56 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Networking/Rest/RestApi.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc091fd4d40e783eb054ff4262d1dbf5bd0c9d2402be7781e3afde89419fc153"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GraphApi: TooManyMethods \u2014 53 methods. The bar is 30 methods; this is 23 over it, 1.77\u00D7 the bar. Most of these members implement repository.SwiftHubAPI (50 of 53 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7378d2b1234d2f39c11459085bb099ffde824615d8b4f1194289f90f62b169"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UserViewModel.transform: MethodTooLong \u2014 transform runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\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":"SwiftHub/Modules/User Details/UserViewModel.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4240d9aa0b955faa8807652f04ad18178f3b068f10d00f0a603abe58d1f17ff7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepositoryViewController.bindViewModel: MethodTooLong \u2014 bindViewModel runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Repository Details/RepositoryViewController.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a84d37e296f92f6e28481ba68eeb3ebfe3e80c96a03bf49592c945312234dd9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UserViewController.bindViewModel: MethodTooLong \u2014 bindViewModel runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\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":"SwiftHub/Modules/User Details/UserViewController.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5c34d83f18612265090a26d238afadafbdbe1a90288c3fc3e42f0a92013fc7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatViewController: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Common/ChatViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81f4b9b41070792d17dd97d66f6a93eaac7e372e01994757f0abbca4cc1fc36"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsViewModel.transform: MethodTooLong \u2014 transform runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"SwiftHub/Modules/Settings/SettingsViewModel.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85e48a77d4baf01f94455297ac7beade43b6a9b6f7a410898d8819904bf5420"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 14 shared lines): SwiftHub/Modules/Branches/BranchesViewModel.swift:34-66 | SwiftHub/Modules/Commits/CommitsViewModel.swift:36-78 | SwiftHub/Modules/Events/EventsViewModel.swift:56-121 | SwiftHub/Modules/Issues/IssuesViewModel.swift:43-92 | SwiftHub/Modules/Notifications/NotificationsViewModel.swift:48-108 | SwiftHub/Modules/Pull Requests/PullRequestsViewModel.swift:38-82 | SwiftHub/Modules/Releases/ReleasesViewModel.swift:36-78 | SwiftHub/Modules/Repositories/RepositoriesViewModel.swift:48-104 | SwiftHub/Modules/Users/UsersViewModel.swift:49-107 \u2014 These 9 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Branches/BranchesViewModel.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fa187f8558281dd42f993765dae0c46c7b071eb848e3f4ddd0a17f9db50462"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): SwiftHub/Modules/Branches/BranchesViewController.swift:24-46 | SwiftHub/Modules/Commits/CommitsViewController.swift:24-52 | SwiftHub/Modules/Contents/ContentsViewController.swift:32-62 | SwiftHub/Modules/Notifications/NotificationsViewController.swift:63-99 | SwiftHub/Modules/Pull Requests/PullRequestsViewController.swift:55-83 | SwiftHub/Modules/Releases/ReleasesViewController.swift:24-50 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Branches/BranchesViewController.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68e255c27c175965861941082c4de766974ea445fcefe0fb1aabf898073ede0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): SwiftHub/Modules/Events/EventsViewController.swift:74-112 | SwiftHub/Modules/Issues/IssuesViewController.swift:81-115 | SwiftHub/Modules/Repositories/RepositoriesViewController.swift:46-80 | SwiftHub/Modules/Repository Details/RepositoryViewController.swift:126-294 | SwiftHub/Modules/User Details/UserViewController.swift:140-290 | SwiftHub/Modules/Users/UsersViewController.swift:45-79 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Events/EventsViewController.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0800f3b1a8413b750b7680b347195354c247816ebf2945efd95374dddbf6d4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): SwiftHub/Modules/Issue Details/IssueViewController.swift:41-58 | SwiftHub/Modules/Pull Request Details/PullRequestViewController.swift:41-58 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Issue Details/IssueViewController.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df0aa159a5ba2feb51d45b772d9aa5c6a65c16a4723fda81170ff96412d974f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): SwiftHub/Modules/Repositories/RepositoryCellViewModel.swift:42-59 | SwiftHub/Modules/Users/UserCellViewModel.swift:46-61 \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":"SwiftHub/Modules/Repositories/RepositoryCellViewModel.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa9cd9a659294d4c83e1f8b120a938cd33d26ccab2ec8cf46e2ca3c95c23610"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): SwiftHub/Modules/Repositories/RepositoriesViewModel.swift:106-122 | SwiftHub/Modules/Users/UsersViewModel.swift:109-127 \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":"SwiftHub/Modules/Repositories/RepositoriesViewModel.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"45aeec797e0e73045c319b373296b1fd85de170f8a2c4ed4881e5d47298c6ca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): SwiftHub/Modules/Issue Details/IssueCommentsViewController.swift:18-33 | SwiftHub/Modules/Pull Request Details/PullRequestCommentsViewController.swift:18-33 \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":"SwiftHub/Modules/Issue Details/IssueCommentsViewController.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2dead60bc1d5e772eedd039c88760fe41e31cb306c1cb583b24a9ec902215f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): SwiftHub/Networking/GraphQL/Apollo\u002BRx.swift:22-44 | SwiftHub/Networking/GraphQL/Apollo\u002BRx.swift:46-67 | SwiftHub/Networking/GraphQL/Apollo\u002BRx.swift:69-90 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Networking/GraphQL/Apollo\u002BRx.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8607e6782c11f396c90762195a97e01aabbac32d63bb01deb7970108be8cb822"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): SwiftHub/Modules/Issue Details/IssueCommentsViewModel.swift:34-49 | SwiftHub/Modules/Pull Request Details/PullRequestCommentsViewModel.swift:34-49 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Issue Details/IssueCommentsViewModel.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f648c8d674b082f3f7ab085c48c316978d802a6d6d5b1d66432c6daad3d7f6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): SwiftHub/Modules/Issues/IssueCellViewModel.swift:32-38 | SwiftHub/Modules/Pull Requests/PullRequestCellViewModel.swift:32-38 \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":"SwiftHub/Modules/Issues/IssueCellViewModel.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1101d81e2a5b67fd5cc29abc4210898f4f9089a83e8471ea4b51c953fbba601c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): SwiftHub/Modules/Commits/CommitsViewModel.swift:80-90 | SwiftHub/Modules/Issues/IssuesViewModel.swift:94-106 | SwiftHub/Modules/Pull Requests/PullRequestsViewModel.swift:84-95 | SwiftHub/Modules/Releases/ReleasesViewModel.swift:80-90 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Commits/CommitsViewModel.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba66bd079e127418a62825dae3a45719cda3962401890da12756aacdb61006f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): SwiftHub/Modules/Issues/IssueCellViewModel.swift:19-28 | SwiftHub/Modules/Pull Requests/PullRequestCellViewModel.swift:19-28 \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":"SwiftHub/Modules/Issues/IssueCellViewModel.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"074a97d22794cf778ace2fc734970b9e0c4468231ed29a265da3bf465e6e7a61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): SwiftHub/Modules/Events/EventsViewController.swift:57-72 | SwiftHub/Modules/Issues/IssuesViewController.swift:64-79 \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":"SwiftHub/Modules/Events/EventsViewController.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c2fb86ff8c49c9e728cd72b81fbe8ecd312b826bcf0275272fb08c1e17db75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:86-90 | SwiftHub/Networking/GraphQL/GraphApi.swift:169-173 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c834bf5eb46388a6172b1b27a3b274f887cd7e4fc8289f28ac157f25a2a01d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): SwiftHub/Models/Repository.swift:157-161 | SwiftHub/Models/Repository.swift:163-167 | SwiftHub/Models/Repository.swift:169-173 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Models/Repository.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"42cb1daaf09b5f143b33d576dea53e2e430ffc01032e73e83b0716d2449b3f60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): SwiftHub/Modules/Releases/ReleaseCellViewModel.swift:19-28 | SwiftHub/Modules/Search/TrendingUserCellViewModel.swift:17-25 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Releases/ReleaseCellViewModel.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c830ff9d524cc19ef45a49d7cd59395a8a4bac95d85fd39d04fdc0f4f2a01d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): SwiftHub/Models/User.swift:27-32 | SwiftHub/Models/User.swift:34-39 \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":"SwiftHub/Models/User.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae4d9afd9ad5c26abd9b5f3576acd0a36dad99ed5b0367f18ab167064890fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 7\u002B corresponding lines): SwiftHub/Modules/Commits/CommitCell.swift:14-21 | SwiftHub/Modules/Events/EventCell.swift:20-27 | SwiftHub/Modules/Issues/IssueCell.swift:19-26 | SwiftHub/Modules/Notifications/NotificationCell.swift:19-26 | SwiftHub/Modules/Pull Requests/PullRequestCell.swift:14-21 | SwiftHub/Modules/Releases/ReleaseCell.swift:18-24 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Commits/CommitCell.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dae01b1980b4115d69fa471538dea7eba2784f847b1fa473b0d03dbf01228e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): SwiftHub/Common/ChatViewController.swift:129-135 | SwiftHub/Common/ChatViewController.swift:137-143 \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":"SwiftHub/Common/ChatViewController.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2fa36dcf162239720f85d08f9217997fb835b8d3508b19534e72a6553599d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): SwiftHub/Models/Issue.swift:82-91 | SwiftHub/Models/License.swift:22-29 \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":"SwiftHub/Models/Issue.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec7cb91bb6886f05baa8711a64c8e01fb0129f00717f75514ed1754e9b76117"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): SwiftHub/Extensions/RxSwift/Observable\u002BLogging.swift:13-22 | SwiftHub/Extensions/RxSwift/Observable\u002BLogging.swift:24-33 \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":"SwiftHub/Extensions/RxSwift/Observable\u002BLogging.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c208fd66fc5311b5e652427e17adc5db1354521ff9420f6d5d6e4842977ef68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): SwiftHub/Modules/Issue Details/IssueViewController.swift:28-39 | SwiftHub/Modules/Pull Request Details/PullRequestViewController.swift:28-39 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Issue Details/IssueViewController.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83abf8bae26ca3f011bf0e4fbe6a3645bf84067e27a7a729d22f7bb819bf560"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): SwiftHub/Modules/Settings/Cells/SettingCellViewModel.swift:15-21 | SwiftHub/Modules/Settings/Cells/SettingSwitchCellViewModel.swift:19-26 | SwiftHub/Modules/User Details/ContributionsCellViewModel.swift:17-23 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Settings/Cells/SettingCellViewModel.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c891312e9544db2245f2aca1355350ced98b3f098c62310cb24f5306064707b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): SwiftHub/Networking/Rest/RestApi.swift:291-296 | SwiftHub/Networking/Rest/RestApi.swift:298-303 | SwiftHub/Networking/Rest/RestApi.swift:307-312 | SwiftHub/Networking/Rest/RestApi.swift:314-319 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Networking/Rest/RestApi.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d77bf43886d2259ba3c416b73a43ffe6194fc7a3741dd1da8bd16db6a3f5c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): SwiftHub/Models/Event.swift:135-143 | SwiftHub/Models/Event.swift:158-164 | SwiftHub/Models/Event.swift:246-252 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Models/Event.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f81c3ebfe23202be3f57d95bf2154525c442a4988f0dd7cbe4e331dffde83d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/Rest/RestApi.swift:92-94 | SwiftHub/Networking/Rest/RestApi.swift:172-174 \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":"SwiftHub/Networking/Rest/RestApi.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f74fb10b50ead93374c8494dd2c39b308ad34c45fece798488f238d2dc50649"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): SwiftHub/Models/User.swift:197-201 | SwiftHub/Models/User.swift:203-208 | SwiftHub/Models/User.swift:210-215 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Models/User.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2ceecb4e98fa92a73f0fccb82b79ec9502c58f52926c33de559cb053a012fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:235-237 | SwiftHub/Networking/Rest/RestApi.swift:234-236 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4820f06002f8aabf811153c2047e8c6a7fcfb202dead228e2fd43d6da8ceb20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): SwiftHub/Modules/Issues/IssuesViewModel.swift:35-41 | SwiftHub/Modules/Repository Details/RepositoryViewModel.swift:47-53 | SwiftHub/Modules/User Details/UserViewModel.swift:46-52 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Issues/IssuesViewModel.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"104ba928449b70d486279521b911034a87b426dd4984f038b2612a3e9fea8f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): SwiftHub/Modules/Repositories/RepositoriesViewController.swift:35-44 | SwiftHub/Modules/Users/UsersViewController.swift:35-43 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Repositories/RepositoriesViewController.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb78be40662958b89df40df73755a7763d9e0e569ba0b485c82437ff397335b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:108-110 | SwiftHub/Networking/Rest/RestApi.swift:112-114 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"444b240882b4d491c71a2190335e062d95d75647fec4f1e378c451153c1ec6e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:112-114 | SwiftHub/Networking/Rest/RestApi.swift:116-118 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"79658f79bd7eb15aa66d3bafc52417e0e04978e34b37f0790ff0c5a44ca6a220"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:120-122 | SwiftHub/Networking/Rest/RestApi.swift:124-126 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"183a8dae0a3801bdc26424bb687a1bd057e97e7bcc60dba38d048931b1d74d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:148-150 | SwiftHub/Networking/Rest/RestApi.swift:152-154 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66ae288b92e86e05e43a4948d9b60c288f93ae369a2fbe8ad845d6a0b6caa40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:156-158 | SwiftHub/Networking/Rest/RestApi.swift:160-162 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc6130d18f4aa5d2a591423d5cb6d46746db11d76a9e206241defae71e3cfc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:208-210 | SwiftHub/Networking/Rest/RestApi.swift:208-210 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7dba4492b40a2205d3ac0bf3ca841e3d4886dec118f5a4631e1fb5439999a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:231-233 | SwiftHub/Networking/Rest/RestApi.swift:230-232 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"28274ca05f391e92388859059885063fb33c09f614f926aafbd1ad2b353f47bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:92-94 | SwiftHub/Networking/Rest/RestApi.swift:96-98 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22a9b71f82570e46188e1a9872124cda452a6d69cb5d6d53ddb5faabd36948c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:96-98 | SwiftHub/Networking/Rest/RestApi.swift:100-102 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"021427eb9843187acbfec8c4c57abf0893c43d363abf95616fe07828e5fac2f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:100-102 | SwiftHub/Networking/Rest/RestApi.swift:104-106 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b1e4c8fe3d05f5edc22186855d5203607c72f8c33f49e9e7202b2c3ae76a6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:124-126 | SwiftHub/Networking/Rest/RestApi.swift:128-130 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dcfd72b7b638e9470a0d657d39b0746706d1b10aff294637055b5cf069b834"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:132-134 | SwiftHub/Networking/Rest/RestApi.swift:136-138 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2bf7b84a6be2334e06c842faf6aa0b1c064211cd8ff3134718cbf8aa18daf45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:140-142 | SwiftHub/Networking/Rest/RestApi.swift:144-146 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50a03e29eb983eddcb3bc7a2a80080c324af832e901a6b8145244e79d74e921"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:160-162 | SwiftHub/Networking/Rest/RestApi.swift:164-166 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"52481e9812995ed21bede4e27fc93c38d130443002b328f7298b192033af8ec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:184-186 | SwiftHub/Networking/Rest/RestApi.swift:184-186 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"80acfe223264632df196435b9069d233db64b25d06b88e0e16bad5b04f464821"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:188-190 | SwiftHub/Networking/Rest/RestApi.swift:188-190 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f67124d48ab965daae1acf56aab7e0db66cadf39381af814b4dd371d30ef85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:192-194 | SwiftHub/Networking/Rest/RestApi.swift:192-194 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cce138fb83e4972ab92e6a82902a2d1e670c3496e2f348398506e9b2953a61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:196-198 | SwiftHub/Networking/Rest/RestApi.swift:196-198 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cf331b1a026f454a7b98e284ea1ac4dfea29292faa3d4fc6c33f73c3a3cdfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:200-202 | SwiftHub/Networking/Rest/RestApi.swift:200-202 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b9c8a3fac62ed1ee6cfe9445522cf7b28cac10d28bb3a046f83fdbbbf2d7d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:212-214 | SwiftHub/Networking/Rest/RestApi.swift:212-214 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad98a64444acec2d98e4de8e376917d8659a1410184e7a6f17dc4985f4ea92f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:216-218 | SwiftHub/Networking/Rest/RestApi.swift:216-218 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e497b73e3ba30d1367defbd4a05240d972f03f27d53fceb36a24922d731f0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:220-222 | SwiftHub/Networking/Rest/RestApi.swift:220-222 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"86860812121caee0318dedef930b0d2f746748b810d876a0fbaf0dcb2c3715e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:272-274 | SwiftHub/Networking/Rest/RestApi.swift:271-273 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"99485e170333bb3d6d6daccffe21b7577822f5ece309f326afda1392e67f5086"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): SwiftHub/Networking/GraphQL/GraphApi.swift:276-278 | SwiftHub/Networking/Rest/RestApi.swift:275-277 \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":"SwiftHub/Networking/GraphQL/GraphApi.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a229b3a0db047899d8fbb2ed7ef2bd8de518a882146f5d0beb84158721a838c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): SwiftHub/Common/Table View Cells/TableViewCell.swift:52-56 | SwiftHub/Modules/Languages/RepoLanguageCell.swift:18-23 \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":"SwiftHub/Common/Table View Cells/TableViewCell.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0789f823808b49e904d3ad4a8419dfb6520d5a0787fdb8e8116d6e8ab93c9df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): SwiftHub/Modules/Branches/BranchesViewModel.swift:29-32 | SwiftHub/Modules/Commits/CommitsViewModel.swift:31-34 | SwiftHub/Modules/Pull Requests/PullRequestsViewModel.swift:33-36 | SwiftHub/Modules/Releases/ReleasesViewModel.swift:31-34 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Branches/BranchesViewModel.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de276161e05692b854820b837e1c79b0b50c6bd9e2c7671fa6b58c0e4799e86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): SwiftHub/Modules/Notifications/NotificationsViewModel.swift:43-46 | SwiftHub/Modules/Repositories/RepositoriesViewModel.swift:43-46 | SwiftHub/Modules/Users/UsersViewModel.swift:44-47 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Notifications/NotificationsViewModel.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e52aa630f0af06f9a4c484894c8780874785c19c51d8790a9503def1b69b574"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): SwiftHub/Networking/GraphQL/Apollo\u002BRx.swift:27-44 | SwiftHub/Networking/GraphQL/Apollo\u002BRx.swift:50-67 | SwiftHub/Networking/GraphQL/Apollo\u002BRx.swift:73-90 \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 \u0060SwiftHub/Networking/GraphQL/Apollo\u002BRx.swift:27\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Networking/GraphQL/Apollo\u002BRx.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fd6437f01d80aea68429d837f18993f180fe9abf436d9fb5b8f8d6c931397b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): SwiftHub/Models/User.swift:154-173 | SwiftHub/Models/User.swift:176-195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060graph\u0060 to \u0060ViewerQuery.Data.Viewer?\u0060 in one and \u0060UserQuery.Data.User?\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Models/User.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21ea171bb753a26ae32f2001bd6e953401dbc524408111fce2dd7a4e4c4bd93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): SwiftHub/Modules/Repository Details/RepositoryViewModel.swift:304-317 | SwiftHub/Modules/User Details/UserViewModel.swift:264-278 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SwiftHub/Modules/Repository Details/RepositoryViewModel.swift:304\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":"SwiftHub/Modules/Repository Details/RepositoryViewModel.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"05049c040601c0e5c471b658c2b6abaa085dcce7752f4a06cee754805b4ab34d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): SwiftHub/Modules/Repository Details/RepositoryViewController.swift:296-309 | SwiftHub/Modules/User Details/UserViewController.swift:292-305 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Repository Details/RepositoryViewController.swift\u0060 and \u0060SwiftHub/Modules/User Details/UserViewController.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 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":"SwiftHub/Modules/Repository Details/RepositoryViewController.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c624f0707a5ebe04ef9b0eabbbe45518af9bc6a9eaeb789c26d1a510ec093e82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): SwiftHub/Modules/Events/EventsViewModel.swift:73-85 | SwiftHub/Modules/Issues/IssuesViewModel.swift:60-72 | SwiftHub/Modules/Notifications/NotificationsViewModel.swift:71-83 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Events/EventsViewModel.swift\u0060 and \u0060SwiftHub/Modules/Issues/IssuesViewModel.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 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 \u0060SwiftHub/Modules/Events/EventsViewModel.swift:73\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":"SwiftHub/Modules/Events/EventsViewModel.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"4770d9feadcdad1393c6ba7f2a94d913b8701377da571dc3df898ef6f275caaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): SwiftHub/Modules/Issue Details/IssueViewModel.swift:35-47 | SwiftHub/Modules/Pull Request Details/PullRequestViewModel.swift:35-47 \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":"SwiftHub/Modules/Issue Details/IssueViewModel.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4abc0a77764ff5a3863311f4639cfa599f8aecef16c894074f312381ec25ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): SwiftHub/Modules/Issues/IssueCellViewModel.swift:48-62 | SwiftHub/Modules/Pull Requests/PullRequestCellViewModel.swift:42-56 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SwiftHub/Modules/Issues/IssueCellViewModel.swift:48\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Issues/IssueCellViewModel.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f64e5aeca8462a82fef15419f5880b060a6264bd61608052bf0765fed5c23a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): SwiftHub/Modules/Repository Details/RepositoryDetailCell.swift:13-25 | SwiftHub/Modules/Settings/Cells/SettingCell.swift:13-25 \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":"SwiftHub/Modules/Repository Details/RepositoryDetailCell.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"39924a2b2cf61b831be09faa93e9236ccb3b7306deb9ea58220abd71a53d3c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): SwiftHub/Modules/Issue Details/IssueViewController.swift:47-58 | SwiftHub/Modules/Pull Request Details/PullRequestViewController.swift:47-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SwiftHub/Modules/Issue Details/IssueViewController.swift:47\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":"SwiftHub/Modules/Issue Details/IssueViewController.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e45fadadcd172f560e57d86a750e2351267f5d59ff6926ad42d564227a1157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): SwiftHub/Modules/Branches/BranchesViewModel.swift:50-60 | SwiftHub/Modules/Commits/CommitsViewModel.swift:52-62 | SwiftHub/Modules/Pull Requests/PullRequestsViewModel.swift:55-65 | SwiftHub/Modules/Releases/ReleasesViewModel.swift:52-62 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Commits/CommitsViewModel.swift\u0060 and \u0060SwiftHub/Modules/Pull Requests/PullRequestsViewModel.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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 \u0060SwiftHub/Modules/Branches/BranchesViewModel.swift:50\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":"SwiftHub/Modules/Branches/BranchesViewModel.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73fc9438cef03dac8d15a09153a6ee4e9d20865f2946f9696a91074c4b70aa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): SwiftHub/Modules/Commits/CommitsViewModel.swift:68-78 | SwiftHub/Modules/Pull Requests/PullRequestsViewModel.swift:72-82 | SwiftHub/Modules/Releases/ReleasesViewModel.swift:68-78 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Commits/CommitsViewModel.swift\u0060 and \u0060SwiftHub/Modules/Pull Requests/PullRequestsViewModel.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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 \u0060SwiftHub/Modules/Commits/CommitsViewModel.swift:68\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":"SwiftHub/Modules/Commits/CommitsViewModel.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32b4ff9b3b4219d7ab87205380f0cbea86183a55034761921508db85da5e0c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): SwiftHub/Modules/Issues/IssuesViewController.swift:91-101 | SwiftHub/Modules/Repositories/RepositoriesViewController.swift:56-66 | SwiftHub/Modules/Users/UsersViewController.swift:55-65 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Repositories/RepositoriesViewController.swift\u0060 and \u0060SwiftHub/Modules/Users/UsersViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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":"SwiftHub/Modules/Issues/IssuesViewController.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6f7e4a4ef927b87c9863c505304316ec67ae9a6e825f8c4bc1eb6f17eca45c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): SwiftHub/Modules/Languages/LanguagesViewController.swift:70-80 | SwiftHub/Modules/Search/SearchViewController.swift:283-293 | SwiftHub/Modules/Settings/SettingsViewController.swift:65-75 \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 \u0060SwiftHub/Modules/Languages/LanguagesViewController.swift:70\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":"SwiftHub/Modules/Languages/LanguagesViewController.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e185d166678bb3466d54f0de0f76b1ede147e3caabf7db85c46f7be476bec209"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): SwiftHub/Modules/Issue Details/IssueCommentsViewModel.swift:39-49 | SwiftHub/Modules/Pull Request Details/PullRequestCommentsViewModel.swift:39-49 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SwiftHub/Modules/Issue Details/IssueCommentsViewModel.swift:39\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":"SwiftHub/Modules/Issue Details/IssueCommentsViewModel.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6aed3555cd2b8211763f6c7cc97c0ebfa3d42950ffa91f2fd57c4e34ec8ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): SwiftHub/Modules/Repository Details/RepositoryViewController.swift:164-174 | SwiftHub/Modules/User Details/UserViewController.swift:178-188 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Repository Details/RepositoryViewController.swift\u0060 and \u0060SwiftHub/Modules/User Details/UserViewController.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 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 \u0060SwiftHub/Modules/Repository Details/RepositoryViewController.swift:164\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":"SwiftHub/Modules/Repository Details/RepositoryViewController.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6853811aad4ab6ab250943fc28c9ee6a814447c6aa83023f2cb32fc80f3c61f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): SwiftHub/Modules/User Details/ContributionsCell.swift:27-37 | SwiftHub/Modules/User Details/UserDetailCell.swift:13-23 \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 \u0060SwiftHub/Modules/User Details/ContributionsCell.swift:27\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":"SwiftHub/Modules/User Details/ContributionsCell.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"536fd31bdad64d8b17724f75d74b2a6b993a8569a8f5045887eb037948539b36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): SwiftHub/Modules/Search/SearchViewModel.swift:210-219 | SwiftHub/Modules/Search/SearchViewModel.swift:225-234 \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 \u0060SwiftHub/Modules/Search/SearchViewModel.swift:210\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":"SwiftHub/Modules/Search/SearchViewModel.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa0f0abd5f1f4139cd40eb46f62a64afad29fe4f4b34d1e0f756f7f532410bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): SwiftHub/Modules/Events/EventsViewController.swift:92-100 | SwiftHub/Modules/Issues/IssuesViewController.swift:95-103 | SwiftHub/Modules/Repositories/RepositoriesViewController.swift:60-68 | SwiftHub/Modules/Users/UsersViewController.swift:59-67 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Repositories/RepositoriesViewController.swift\u0060 and \u0060SwiftHub/Modules/Users/UsersViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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 \u0060SwiftHub/Modules/Events/EventsViewController.swift:92\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060SwiftHub/Modules/Events/EventsViewController.swift:88\u0060 calls \u0060disposed\u0060, \u0060drive\u0060 and \u0060SwiftHub/Modules/Issues/IssuesViewController.swift:94\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Events/EventsViewController.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0bb0ed9f41d82e3858c3440adec8bb6567772b7434bf3e666410d9ef82bf2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): SwiftHub/Modules/Issue Details/IssueCommentsViewController.swift:23-33 | SwiftHub/Modules/Pull Request Details/PullRequestCommentsViewController.swift:23-33 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SwiftHub/Modules/Issue Details/IssueCommentsViewController.swift:23\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":"SwiftHub/Modules/Issue Details/IssueCommentsViewController.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ab62deebc21bc6f69959cc698fa08cf3417055ba6d772bb4f837f413d6d30f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): SwiftHub/Modules/Repository Details/RepositoryViewController.swift:274-282 | SwiftHub/Modules/User Details/UserViewController.swift:281-289 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Repository Details/RepositoryViewController.swift\u0060 and \u0060SwiftHub/Modules/User Details/UserViewController.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 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 \u0060SwiftHub/Modules/Repository Details/RepositoryViewController.swift:274\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":"SwiftHub/Modules/Repository Details/RepositoryViewController.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"0146d702f4010ac2ea5265c034b189acd0f5b3142afff1c8079797dc15c6c315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 9): SwiftHub/Modules/Branches/BranchesViewModel.swift:39-46 | SwiftHub/Modules/Commits/CommitsViewModel.swift:41-48 | SwiftHub/Modules/Events/EventsViewModel.swift:62-69 | SwiftHub/Modules/Issues/IssuesViewModel.swift:49-56 | SwiftHub/Modules/Notifications/NotificationsViewModel.swift:60-67 | SwiftHub/Modules/Pull Requests/PullRequestsViewModel.swift:44-51 | SwiftHub/Modules/Releases/ReleasesViewModel.swift:41-48 | SwiftHub/Modules/Repositories/RepositoriesViewModel.swift:53-59 | SwiftHub/Modules/Users/UsersViewModel.swift:54-60 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Commits/CommitsViewModel.swift\u0060 and \u0060SwiftHub/Modules/Pull Requests/PullRequestsViewModel.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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 \u0060SwiftHub/Modules/Branches/BranchesViewModel.swift:39\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060SwiftHub/Modules/Events/EventsViewModel.swift:59\u0060 calls \u0060bind\u0060, \u0060disposed\u0060 and \u0060SwiftHub/Modules/Branches/BranchesViewModel.swift:36\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":"SwiftHub/Modules/Branches/BranchesViewModel.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a3a731583e7a2f7601530782234f84dae9858be0ef67451844c3ba6f4d2f43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 9): SwiftHub/Modules/Branches/BranchesViewModel.swift:49-56 | SwiftHub/Modules/Commits/CommitsViewModel.swift:51-58 | SwiftHub/Modules/Events/EventsViewModel.swift:72-79 | SwiftHub/Modules/Issues/IssuesViewModel.swift:59-66 | SwiftHub/Modules/Notifications/NotificationsViewModel.swift:70-77 | SwiftHub/Modules/Pull Requests/PullRequestsViewModel.swift:54-61 | SwiftHub/Modules/Releases/ReleasesViewModel.swift:51-58 | SwiftHub/Modules/Repositories/RepositoriesViewModel.swift:62-68 | SwiftHub/Modules/Users/UsersViewModel.swift:63-69 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Commits/CommitsViewModel.swift\u0060 and \u0060SwiftHub/Modules/Pull Requests/PullRequestsViewModel.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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 \u0060SwiftHub/Modules/Branches/BranchesViewModel.swift:49\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Branches/BranchesViewModel.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec573181377d559ea6c67c10c5112e5a3723443ed20f86686a42ac9adb605aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): SwiftHub/Modules/Events/EventsViewModel.swift:90-97 | SwiftHub/Modules/Issues/IssuesViewModel.swift:71-78 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Events/EventsViewModel.swift\u0060 and \u0060SwiftHub/Modules/Issues/IssuesViewModel.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 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 \u0060SwiftHub/Modules/Events/EventsViewModel.swift:90\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":"SwiftHub/Modules/Events/EventsViewModel.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b576ad03428c78487fb5b6f2350070ee4b19144d3980a1449f3caf5dbbfaec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): SwiftHub/Modules/Search/SearchViewModel.swift:121-128 | SwiftHub/Modules/Search/SearchViewModel.swift:171-178 \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 \u0060SwiftHub/Modules/Search/SearchViewModel.swift:121\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":"SwiftHub/Modules/Search/SearchViewModel.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a97ea03ce0441148cb36fc8f7cc32a91d1aec538564e12513d77b844876a91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): SwiftHub/Modules/Branches/BranchesViewController.swift:32-38 | SwiftHub/Modules/Commits/CommitsViewController.swift:32-38 | SwiftHub/Modules/Contents/ContentsViewController.swift:40-46 | SwiftHub/Modules/Notifications/NotificationsViewController.swift:74-80 | SwiftHub/Modules/Pull Requests/PullRequestsViewController.swift:65-71 | SwiftHub/Modules/Releases/ReleasesViewController.swift:32-38 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060SwiftHub/Modules/Notifications/NotificationsViewController.swift:72\u0060 calls \u0060asObservable\u0060 and \u0060SwiftHub/Modules/Branches/BranchesViewController.swift:30\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Branches/BranchesViewController.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e59aac30c30035bf0ee27a0fff13bee368285d0c72f2e02730d0f3b34772c02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): SwiftHub/Modules/Settings/SettingsViewModel.swift:121-128 | SwiftHub/Modules/Settings/SettingsViewModel.swift:132-139 | SwiftHub/Modules/Settings/SettingsViewModel.swift:143-150 \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 \u0060SwiftHub/Modules/Settings/SettingsViewModel.swift:121\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":"SwiftHub/Modules/Settings/SettingsViewModel.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"71730a70ea2987c56db0e52660bb5d99868eafb2c58a7765df49205a6b1e5d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): SwiftHub/Modules/Repository Details/RepositoryViewController.swift:238-244 | SwiftHub/Modules/User Details/UserViewController.swift:243-249 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Repository Details/RepositoryViewController.swift\u0060 and \u0060SwiftHub/Modules/User Details/UserViewController.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 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":"SwiftHub/Modules/Repository Details/RepositoryViewController.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f1cf58c52c4ab138f8a42f3d33672851ff8ed7aa5c7607ad1d81b8471c7aff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): SwiftHub/Modules/Repository Details/RepositoryViewModel.swift:97-103 | SwiftHub/Modules/User Details/UserViewModel.swift:94-100 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SwiftHub/Modules/Repository Details/RepositoryViewModel.swift:97\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":"SwiftHub/Modules/Repository Details/RepositoryViewModel.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"3044397eb9e48748f2db00858422a2642d16d0fc9bb4d224924753cb42f8bd49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): SwiftHub/Modules/Search/SearchViewModel.swift:95-101 | SwiftHub/Modules/Search/SearchViewModel.swift:146-152 \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 \u0060SwiftHub/Modules/Search/SearchViewModel.swift:95\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":"SwiftHub/Modules/Search/SearchViewModel.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00795d962b01706ea58f533810c182bdc4e2a1a32932495fd6b8088c786799a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): SwiftHub/Modules/Repositories/RepositoriesViewController.swift:75-80 | SwiftHub/Modules/Users/UsersViewController.swift:74-79 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Repositories/RepositoriesViewController.swift\u0060 and \u0060SwiftHub/Modules/Users/UsersViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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 \u0060SwiftHub/Modules/Repositories/RepositoriesViewController.swift:75\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":"SwiftHub/Modules/Repositories/RepositoriesViewController.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c33f58312550445975541d8337ec57bbe6ab6515510fd59a737048a5aed6c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): SwiftHub/Modules/Repository Details/RepositoryViewModel.swift:154-159 | SwiftHub/Modules/User Details/UserViewModel.swift:149-154 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Modules/Repository Details/RepositoryViewModel.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91a6f11c1f5ba08a9282fd1a2c95aec096e5d0cc3fc1d3777f1e8cbf55a281c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): SwiftHub/Modules/Events/EventsViewController.swift:94-98 | SwiftHub/Modules/Issues/IssuesViewController.swift:97-101 | SwiftHub/Modules/Repositories/RepositoriesViewController.swift:62-66 | SwiftHub/Modules/Repository Details/RepositoryViewController.swift:240-244 | SwiftHub/Modules/User Details/UserViewController.swift:245-249 | SwiftHub/Modules/Users/UsersViewController.swift:61-65 \u2014 before extracting anything, compare \u0060SwiftHub/Modules/Repositories/RepositoriesViewController.swift\u0060 and \u0060SwiftHub/Modules/Users/UsersViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060SwiftHub/Modules/Repository Details/RepositoryViewController.swift:238\u0060 calls \u0060drive\u0060, \u0060disposed\u0060 and \u0060SwiftHub/Modules/Issues/IssuesViewController.swift:95\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":"SwiftHub/Modules/Events/EventsViewController.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4dd16c75bf25b87e5d52234136f5c0b3de6038f4657b4c6c9fba18e9e661eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): SwiftHub/Modules/Commits/CommitsViewController.swift:47-51 | SwiftHub/Modules/Releases/ReleasesViewController.swift:45-49 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SwiftHub/Modules/Commits/CommitsViewController.swift:47\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":"SwiftHub/Modules/Commits/CommitsViewController.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"607524f1eaef0155f9b0ebb7d86a27b29666d2a5cc2bf57292225073a8b082e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): SwiftHub/Modules/Repositories/RepositoryCell.swift:30-40 | SwiftHub/Modules/Users/UserCell.swift:30-40 \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":"SwiftHub/Modules/Repositories/RepositoryCell.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"521ff40829f6679a4c09f7b077221036da12c9f952fea0a81612060e3f925fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): SwiftHub/Models/Repository.swift:201-207 | SwiftHub/Models/User.swift:263-269 \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":"SwiftHub/Models/Repository.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5dd231eb70909efcae02332151c52e10c77a3870feae891c2e6cb7cd9440738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): SwiftHub/Modules/Issue Details/IssueCommentsViewModel.swift:28-32 | SwiftHub/Modules/Issue Details/IssueViewModel.swift:29-33 \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":"SwiftHub/Modules/Issue Details/IssueCommentsViewModel.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59944c03a9a9f7e5e3ae1795cc45a7993c7f4309a69f16ee9f1e5b1f5b71792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): SwiftHub/Modules/Issues/IssuesViewController.swift:19-24 | SwiftHub/Modules/Pull Requests/PullRequestsViewController.swift:19-24 \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":"SwiftHub/Modules/Issues/IssuesViewController.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a64392a472e7cbd385a14b38e67215678ab98f366f547bc625cc328ea05a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): SwiftHub/Modules/Pull Request Details/PullRequestCommentsViewModel.swift:28-32 | SwiftHub/Modules/Pull Request Details/PullRequestViewModel.swift:29-33 \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":"SwiftHub/Modules/Pull Request Details/PullRequestCommentsViewModel.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82b9e3445d08db6203f1be1f0e9ad54ded20bbb11242ba5d81a41a73e08b74a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): SwiftHub/Modules/Repository Details/RepositoryDetailCellViewModel.swift:15-21 | SwiftHub/Modules/User Details/UserDetailCellViewModel.swift:15-21 \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":"SwiftHub/Modules/Repository Details/RepositoryDetailCellViewModel.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9986dbf0216782244283140d1e11f117a216dc1439b71bb5a29aa752bddf25f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): SwiftHub/Models/User.swift:28-32 | SwiftHub/Models/User.swift:35-39 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060graph\u0060 to \u0060ViewerQuery.Data.Viewer.ContributionsCollection?\u0060 in one and \u0060UserQuery.Data.User.ContributionsCollection?\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Models/User.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c6913905b1e83b7eb046519b0ec09a612556b9f1bdba324d91b2050042ff0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): SwiftHub/Modules/Events/EventsViewController.swift:102-110 | SwiftHub/Modules/Notifications/NotificationsViewController.swift:82-90 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SwiftHub/Modules/Events/EventsViewController.swift:102\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":"SwiftHub/Modules/Events/EventsViewController.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"402b4f022b88254b4c767f16af26b44e93d4e225fe5c7ebed51498c1b10ad188"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatViewController (LCOM4 20): ChatViewController\u0027s methods fall into 20 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 20 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Common/ChatViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b588db55eee31f633f2386632479a8bd129e6cbd7446313160bf7d27a29a4a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ViewController (LCOM4 8): ViewController\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":"SwiftHub/Common/ViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb568ea656a20d923047cd2fd3c7471e1995536cc31ccadd1d8fd720340e85b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Reactive (LCOM4 8): Reactive\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":"SwiftHub/Managers/ThemeManager.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"004d051b05dbba3193a20e9df364e89adb3585d661ede92a459353cfcf103649"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UIView (LCOM4 5): UIView\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Common/View.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3001adbc4316a5b42e1802f49c5c59aff4fed1c24329bc8064740fb03bb7b82"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RestApi (LCOM4 4): RestApi\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":"SwiftHub/Networking/Rest/RestApi.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1689cd72aa024ae3abd4f9db87757db4520207f7dddc1fb8534aa6570d23a02a"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHubTests/SwiftHubTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8955769e4943af14960d68385f1033dc251daa3942fbee7a68e2186a1a4932"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPerformanceExample: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHubTests/SwiftHubTests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9e50bf846844b8c3a980f8fc05de45d4ee3acc0b3db12f2aeff377e653a73e"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testScreenshotSettings: No conventional assertion call was detected, and 3 of 4 tests in \u0060SwiftHubUITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHubUITests/SwiftHubUITests.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"280752534e946d02b260e1683984539b8e02c3aee4f027905ac7994f28253cd5"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testScreenshotRepositoryDetails: No conventional assertion call was detected, and 3 of 4 tests in \u0060SwiftHubUITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHubUITests/SwiftHubUITests.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90682be1ef90e6d905b22f5142b2aaa9c9ef647587648b2d28e488a4c3a1363"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testScreenshotSearch: No conventional assertion call was detected, and 3 of 4 tests in \u0060SwiftHubUITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHubUITests/SwiftHubUITests.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d64e00de64fb60a7c6d588af191d0cf2a9ec00ef0efc3f3ae3b331e14f85e57"}},{"ruleId":"D10","level":"error","message":{"text":"Test project verifies nothing: SwiftHubTests: No conventional assertion call was detected in 2 of 2 tests in \u0060SwiftHubTests\u0060 \u2014 the project as a whole, not one method. 1 of them has its assertions commented out, so this suite did verify conventionally and was switched off \u2014 it is not an approval/verifier harness."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHubTests/SwiftHubTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"258222076582342adb3c083e61288785f81c7fd8a3a0275b548d41226a729d7e"}},{"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 \u0060SwiftHub.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2be541cdb01909c5ab30536fb9d47f8045f5f311ee6848effe723daad160603"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060reuseID\u0060 spells \u0060ID\u0060 where 21 names in the project spell it \u0060Id\u0060: 21 of 22 names in project repository spell the token \u0060Id\u0060 (21 of 22; unit: names in project repository containing \u0060Id\u0060). Peers: Keys.appId (SwiftHub/Configs/Configs.swift:21); Analytics.identify(userId) (SwiftHub/Managers/AnalyticsManager.swift:125); Comment.nodeId (SwiftHub/Models/Comment.swift:21); Comment.messageId (SwiftHub/Models/Comment.swift:28); Commit.nodeId (SwiftHub/Models/Commit.swift:19). Rename to \u0060reuseId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftHub/Common/TableView.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf46a25f15982af7be4a0f0d3f78b43c770ac27402f9d9815b931147a78d22f"}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dbee7604abc096b8a66e5e87632765ee2922e5b89c9e8409db574d99565e0e6a"},"properties":{"dependency":{"package":"activesupport","version":"7.2.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ae5226fc492343f6c867f4a7694ecefd62aee0166aee8371ac495d79873411c6"},"properties":{"dependency":{"package":"addressable","version":"2.8.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"833a7185174858706a151949e08a56b5367b07ea17a6c5b8941f64f85991be16"},"properties":{"dependency":{"package":"concurrent-ruby","version":"1.3.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9e842a8521a9d898666a1d5a419a43a27e416322915c05bcbc38ca2d85f70dcd"},"properties":{"dependency":{"package":"faraday","version":"1.10.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2671d2dc5243d2844e58ece392cfd92899b5067cc5e636d13daa8bfc4cef5229"},"properties":{"dependency":{"package":"jwt","version":"2.9.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cdd0a7ecc16332535f869a4c0d6fabd5d6770567695cd122fe55c8e4fc586bae"},"properties":{"dependency":{"package":"rubyzip","version":"2.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d3dd095e6f7da548eec797e02561d04bb6a917dfbdfd75b356095aa4206676ef"},"properties":{"dependency":{"package":"aws-sdk-s3","version":"1.176.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3acf461327c8d5eb139fb28055eb092d4d60f44d473a75aff035039585d5f410"},"properties":{"dependency":{"package":"excon","version":"0.112.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a04b349ced306ce5538f8142a6cbe1d3a14d4b9faec1377747a8b8a371eaf2ce"},"properties":{"dependency":{"package":"json","version":"2.9.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf8ca3d46437c1be78bb00097e8876dee7f53f7b026a58048f3eda94fe3b7188"},"properties":{"dependency":{"package":"rexml","version":"3.3.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"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"}}],"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":10,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}