{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"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":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"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":"SettingsSupport.swift.applySetting (cyclomatic 67): SettingsSupport.swift.applySetting has cyclomatic complexity 67 (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":"Sources/repobarcli/SettingsSupport.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"17730714b389ff0f231997e282015e90e50691dba3bc4b1df59a8ef314ddeba0"}},{"ruleId":"D1","level":"warning","message":{"text":"CLIArgumentNormalizer.normalize (cyclomatic 52): CLIArgumentNormalizer.normalize has cyclomatic complexity 52 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/CLIArgumentNormalizer.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c1017d5d341de4e8194b5a9eff63ec8c833d91577220c00aed7ce584df2c29"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoSubmenuBuilder.repoSubmenuItems (cyclomatic 45): RepoSubmenuBuilder.repoSubmenuItems has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edbdf75eb3e5b6f2a7c35f16601ee950889a1e9eda8be7bf197eed8109afd83"}},{"ruleId":"D1","level":"warning","message":{"text":"StatusBarMenuBuilder.mainMenuItems (cyclomatic 45): StatusBarMenuBuilder.mainMenuItems has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c214bfef42b8582b7da68fb565c696411090bd85c31b497b0065f3a123bade4"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoDetailCoordinator.fullRepository (cyclomatic 31): RepoDetailCoordinator.fullRepository has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/RepoDetailCoordinator.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1cc8df029f24df27c225442a39c4c72a000fbf42c0a0c1fb94bfae2cb8ffc0"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountSettingsView.body (cyclomatic 27): AccountSettingsView.body 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":"Sources/RepoBar/Settings/AccountSettingsView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5ced7629300ac9bf8831eb89d36443dfc5c19dab21aa48031a35b41ea521f2"}},{"ruleId":"D1","level":"warning","message":{"text":"IssueNavigatorModel.performSearch (cyclomatic 24): IssueNavigatorModel.performSearch has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/IssueNavigatorModel.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68e35e476f0b52234b7cc7a614a796aef9216d580c224cf0d5d79eacc175f6f"}},{"ruleId":"D1","level":"warning","message":{"text":"RecentListMenuCoordinator.renderRecentItems (cyclomatic 22): RecentListMenuCoordinator.renderRecentItems has cyclomatic complexity 22 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/RecentListMenuCoordinator.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"22216490f51ab0f27b921292ddd7eb373eaf7c2dafd15cbc37b3fd83094d5d4a"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoDetailModel.message (cyclomatic 22): RepoDetailModel.message has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/Models/RepoDetailModel.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd6cfdbb96aff06616b458ac75c1d1cd102ccc104212384b1f43249c2acd02c"}},{"ruleId":"D1","level":"warning","message":{"text":"CLIOutput.swift.tableLines (cyclomatic 22): CLIOutput.swift.tableLines has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/CLIOutput.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc91b731d4fcf29583dff400097be7f70011a290a3e7acfb4cece76c480e156"}},{"ruleId":"D1","level":"warning","message":{"text":"RecentListsOutput.swift.recentTableLines (cyclomatic 22): RecentListsOutput.swift.recentTableLines has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e3b58f380325ac7bbef485fea77dc1dde35193ed7d5e7434982982ab29f067"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubReferenceTranslator.urlReference (cyclomatic 21): GitHubReferenceTranslator.urlReference has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BURLs.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e3c1e6f1d626bf39ff1617da588c1a1e35c6663485b9b79a64e683a365225d"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoDetailModel.load (cyclomatic 21): RepoDetailModel.load has cyclomatic complexity 21 (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":"RepoBariOS/Sources/Models/RepoDetailModel.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"efac394f7242d1cc963f60b8538cb0e125b728551155abfe8a06ba059675496e"}},{"ruleId":"D1","level":"warning","message":{"text":"ArchivesAddCommand.archiveSource (cyclomatic 21): ArchivesAddCommand.archiveSource has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/ArchiveCommands.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2314e4897dc5ca8d7d26d88a94f22771a11409af5b0006233abd42afda3dc87"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubPullRequestNotificationDetector.events (cyclomatic 20): GitHubPullRequestNotificationDetector.events has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationDetector.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc3f7dbb93c653e3eb96433adfc32380f50fac37f149c97167f59fe586a6f46"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubReferenceTranslator.repositoryHeadingListBlockParse (cyclomatic 20): GitHubReferenceTranslator.repositoryHeadingListBlockParse has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BRepositoryHeadingBlocks.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"636b4a0c0feecb0ebf21674ce94cc5c6c6abb9959e1a9d34c14afb7972f50bd2"}},{"ruleId":"D1","level":"warning","message":{"text":"ReposCommand.run (cyclomatic 20): ReposCommand.run has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/ReposCommand.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a85ca02c93fc7e30d080fa9749f6a62b93cf3edc4b27c9c51e4708b0bcbfa0"}},{"ruleId":"D1","level":"warning","message":{"text":"publish-release.main (cyclomatic 20): publish-release.main has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/scripts/publish-release.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fa94294edf5c434d36dd73604be02f76b57f909a0e926415d39dfd47841770"}},{"ruleId":"D1","level":"warning","message":{"text":"StatusBarMenuBuilder.actionsLimitsSubmenu (cyclomatic 19): StatusBarMenuBuilder.actionsLimitsSubmenu has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuBuilder\u002BMenuItems.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6aaaa35cb244ebe265487f300a95cf4de585d35e9ed3caf43603681720ac9b2"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalProjectsService.snapshot (cyclomatic 19): LocalProjectsService.snapshot has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2540ecc1343526553f6c69dddf51bd72c7e641acaf3b114039b3400dc1b7e6"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsSupport.swift.settingsSummaryLines (cyclomatic 19): SettingsSupport.swift.settingsSummaryLines has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: SettingsKey.init (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/SettingsSupport.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a75b0f83db9f82222f4bed6a9ed00894d62438aa2fb333e80c43e367fb6abb5"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenStore.scanFileAccountIDs (cyclomatic 18): TokenStore.scanFileAccountIDs has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Auth/TokenStore.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c18d1f386fe7d6751857b8a9ccc55b7f3296840d8d36363195cc488e223420"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryPipeline.apply (cyclomatic 18): RepositoryPipeline.apply has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/RepositoryPipeline.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"332eb14eed969d4369a9792a15f9798eea0c5b9ba2e22a2a85bc16854e7086fd"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalRepoManager.partitionStatusesToRefresh (cyclomatic 17): LocalRepoManager.partitionStatusesToRefresh has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Support/LocalRepoManager.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"5654cebf4328da9a54bb7da61d9b2abd0ee0f27e0ee70c94144159132c0ed950"}},{"ruleId":"D1","level":"warning","message":{"text":"RateLimitStatusFormatter.sections (cyclomatic 17): RateLimitStatusFormatter.sections has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/RateLimitStatusFormatter.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7211af79bccff450734b2ca1e3633738192036249ef14f9bfafa7718492eb6"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalGitService.swift.dirtyCounts (cyclomatic 17): LocalGitService.swift.dirtyCounts has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d471778366fcdc75d2364e68760a30aa3f43510090b6436a239f24e6cfcb20"}},{"ruleId":"D1","level":"warning","message":{"text":"RecentItemsOutput.swift.recentItemsTableLines (cyclomatic 17): RecentItemsOutput.swift.recentItemsTableLines has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentItemsOutput.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56a72037518a7454714140048c0644d98e994b04c79e8d29fe05835b43b15b3"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.migrateLegacyAccountIfNeeded (cyclomatic 16): AppState.migrateLegacyAccountIfNeeded has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState\u002BAccounts.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ab30a59f6a5a155691f4596fb496981b95cd3ef34231c0bdf21da93959e5c9"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubReferenceTranslator.normalQueries (cyclomatic 16): GitHubReferenceTranslator.normalQueries has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the 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":"Sources/RepoBarCore/Support/GitHubReferenceTranslator.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde32065d47ff81482562cc5edd15f26014c2c428702b7f823a32a3d5f7d62d3"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoAutocompleteScoring.score (cyclomatic 16): RepoAutocompleteScoring.score has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/RepoAutocompleteScoring.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b84074a493162abf6da1d3fc5361dc725d9611d86c46a2d089291e11a82d1a"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalProjectsService.swift.parseDirtyCounts (cyclomatic 16): LocalProjectsService.swift.parseDirtyCounts has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbbe292d6ad88d0abcb26d2298b4b6a852376d0c5070231deac36415b5736dd"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsSupport.swift.applySetting (cognitive 59): SettingsSupport.swift.applySetting has cognitive complexity 59 (threshold 15). Drivers by points: ternaries 18 (36 pts), if/else 10 (16 pts), match/switch 4 (7 pts) (nesting depth added 27). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/SettingsSupport.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40be8d667b2d528d5db9314dac04636745a7cb7a51a1ac5148843b762dc172f"}},{"ruleId":"D2","level":"warning","message":{"text":"CLIArgumentNormalizer.normalize (cognitive 53): CLIArgumentNormalizer.normalize has cognitive complexity 53 (threshold 15). Drivers by points: if/else 25 (31 pts), match/switch 6 (12 pts), boolean chains 10 (nesting depth added 12). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/CLIArgumentNormalizer.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0ce6c17a3ef9870e056851b53a8cfb1a668d83703f3779f03dc416245cc9d1"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountSettingsView.body (cognitive 52): AccountSettingsView.body has cognitive complexity 52 (threshold 15). Drivers by points: if/else 22 (39 pts), ternaries 3 (9 pts), boolean chains 3, match/switch 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Settings/AccountSettingsView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8c9086ca7d58a1da9edd44615a37fd5851e1fc01786852afa20462a81d3f9c"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusBarMenuBuilder.mainMenuItems (cognitive 48): StatusBarMenuBuilder.mainMenuItems has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16 (33 pts), boolean chains 6, match/switch 3 (5 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 21). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"edba4594df320a62a2c241f9ec6495f8676a635f43bd753ce74a6b02d5d12c59"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoSubmenuBuilder.repoSubmenuItems (cognitive 45): RepoSubmenuBuilder.repoSubmenuItems has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (33 pts), ternaries 3 (7 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 22). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"824eb6180eacc73516c8107088505fb5fedc0352260c00400b9b9b468d634f90"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubPullRequestNotificationDetector.events (cognitive 40): GitHubPullRequestNotificationDetector.events has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (31 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationDetector.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99fb71920df0aad77600cfe3d8d6ccfbed1cdd3a88e4fb283fd87cc530f39f2"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalProjectsService.snapshot (cognitive 39): LocalProjectsService.snapshot has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (29 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b721da7ec9c63cb6aded8609bd4cee37cedff00411936f2703440f5305954e9"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubReferenceTranslator.repositoryHeadingListBlockParse (cognitive 39): GitHubReferenceTranslator.repositoryHeadingListBlockParse has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (33 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BRepositoryHeadingBlocks.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c435f6a9f195910759ea11f7027101b871a0cf618767894905be383902f26a"}},{"ruleId":"D2","level":"warning","message":{"text":"CLIOutput.swift.tableLines (cognitive 39): CLIOutput.swift.tableLines has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 15 (30 pts), if/else 5 (8 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/CLIOutput.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c91e2692f042fadaee42b8f673e39c17241c79e310ede88c24867d83f52800c"}},{"ruleId":"D2","level":"warning","message":{"text":"IssueNavigatorModel.performSearch (cognitive 38): IssueNavigatorModel.performSearch has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (23 pts), error handling 4 (6 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/IssueNavigatorModel.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4165ccb8f482e3e778f831af9ae47aa63ad2663792a54db75c07abfd0610de5"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoDetailCoordinator.fullRepository (cognitive 34): RepoDetailCoordinator.fullRepository has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 6 (8 pts), match/switch 5, boolean chains 4, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/RepoDetailCoordinator.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"739c1a7749a9fbdc2c5738f24bad30ba82696f875bf9b865ba6bf5836420c2d6"}},{"ruleId":"D2","level":"warning","message":{"text":"RecentListsOutput.swift.recentTableLines (cognitive 31): RecentListsOutput.swift.recentTableLines has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 9, ternaries 4 (9 pts), loops 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":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefe7b78d605dd2128a130de70108c1653e1597ead8dc7147fab8d9522cdecbb"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusBarMenuBuilder.actionsLimitsSubmenu (cognitive 30): StatusBarMenuBuilder.actionsLimitsSubmenu has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 6, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuBuilder\u002BMenuItems.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb7e079074ba2c8118ecca4b2877f4dfc2eca13899eae18e19e7e293bd0fff5"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenStore.scanFileAccountIDs (cognitive 30): TokenStore.scanFileAccountIDs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 7, loops 3 (6 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Auth/TokenStore.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e71f68e71c92574a13b5d695cc126337c6fd76bb0f02a81fbbbe40a3f6e127"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubReferenceTranslator.normalQueries (cognitive 28): GitHubReferenceTranslator.normalQueries has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 9 (14 pts) (nesting depth added 13). Of this number, 27 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c864db136b9a11f39c2a99c44feb67a9fc3e5b224ae0f23157b07570b4507026"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenStore.scanKeychainAccountIDs (cognitive 27): TokenStore.scanKeychainAccountIDs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Auth/TokenStore.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"c071e5447bdb3b2ee0ff9bfd0969951a28acc2cf3a0e8c287f7b87e55290dc8d"}},{"ruleId":"D2","level":"warning","message":{"text":"RecentItemsOutput.swift.recentItemsTableLines (cognitive 27): RecentItemsOutput.swift.recentItemsTableLines has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 6 (9 pts), boolean chains 4, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentItemsOutput.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a4fa0a4d185342930f3d907149905f813d19c5993eaee105103429385e381f"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalRepoManager.partitionStatusesToRefresh (cognitive 26): LocalRepoManager.partitionStatusesToRefresh has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 6, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Support/LocalRepoManager.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9974b13b61d1076c89db63fd91a05930033cbdb4a59108742fede27153c21d4"}},{"ruleId":"D2","level":"warning","message":{"text":"RateLimitStatusFormatter.sections (cognitive 26): RateLimitStatusFormatter.sections has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 2, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/RateLimitStatusFormatter.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c817c1652f5a8ec03f214cc5d42c3b34befbeffd64cc2d8d43f8d828999f2477"}},{"ruleId":"D2","level":"warning","message":{"text":"RecentListMenuCoordinator.renderRecentItems (cognitive 25): RecentListMenuCoordinator.renderRecentItems has cognitive complexity 25 (threshold 15). Drivers by points: loops 9 (18 pts), if/else 3 (6 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/RecentListMenuCoordinator.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f4dfc200bea21a915d6fc8ee219fb48415b0cbf94e7199cc6807def3bd63ba"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoDetailModel.message (cognitive 25): RepoDetailModel.message has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, match/switch 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/Models/RepoDetailModel.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d9701ec859c966c494be2c84ca31c474a235c9688f4f48ca03d3ee63966cad"}},{"ruleId":"D2","level":"warning","message":{"text":"ReposCommand.run (cognitive 25): ReposCommand.run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 5, match/switch 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/ReposCommand.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3301bb515c9a966528c57a21a61ff1cfca667f4fa374755123aa3007b4f5e61"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubReferenceTranslator.urlReference (cognitive 24): GitHubReferenceTranslator.urlReference has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 7, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BURLs.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c8f6fbce7f57529539a6db148026e6307a74d44391857d90d0f22843b15b99"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalGitService.swift.dirtyCounts (cognitive 23): LocalGitService.swift.dirtyCounts has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 6, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2a07de68f5ecb18109ef6e95cff9c6d904b6f24a33914f2810c63567a19592"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusCommand.run (cognitive 23): StatusCommand.run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 1 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/StatusCommand.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0ebb04a858f51c856e757343280cdb5d05a36e660ea7b0046ba6ea9d60b1be"}},{"ruleId":"D2","level":"warning","message":{"text":"publish-release.main (cognitive 23): publish-release.main has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4, loops 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/scripts/publish-release.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdadca27ad1d12252b40e4e17e1d5387190f651556238d970b6113836a20b8ae"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.referenceMatches (cognitive 22): AppState.referenceMatches has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 4 (6 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState\u002BGitHubReferences.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6811d2bfde0b69b6f67a563b9c8b5cac32111b1639d762dbfc8b232e999a699"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.refresh (cognitive 22): AppState.refresh has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 3, match/switch 1 (2 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState\u002BRefresh.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9e8b70f501becd0889171237422668856af89926ce37d6e48abf409793e0d0"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalProjectsService.swift.parseDirtyCounts (cognitive 22): LocalProjectsService.swift.parseDirtyCounts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 6, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2e1ad501fd5aec42af7d7e7426a03caead8f01c0e9d317f334f5d15d7be248"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubReleaseNotificationDetector.events (cognitive 21): GitHubReleaseNotificationDetector.events has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Notifications/GitHubReleaseNotificationDetector.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3855116c376fad405b5fcea7767427e74348e4b16ad808d13f13b46a7ac58502"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubReferenceTranslator.repositoryContext (cognitive 21): GitHubReferenceTranslator.repositoryContext has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (nesting depth added 8). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BContext.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ca380128d03e2d598c6845fdc0cebc49a2b679c8e0688e224b35619b61d637"}},{"ruleId":"D2","level":"warning","message":{"text":"ArchivesAddCommand.archiveSource (cognitive 21): ArchivesAddCommand.archiveSource has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7, ternaries 3 (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":"Sources/repobarcli/ArchiveCommands.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0452ae8552626721c80e33e4998b7b1294f24716c94d29de09405d7774fa26"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalGitMenuCoordinator.populateCombinedBranchMenu (cognitive 20): LocalGitMenuCoordinator.populateCombinedBranchMenu has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (5 pts), ternaries 1 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d05e164df8c406a48e92f76cfa84e6874f48811637fe4c0056ff704ef18622"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoAutocompleteScoring.score (cognitive 20): RepoAutocompleteScoring.score has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 3, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/RepoAutocompleteScoring.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde8f90ef298dedf944b221e9669f67eb28bfb1e9ee94206641fb72f69b47060"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityCommand.run (cognitive 20): ActivityCommand.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentListCommands.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e39920b779d4eee3e6b68261c9e4704e858ce7c02b772803a597de5e3746ee"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountSettingsView.login (cognitive 19): AccountSettingsView.login has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, ternaries 4 (5 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Settings/AccountSettingsView.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e87e29aa3bf07795880eb0bcf2eaf8c9dea3ec439c19dffd35f1e778db643ac"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubReferenceTranslator.repeatedLineScopedIssueNumberMatches (cognitive 19): GitHubReferenceTranslator.repeatedLineScopedIssueNumberMatches has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BLineScoped.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c870085b49a0d9de732ea976cc06418c4405a99cc0310fd415eba9fb434f88"}},{"ruleId":"D2","level":"warning","message":{"text":"RateLimitStatusFormatter.rateLimitRow (cognitive 19): RateLimitStatusFormatter.rateLimitRow has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 4 (5 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/RateLimitStatusFormatter.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0a761445caec90fa4641818ade5cd1eb9e92649fdb62db1b2198d4f92c8dce"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryPipeline.apply (cognitive 19): RepositoryPipeline.apply has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/RepositoryPipeline.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e0b22726887f2b3a20287e764975c463cdadb1386df330a7a071d289d9f1dd"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalProjectsService.swift.parseDirtyFiles (cognitive 19): LocalProjectsService.swift.parseDirtyFiles has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 7, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98280cb4ed538cb8e220005219e41774efd484ef4700e81daec27fafb263285"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoCommand.run (cognitive 19): RepoCommand.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 3 (6 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/VerifyCommands.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a4d0229ceb1095c236df1682f8f617dcd458d5f403e387d0f0bb3ac877f1ad"}},{"ruleId":"D2","level":"warning","message":{"text":"release-handoff.main (cognitive 19): release-handoff.main has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/scripts/release-handoff.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63369ce9ebac55ddfbf71ab088c64dce4b18425ec31b3cef55c3347586b7c3e"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusBarMenuBuilder.rateLimitsSubmenu (cognitive 18): StatusBarMenuBuilder.rateLimitsSubmenu has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuBuilder\u002BMenuItems.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb5ab7db3377ba4e8298eba370adb58b0442904e36d8938f496b98b085fe156"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubReferenceTranslator.contextualBareIssueQueries (cognitive 18): GitHubReferenceTranslator.contextualBareIssueQueries has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BContext.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"3448d12f1c5a60a30d24d0b1a4a8df78957bf14dd085bbb2e0fa00e74169458d"}},{"ruleId":"D2","level":"warning","message":{"text":"RecentListsOutput.swift.globalCommitsTableLines (cognitive 18): RecentListsOutput.swift.globalCommitsTableLines has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 4 (7 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (RecentListsOutput.swift.globalActivityTableLines) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee54071dfe831e3529c8e0f4236f2f0569a56d6cf070dc419a2ff3409849cf2"}},{"ruleId":"D2","level":"warning","message":{"text":"RecentListsOutput.swift.globalActivityTableLines (cognitive 18): RecentListsOutput.swift.globalActivityTableLines has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 4 (7 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (RecentListsOutput.swift.globalCommitsTableLines) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f89091ec32b47226d36693e879ddf0b825f2ec614aa04b13ea1174d43f8f158"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsSupport.swift.settingsSummaryLines (cognitive 18): SettingsSupport.swift.settingsSummaryLines has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 18. 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":"Sources/repobarcli/SettingsSupport.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d156d1a53be36f0f21f99edb990c8f90bfb99e7d4333c0e02a8d3a6c1414bd8"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.migrateLegacyAccountIfNeeded (cognitive 17): AppState.migrateLegacyAccountIfNeeded has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, boolean chains 5, ternaries 3 (4 pts), error handling 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":"Sources/RepoBar/App/AppState\u002BAccounts.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"85de58f48e9acfb5bd8658b2a42fc0b5bb5101f62b9768cbdb468669503a426e"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.searchIssueReferences (cognitive 17): AppState.searchIssueReferences has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (5 pts), loops 3 (5 pts), error handling 1 (3 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState\u002BIssueNavigation.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"409ac2ffde81a30046e1eaa757d33e74320f41fc2b80c712a7f4ec2513b59d3e"}},{"ruleId":"D2","level":"warning","message":{"text":"IssueNavigatorModel.loadAISummaries (cognitive 17): IssueNavigatorModel.loadAISummaries has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/IssueNavigatorModel.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0494e1807d237686ad5ae17ad73b93a85db75e5de65bd6481e23e28e4f8e0ff"}},{"ruleId":"D2","level":"warning","message":{"text":"AboutSettingsView.body (cognitive 17): AboutSettingsView.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Settings/About/AboutSettingsView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"209546d0a9d0ca08c5f4a34391fc2b01fa4d9b7a4cbd406c9d45bccdf1c39168"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalProjectsService.findGitRepos::scan (cognitive 17): LocalProjectsService.findGitRepos::scan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"af177c728339f0110a57dd19ec740a601fa80aa27924503d8faaf59f33eece62"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubReferenceTranslator.isRepositoryHeadingSummary (cognitive 17): GitHubReferenceTranslator.isRepositoryHeadingSummary has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BRepositoryHeadingBlocks.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1c224416870d9e27812b555ad71b591a63e3189c6c306efd40f035ee545d64"}},{"ruleId":"D2","level":"warning","message":{"text":"RateLimitStatusFormatter.currentBlockerRows (cognitive 17): RateLimitStatusFormatter.currentBlockerRows has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (10 pts), boolean chains 3, if/else 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/RateLimitStatusFormatter.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"2261d8c426d18219597386a2dbe8d680ebf0f3b498c40ac49aec355a203250c2"}},{"ruleId":"D2","level":"warning","message":{"text":"ArchivesStatusCommand.run (cognitive 17): ArchivesStatusCommand.run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 4 (8 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/ArchiveCommands.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e9384db749bc04ca3f805d23ac82b003c29f5bd497825cce247b8783493597"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusCommand.runLegacy (cognitive 17): StatusCommand.runLegacy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/StatusCommand.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d7a62cdacb540407c1ee5697b4487aacce13d0b3879238004932690fc80e25"}},{"ruleId":"D2","level":"warning","message":{"text":"RecentListsOutput.swift.commitsWithRepoTableLines (cognitive 17): RecentListsOutput.swift.commitsWithRepoTableLines has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 4 (6 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"74923c1941d5d5491a9ee313fbc512dd346056e0213ddfdc00e195224d269f27"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderPayload.renderImage (cognitive 16): RenderPayload.renderImage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (7 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/HeatmapRasterView.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"728cbf95e7c13915f57ce93e22d3ea511e9874358fd8a2f090b51203016f9d74"}},{"ruleId":"D2","level":"warning","message":{"text":"GraphQLClient.repoSummary (cognitive 16): GraphQLClient.repoSummary has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 6, error handling 1, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (GraphQLClient.userContributionHeatmap) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GraphQLClient.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea722dad56526262dfcd50f60789b90a58fff5711a5f5278ba49dee3c32a98d"}},{"ruleId":"D2","level":"warning","message":{"text":"GraphQLClient.userContributionHeatmap (cognitive 16): GraphQLClient.userContributionHeatmap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 6, error handling 1, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (GraphQLClient.repoSummary) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GraphQLClient.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e66b0a1eadee263159f3f33eec63a70013850db167b69fccac1d3fe4df44361"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubReferenceTranslator.spacedRepositoryHeadingSentenceQueries (cognitive 16): GitHubReferenceTranslator.spacedRepositoryHeadingSentenceQueries has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BHeadingReferences.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"157d3b34407355671d99e96d40ee53e2faff46512993048822787e6675a82115"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubReferenceTranslator.queriesMergingRepositoryHeadingListBlocks (cognitive 16): GitHubReferenceTranslator.queriesMergingRepositoryHeadingListBlocks has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (9 pts), if/else 5 (7 pts) (nesting depth added 7). Of this number, 10 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BRepositoryHeadingBlocks.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d7d8dacc69ecac265aebde0f692c6f197dbe50fa1ecf40a0a82268656ca887"}},{"ruleId":"D2","level":"warning","message":{"text":"CommitsCommand.run (cognitive 16): CommitsCommand.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentListCommands.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cb89497d74df6280b55f1b24e9e2389765fe6f9c61324ea05b697d8e8eca5c"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalActionsSupport.swift.resolveLocalRepoTarget (cognitive 16): LocalActionsSupport.swift.resolveLocalRepoTarget has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/LocalActionsSupport.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"af45824a4960c90ac2760443272c622e99dc4c94c90f0bee365382d5cfa064d0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppState: TooManyMethods \u2014 112 methods, declared across 12 files: App/AppState\u002BRefresh.swift (19), App/AppState.swift (17), App/AppState\u002BAccounts.swift (12), App/AppState\u002BGitHubReferences.swift (12), \u002B8 more file(s). The bar is 30 methods; this is 82 over it, 3.73\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee96cc20c839011eb04c18f8b6de04215ae51a6ed84d8bedecc587d69d37e97"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatusBarMenuManager: TooManyMethods \u2014 107 methods, declared across 3 files: StatusBar/StatusBarMenuManager.swift (51), StatusBar/StatusBarMenuManager\u002BActions.swift (40), StatusBar/StatusBarMenuManager\u002BMenuLifecycle.swift (16). The bar is 30 methods; this is 77 over it, 3.57\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuManager.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfb42bdc6ff0f85d4e19d2ad876cfbd73254220dd8540f528c08f92a61839ee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GitHubRestAPI: TooManyMethods \u2014 76 methods, declared across 4 files: API/GitHubRestAPI.swift (41), API/GitHubRestAPI\u002BReferenceLookup.swift (19), API/GitHubRestAPI\u002BActions.swift (11), API/GitHubRestAPI\u002BPullRequests.swift (5). The bar is 30 methods; this is 46 over it, 2.53\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1501001ba62275aad166715fc034a6cac09999ceb57bac277323a05cd71e66"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepoDetailView.body: MethodTooLong \u2014 body runs 242 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 142 over it, 2.42\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":"RepoBariOS/Sources/Views/RepoDetailView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2634b054bd4d4906a8b1fff5fa5da7644c13c9dbb0b009be6c08770e654d5fb9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GitHubClient: TooManyMethods \u2014 70 methods, declared across 2 files: API/GitHubClient.swift (59), API/GitHubClient\u002BHelpers.swift (11). The bar is 30 methods; this is 40 over it, 2.33\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubClient.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3401f07187c141c30ea0422efb0189ac7a22e29743b3fb3f5818ed3747decce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdvancedSettingsView.body: MethodTooLong \u2014 body runs 224 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 124 over it, 2.24\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":"Sources/RepoBar/Settings/AdvancedSettingsView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f849a79372cac5bef818c19b0ad982ac1739021f8eaed12e2ec4eaa3aca0035"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepoSubmenuBuilder.repoSubmenuItems: MethodTooLong \u2014 repoSubmenuItems runs 215 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 115 over it, 2.15\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":"Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"403841b8689c5934fcd11c90a213162dc916b5ea1c456022e90040ffce7e8e38"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AccountSettingsView.body: MethodTooLong \u2014 body runs 189 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\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":"Sources/RepoBar/Settings/AccountSettingsView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"99816ab855d5e9df6367882890730e79f9e76ed1ae9e731c246c847079d2cd16"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RecentListMenuCoordinator: TooManyMethods \u2014 50 methods, declared across 2 files: StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift (26), StatusBar/RecentListMenuCoordinator.swift (24). The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/RecentListMenuCoordinator.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"496be944b560c3415ec695b3f1c85cde55f089e2de9ece7241a9755694ce871f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SettingsSupport.swift.applySetting: FunctionTooLong \u2014 applySetting runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\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":"Sources/repobarcli/SettingsSupport.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b17f6b4a365e96e15e5105a0eebfd724d7259d931d250f4683aebacfe54186"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TokenStore: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\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":"Sources/RepoBarCore/Auth/TokenStore.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc8f5bcc6f42e85f91f899edfb5e8ec2706cb4ab2468f4a2bc10979dfab0a77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepoDetailCoordinator.fullRepository: MethodTooLong \u2014 fullRepository runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"Sources/RepoBarCore/API/RepoDetailCoordinator.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc20b4f86368085c24dcb1db3e4098668e51d94c07511b1d09ba5828082b965d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatusBarMenuBuilder: TooManyMethods \u2014 40 methods, declared across 4 files: StatusBar/StatusBarMenuBuilder\u002BMenuItems.swift (19), StatusBar/StatusBarMenuBuilder.swift (17), StatusBar/StatusBarMenuBuilder\u002BActivity.swift (3), StatusBar/StatusBarMenuBuilder\u002BRepoSubmenus.swift (1). The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"e666ccd8341bf411d327c99ace212bac917fb67cd31d4ebfb926fa7aa3064b7d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StatusBarMenuBuilder.mainMenuItems: MethodTooLong \u2014 mainMenuItems runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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":"Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"28937e3a8ddec138d658cd9af45705f5927dd7d2f2e17c063eddf710e15af7a5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LocalGitMenuCoordinator: ClassTooLong \u2014 492 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 92 over it, 1.23\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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fa7a2a057dab533e192945ced46675f79f13ef201c3610c36a0336d922bd49"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GitHubReferenceTranslator.repositoryHeadingListBlockParse: MethodTooLong \u2014 repositoryHeadingListBlockParse runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BRepositoryHeadingBlocks.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa48cd72fbff6b0d26e9d5814096db956505991dd651e32c5e0cd0cf4e735c84"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitHubRestAPI: ClassTooLong \u2014 486 significant lines (blank, comment-only and punctuation-only lines excluded), 76 methods. The bar is 400 significant lines; this is 86 over it, 1.22\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"de903f42468a5ae51c977dcbb3a3d93c708a7ed8231afd8a46a02d23b4afb0ae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocalGitMenuCoordinator: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e5652d31948e6e1ff9f2eff49bf480f1cd3195042babab76ae3dc6754582e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: API/GitHubRestAPI.swift: FileTooLong \u2014 582 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: GitHubRestAPI (10-655). The bar is 500 significant lines; this is 82 over it, 1.16\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8ff298bc7ff1f632811a5a1a7a090c0042413e8efd83c6122b5dbde2958d55"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepoSettingsView.body: MethodTooLong \u2014 body runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Settings/RepoSettingsView.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc6bf546bf59e7b917c4ca6f69958c3a78325b00ab9bd6c059606b2298f2be7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: StatusBar/LocalGitMenuCoordinator.swift: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: LocalGitMenuCoordinator (7-660). The bar is 500 significant lines; this is 49 over it, 1.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52a17bc9708578abbd86e3fe2888f90af1bf7005a521d41dedeed2b8340b14c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RecentMenuService.descriptors: MethodTooLong \u2014 descriptors runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\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":"Sources/RepoBar/StatusBar/RecentMenuService.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f6b50e75e6f4176fe8c0fc9f366db56b4b1287fdbec58b8d391fff8067d483"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GitHubReferenceStatusCoordinator: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/GitHubReferenceStatusCoordinator.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"62657c88436b71ed54eb24f7613f5272ce4b1e318d296ee879383d25b8587000"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AdvancedSettingsView: ClassTooLong \u2014 415 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 15 over it, 1.04\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":"Sources/RepoBar/Settings/AdvancedSettingsView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1828115c394f1999566cdbf49b212287482597b3d73cad0a7e4c301748900601"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): Sources/RepoBarCore/API/GraphQLClient.swift:58-126 | Sources/RepoBarCore/API/GraphQLClient.swift:153-227 \u2014 These two members are variants of one another: 32 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GraphQLClient.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"438b30d8e6c6d9c6af6ceebe2afcb86f473c205882f9686c1e4356d478adb351"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (30 shared lines): Sources/repobarcli/LocalListsOutput.swift:4-68 | Sources/repobarcli/LocalListsOutput.swift:70-133 \u2014 These two members are variants of one another: 30 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/LocalListsOutput.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5603ad40e83e3d92225902f807f1c24e2ff74af880b39f6569bf076f9ac6d223"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (21 shared lines): RepoBariOS/Sources/Auth/OAuthCoordinator.swift:26-87 | Sources/RepoBarCore/Auth/OAuthLoginFlow.swift:50-114 \u2014 These two members are variants of one another: 21 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/Auth/OAuthCoordinator.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f13a3c48d5b057c6f9248e54e3dd9d5953ab845392fd5de738f51a49080b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): Sources/repobarcli/RecentListCommands.swift:22-29 | Sources/repobarcli/RecentListCommands.swift:76-83 | Sources/repobarcli/RecentListCommands.swift:130-137 | Sources/repobarcli/RecentListCommands.swift:184-191 | Sources/repobarcli/RecentListCommands.swift:238-245 | Sources/repobarcli/RecentListCommands.swift:292-299 | Sources/repobarcli/VerifyCommands.swift:186-194 | Sources/repobarcli/VerifyCommands.swift:258-266 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentListCommands.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"16765a6409a6336b6dcfdc101d9b70ec5db5d2b1f08b1539cebbc647175858c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/RepoBar/Views/CommitMenuItemView.swift:59-71 | Sources/RepoBar/Views/DiscussionMenuItemView.swift:51-63 | Sources/RepoBar/Views/IssueMenuItemView.swift:54-66 | Sources/RepoBar/Views/PullRequestMenuItemView.swift:70-82 | Sources/RepoBar/Views/ReleaseMenuItemView.swift:58-70 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/CommitMenuItemView.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc568825dfd99c24ef8e73cfff6d6d9a7bd3da285628996a366c9a5e3a4a3d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/RepoBar/StatusBar/ActivityMenuCoordinator.swift:113-124 | Sources/RepoBar/StatusBar/ActivityMenuCoordinator.swift:126-137 | Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift:489-500 | Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift:502-513 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/ActivityMenuCoordinator.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4e9d9dffe26925f6d9fef7160425c51c2a17a66b6b5681a5e912ed06d75c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/RepoBar/Views/DiscussionMenuItemView.swift:10-48 | Sources/RepoBar/Views/IssueMenuItemView.swift:10-51 | Sources/RepoBar/Views/PullRequestMenuItemView.swift:10-67 | Sources/RepoBar/Views/ReleaseMenuItemView.swift:10-55 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/DiscussionMenuItemView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4795a7587a0820a2e7537ccf957251ca9648e7da4b9587737d6b94502077400"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/RepoBarCore/API/GitHubRecentDecoders.swift:247-262 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:464-479 | Sources/RepoBarCore/API/GitHubSearchModels.swift:143-158 | Sources/RepoBarCore/Support/PullRequestAISummarizer.swift:119-141 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRecentDecoders.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3dd7e79c8b9402c4f327a043ae40a391bdc3e4d38519b99dc299cff3e8ac49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 58\u002B corresponding lines): Sources/repobarcli/RecentListsOutput.swift:250-307 | Sources/repobarcli/RecentListsOutput.swift:309-373 | Sources/repobarcli/RecentListsOutput.swift:489-548 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 58 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":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acec2e568c96436389166647bdd991fda67b44122b9f90cdc2e06cf119d2f9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): Sources/repobarcli/RecentListCommands.swift:363-418 | Sources/repobarcli/RecentListCommands.swift:459-537 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentListCommands.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"604476c6c1a637d774e7923aa64ba5536bee4e1b4ffe3a7ef8e2c126bdab3b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Sources/RepoBarCore/LocalProjects/LocalGitService.swift:334-381 | Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift:385-425 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92d3b97f312ca706f2591c35035cbee2eac6055cfc6bb3b63b57fc5acb4b79a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/RepoBarCore/API/GitHubRequestRunner.swift:306-329 | Sources/RepoBarCore/API/GraphQLClient.swift:253-271 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRequestRunner.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"4674d398a7395e7e307cb7a0769eb1acb20bf6fcaca0e16db8217a617cab8c26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): RepoBariOS/Sources/App/AppModel.swift:446-504 | Sources/RepoBar/App/AppState\u002BActivity.swift:11-68 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c682b0d478ac089918cc096216e01adab197f131bae8c0853d6e6baca3b98b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Sources/RepoBarCore/API/GitHubRestAPI\u002BPullRequests.swift:82-116 | Sources/RepoBarCore/API/GitHubRestAPI.swift:526-558 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BPullRequests.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"40127157baadc3cf3c55c664d31c9387990a2b591d30e37733329f6507af9fc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Sources/RepoBar/Views/MenuLabelChipsView.swift:23-54 | Sources/RepoBar/Views/RecentIssueFiltersView.swift:83-119 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/MenuLabelChipsView.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b73a2214c29c608de259cc6564fd2f7a7603cd2dbf112fcc622e161a527a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Sources/repobarcli/VerifyCommands.swift:196-235 | Sources/repobarcli/VerifyCommands.swift:268-308 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"Sources/repobarcli/VerifyCommands.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a226e6a62a303a075835b325b51b574e34b72655940786bc5b3576d9cb70650"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Sources/RepoBar/Support/GitHubPullRequestNotificationRunner.swift:14-56 | Sources/RepoBar/Support/GitHubReleaseNotificationRunner.swift:16-68 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Support/GitHubPullRequestNotificationRunner.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e408aa64943f827c85b9123be0f6924e6b89fdfc655a63871ed54f46e59eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Sources/RepoBarCore/API/GitHubRestAPI.swift:174-206 | Sources/RepoBarCore/API/GitHubRestAPI.swift:208-243 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa01b514a0f68b74c534cc981a22aea8844772266646e784b4fc91cae3aa1d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/RepoBar/Views/MenuFilterViews.swift:162-200 | Sources/RepoBar/Views/RecentIssueFiltersView.swift:8-38 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"Sources/RepoBar/Views/MenuFilterViews.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fb242a17486a62692aefca05d5c49e8af871b2645b2fd748f134b33aae0955"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/RepoBar/Settings/AccountSettingsView\u002BTokenValidation.swift:6-33 | Sources/RepoBar/Settings/AccountSettingsView\u002BTokenValidation.swift:35-64 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"Sources/RepoBar/Settings/AccountSettingsView\u002BTokenValidation.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5957637a5afaf8cc41434e1e01ef7f9d1ccfb26f18f81824b66135bbf9e759e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:12-35 | Sources/RepoBar/Views/MenuBannerViews.swift:116-139 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/ActionsLimitsMenuViews.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c0ed61fb1923656c058383b03ed2f5f305c606d7a21b87d18b4cefafd3ed13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 26\u002B corresponding lines): Sources/repobarcli/RecentListCommands.swift:31-56 | Sources/repobarcli/RecentListCommands.swift:85-110 | Sources/repobarcli/RecentListCommands.swift:139-164 | Sources/repobarcli/RecentListCommands.swift:193-218 | Sources/repobarcli/RecentListCommands.swift:247-272 | Sources/repobarcli/RecentListCommands.swift:301-326 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 26 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":"Sources/repobarcli/RecentListCommands.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3e171edbc7fe4d09360ab484a376a58610b4de6123dcaa2df61ac860c94bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Sources/RepoBar/Support/GitHubPullRequestNotificationRunner.swift:62-99 | Sources/RepoBar/Support/GitHubReleaseNotificationRunner.swift:74-108 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Sources/RepoBar/Support/GitHubPullRequestNotificationRunner.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5228e33a915c3486e6f934ae075f9c4dd93178dd426ddb13e10718e10a6e8f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:144-179 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:181-215 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3b19d8e9edeaf93893fdf0dda52a3b9a70e74e516857b08819d6f48201ed39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): RepoBariOS/Sources/App/AppModel.swift:506-528 | Sources/RepoBarCore/Support/GlobalActivityMerger.swift:16-41 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc19a379cdf9fc78092b15007cf9688e97eda9a63d8b5660c8ba4c82c6901674"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): RepoBariOS/Sources/Views/ActivityView.swift:91-113 | Sources/RepoBar/StatusBar/ActivityMenuCoordinator.swift:88-111 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/Views/ActivityView.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1adf5c438095210f9576d5546c8b8535115921af62b6abe82244c657d6e419"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/RepoBar/Views/LocalRepoStateMenuView.swift:94-115 | Sources/RepoBar/Views/MenuItemViews.swift:178-198 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/LocalRepoStateMenuView.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"4102a5056002b7dcb5e3a58f07bfeebdded1b4f0fb2d7a9c1215bec1973161fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/repobarcli/LocalActionsCommands.swift:178-201 | Sources/repobarcli/LocalActionsCommands.swift:226-248 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/LocalActionsCommands.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc617fdb9316b3792726a88426f8e60e66d48bda90d26b03e66ffb3f9f474d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 26\u002B corresponding lines): Sources/repobarcli/RecentListsOutput.swift:19-44 | Sources/repobarcli/RecentListsOutput.swift:78-103 | Sources/repobarcli/RecentListsOutput.swift:186-221 | Sources/repobarcli/RecentListsOutput.swift:223-248 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 26 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":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"30afcf76d3776bb59d38e5136402db58c25928fbfe9c4090ca3e5f07c18fce58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): RepoBariOS/Sources/App/AppModel.swift:391-411 | Sources/RepoBar/App/AppState\u002BRefresh.swift:259-286 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d85b775ba1f9ec6f6ca3dccec4ffa87708f1d3a6c51b306f976622a62189bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift:341-368 | Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift:370-391 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"5626ded11386e74a3ed56be48d7d282de1d06b6cb874b26a0677cf87d6747457"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/RepoBarCore/Auth/TokenStore.swift:312-340 | Sources/RepoBarCore/Auth/TokenStore.swift:342-371 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Auth/TokenStore.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1415b242d5cee110d8e17efd9d2846606494145e832da18302bd83f05725291"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BTokens.swift:65-87 | Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BTokens.swift:110-130 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BTokens.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c54b1216dfac90c98619fd7a884fcd5cbae33ef4afadfffc8c1ca04b36a1861"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/RepoBarCore/API/GitHubRestAPI\u002BPullRequests.swift:152-166 | Sources/RepoBarCore/API/GitHubRestAPI.swift:510-524 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BPullRequests.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6386f3289497e80c27e97a7ab3f2b15ac76587f816cf2778df8c7187fdd56f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/repobarcli/RecentItemsOutput.swift:12-37 | Sources/repobarcli/RecentItemsOutput.swift:39-65 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentItemsOutput.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cac4ab28b87902a1104dab3322fb5a6d0d05705eeb3a45fb23d3e888b24b77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/RepoBarCore/LocalProjects/LocalGitService.swift:281-293 | Sources/RepoBarCore/LocalProjects/LocalGitService.swift:295-313 | Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift:462-474 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"c107d9f8b4712572d99904a28e8f3a9b53f2344d831916e254e17e34914684f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:335-348 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:350-358 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:360-368 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a75fa7e490c3b443c434130e486bfc098a710d0bab6f1e2b33c16826769536c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/RepoBarCore/API/GitHubRestAPI.swift:329-346 | Sources/RepoBarCore/API/GitHubRestAPI.swift:580-593 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a0ff845a152aef9e06b4a3780f3f333028379f4cf51b2956655e8bde4390df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BHeadingReferences.swift:305-333 | Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BHeadingReferences.swift:341-375 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BHeadingReferences.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"b007525f2137ab64feb2e16167a986300e7b2e381a0d2890e9bbff18b7b5397a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Sources/RepoBar/Views/BranchMenuItemView.swift:9-36 | Sources/RepoBar/Views/ReleaseAssetMenuItemView.swift:9-36 | Sources/RepoBar/Views/TagMenuItemView.swift:9-28 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"Sources/RepoBar/Views/BranchMenuItemView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0272690c36592a74e493fe38a6a0cdb3d22054b18b17ae391d35ac32790e512"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/RepoBarCore/Support/GitHubArchiveReader.swift:21-35 | Sources/RepoBarCore/Support/GitHubArchiveReader.swift:37-54 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubArchiveReader.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f00d6563b8564ef6c33267f03ec8a5ce4c930a8f5674815229b1788a176625"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:382-403 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:582-604 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff3c7eed67dbc2788f8fff53176d3c5416aec6e40fd9f4abfd83ee579e16c75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/repobarcli/LocalActionsCommands.swift:77-98 | Sources/repobarcli/LocalActionsCommands.swift:127-153 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/LocalActionsCommands.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2604923aeb686619e91a75024be454ddc28d3b117946e0b6a20d455b926272"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:510-519 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:342-351 \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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bad0f25e3fcfb304d465f3f7035ecdb6955a960d6f60c9c614de76dcff1d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): RepoBariOS/Sources/App/AppModel.swift:321-342 | Sources/RepoBar/App/AppState\u002BVisibility.swift:34-55 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"589266cce5656dda87b497b1afba0bbde404f8518b5cd676848765162604966f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/RepoBarCore/Support/GitHubReferenceLocalContext.swift:6-28 | Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BContext.swift:390-407 \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":"Sources/RepoBarCore/Support/GitHubReferenceLocalContext.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"2076274db8ac118bf7424b054f6bdf0af8cb4f97ac284537020bb2f3e0e1f7c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/RepoBarCore/API/GitHubRestAPI.swift:43-50 | Sources/RepoBarCore/API/GitHubRestAPI.swift:157-172 \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":"Sources/RepoBarCore/API/GitHubRestAPI.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae9dda5a24a9604d459b72d08853456cc574275bdcaf0d7e4bb7d2a8b85a5ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/RepoBar/Views/MenuLabelChipsView.swift:58-66 | Sources/RepoBar/Views/RecentIssueFiltersView.swift:123-133 \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":"Sources/RepoBar/Views/MenuLabelChipsView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc67a72690bba9aed24c90ca42f44c3adcd01c926e65d99d299b1630fb662ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/RepoBarCore/Support/GitHubArchiveStore.swift:220-231 | Sources/RepoBarCore/Support/GitHubArchiveStore.swift:233-244 \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":"Sources/RepoBarCore/Support/GitHubArchiveStore.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"49238fe7169ea631e3d7c91e0fe99677a51dd1612732f0dcf38d2ac4c05bb736"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/RepoBarCore/API/GitHubClient.swift:453-475 | Sources/RepoBarCore/API/GitHubClient.swift:477-487 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubClient.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ad316454d2d297dd426b4c997468829cff6579724d70c0acb10efdef750f75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift:14-28 | Sources/RepoBarCore/Support/RepoBarCacheDatabase.swift:135-150 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"04627c93071ae731d98cfc33b6afae160b59d003bd111fb32bf05f93b31707d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift:132-152 | Sources/RepoBarCore/Support/RepoBarCacheDatabase.swift:203-226 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01db82e3a70e4adac65e7ac4672f2ddc17b066d973c4107bbb7ca1a2bc3de10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/RepoBar/App/AppState\u002BActivity.swift:148-174 | Sources/RepoBarCore/Models/Repository\u002BFactory.swift:50-75 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState\u002BActivity.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce76bd9f934ab393249964d24d5e53bf8499c68cc0a2738ef4261c639d98a02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/repobarcli/RecentListsOutput.swift:105-129 | Sources/repobarcli/RecentListsOutput.swift:131-158 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"37544b0657628bae92bb52cb5461752f756b38620b22291bf5aaf63c45a1c8d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/RepoBar/Views/MenuBannerViews.swift:71-86 | Sources/RepoBar/Views/MenuBannerViews.swift:93-108 \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":"Sources/RepoBar/Views/MenuBannerViews.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e093e917b90f97831c15fb070df9a7c3b4a7fe17772bd74c942d61454ce5d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Sources/repobarcli/ArchiveCommands.swift:390-406 | Sources/repobarcli/ArchiveCommands.swift:435-450 | Sources/repobarcli/ArchiveCommands.swift:475-490 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Sources/repobarcli/ArchiveCommands.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d95dcd9769980ab96e391a9bde5b5ab0fab71a8fce538dc973bab990d816248"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/RepoBar/Settings/DisplaySettingsView.swift:39-56 | Sources/RepoBar/Settings/DisplaySettingsView.swift:58-75 \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":"Sources/RepoBar/Settings/DisplaySettingsView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9e35511e5a94a9182cce5e77e443fad91d9040b6e7ed778bd0b970f8afff2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 12\u002B corresponding lines): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:217-228 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:230-242 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:244-255 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:257-269 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:271-282 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:284-296 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 12 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":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b68940a2b89af1ee40d368b49ce38caee631a33312287b592c7329d8573f04e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:474-487 | Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:489-508 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebb090131cefc3015c9c14f5c08601f737ec5079e0c4292021d6c20e814da41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/RepoBar/App/AppState\u002BIssueNavigation.swift:88-101 | Sources/RepoBar/App/AppState\u002BIssueNavigation.swift:187-208 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState\u002BIssueNavigation.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a9426df1887669125247c63148096061bc6f1135d7214e935db78077331d89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:331-340 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:353-362 \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":"Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ad2c3f7642e2a33a1760e49652521b27cadafabf7e8dd01af9d18022914cc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift:31-42 | Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift:66-75 \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":"Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddb42029e294aae31098c7c184f3482745e158a7a39bc3ef1d7565a3f0f1665"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:259-274 | Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:290-305 \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":"Sources/RepoBar/Views/ActionsLimitsMenuViews.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"618a6701d2e3107486611b8eac85053530a8ff9c8b6bdf61dc343be4a8d87bd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): Sources/RepoBarCore/API/GitHubRestAPI\u002BActions.swift:115-131 | Sources/RepoBarCore/API/GitHubRestAPI\u002BActions.swift:133-147 | Sources/RepoBarCore/API/GitHubRestAPI\u002BActions.swift:149-160 | Sources/RepoBarCore/API/GitHubRestAPI.swift:119-130 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 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":"Sources/RepoBarCore/API/GitHubRestAPI\u002BActions.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7294cde6a2ed36f214c7bfeebc76f2bb5ed2f6d944722e666ae409ad947f8fc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationDetector.swift:108-113 | Sources/RepoBarCore/Notifications/GitHubReleaseNotificationDetector.swift:49-57 \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":"Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationDetector.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"03767b5a92b13ac74a90481711dd29e9638201b04eeeb6a775cad4721022569c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift:49-66 | Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift:82-100 \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":"Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"881b5a6dd01ba36773f59f4b07f7dfc49b380e8c9b0da18b8b16e181f48b8252"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift:68-81 | Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift:264-278 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2c6473aef405670eda434ea772735a639fd756395d8ee1e0f4aa1ccfddf9f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift:98-130 | Sources/RepoBarCore/Support/RepoBarCacheDatabase.swift:280-305 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"08183e690cceda32e2e115762b47a82aa3e56068148574081af34dd44e2d1ad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:441-454 | Sources/RepoBarCore/API/GitHubSearchModels.swift:99-118 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bdef577576d9ace077aed18f67822fffd2392b31a5c10443a726fc2d178d28b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/RepoBarCore/LocalProjects/LocalRepoStatus.swift:222-233 | Sources/RepoBarCore/LocalProjects/LocalRepoStatus.swift:235-250 \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":"Sources/RepoBarCore/LocalProjects/LocalRepoStatus.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"29640df375174a76e55a0a3d85bab024d2d95b3652942d7b346abd5d40c2c073"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): Sources/repobarcli/SettingsCommands.swift:27-45 | Sources/repobarcli/SettingsCommands.swift:70-85 | Sources/repobarcli/SettingsCommands.swift:110-128 | Sources/repobarcli/SettingsCommands.swift:153-168 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 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":"Sources/repobarcli/SettingsCommands.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a238a53c3378d786e7c29735615f8faac0a229a048b5c57c8753b5fc8574cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/RepoBarCore/LocalProjects/LocalGitService.swift:88-95 | Sources/RepoBarCore/LocalProjects/LocalGitService.swift:97-103 \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":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a36fac7e1546a2ae7c6cdfd8a2a9e047da8d57755f15539c22810aa8ee8954"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BTokens.swift:45-53 | Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BTokens.swift:55-63 \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":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BTokens.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"81520ce635f0daded97b91215dc09d1e848bf38c38323df5fcd8c48dafd945cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/RepoBar/Views/MenuBannerViews.swift:6-18 | Sources/RepoBar/Views/MenuBannerViews.swift:24-37 | Sources/RepoBar/Views/MenuBannerViews.swift:52-64 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/MenuBannerViews.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ceedda5a096dd7982186a127fa82053f962225dc68729d5fbb216f66067072"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/RepoBarCore/Auth/TokenStore.swift:528-539 | Sources/RepoBarCore/Auth/TokenStore.swift:541-552 \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":"Sources/RepoBarCore/Auth/TokenStore.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a27e55b98573df69bd86fc7bc048092aec2ba573112ed9c675c65aa3629d9fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Sources/RepoBar/App/AppState\u002BIssueNavigation.swift:314-319 | Sources/RepoBar/Support/GitHubPullRequestNotificationRunner.swift:166-171 | Sources/RepoBar/Support/GitHubReleaseNotificationRunner.swift:148-153 | Sources/RepoBarCore/Models/GitHubReferenceMatch.swift:76-85 \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":"Sources/RepoBar/App/AppState\u002BIssueNavigation.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"c605c57fd353e3656bdf6b82cf7fce4d194163694d64ac50ea5c04a50084b06a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:239-251 | Sources/RepoBar/Views/MenuBannerViews.swift:171-189 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/ActionsLimitsMenuViews.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e91c40d9ad947dc490c2b332a922bf0de12e83ffd78011b879cdc4fc50afbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/RepoBarCore/API/GitHubClient.swift:184-193 | Sources/RepoBarCore/API/GitHubClient.swift:195-204 \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":"Sources/RepoBarCore/API/GitHubClient.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"935bcada92eb42aacae750e7c594e8c5b7a51ea368228839f778894d0ca5f0cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift:36-47 | Sources/RepoBarCore/Support/RepoBarCacheDatabase.swift:156-167 \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":"Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d366452e4765a1f376835335207a7dcb83dc21351751b2abe6dd13819f0efe06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/RepoBarCore/Auth/TokenStore.swift:427-432 | Sources/RepoBarCore/Auth/TokenStore.swift:520-526 \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":"Sources/RepoBarCore/Auth/TokenStore.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"9896d6ac20b536de6f9359b2183cd0977709b4cd81ca8d7801bb67df83b97589"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/RepoBarCore/API/GitHubClient.swift:586-593 | Sources/RepoBarCore/API/GitHubClient.swift:595-602 \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":"Sources/RepoBarCore/API/GitHubClient.swift"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7389e2afc4f30d8f86699d59b4ac521cd753c49e094153723677b58c18ed35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/repobarcli/RecentListCommands.swift:352-361 | Sources/repobarcli/RecentListCommands.swift:447-457 | Sources/repobarcli/VerifyCommands.swift:87-97 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 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":"Sources/repobarcli/RecentListCommands.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2e9a09ae22dbcdb6f011513a19f60ee365a88bfefac55d55f23109b5642338"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 8\u002B corresponding lines): Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:250-257 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:259-266 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:288-295 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:297-304 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:306-317 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:392-399 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7b9f7bd23537ad386daad808697f267f468f272d3e1175ae61cff80fc7889c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): RepoBariOS/Sources/Support/RefreshScheduler.swift:18-27 | Sources/RepoBar/Support/RefreshScheduler.swift:18-30 \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":"RepoBariOS/Sources/Support/RefreshScheduler.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5104daa04e2730ec8a53bb2280bfd0510664aa2815365c3851306f4ea8f84f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/RepoBarCore/Support/GitHubArchiveReader.swift:205-217 | Sources/RepoBarCore/Support/GitHubArchiveReader.swift:225-240 | Sources/RepoBarCore/Support/GitHubArchiveReader.swift:254-269 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubArchiveReader.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"80975911370611892a38d688c61e848b49a99f343a0380a2699e6f43c31b9a7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/RepoBar/Settings/DebugSettingsView.swift:174-181 | Sources/RepoBarCore/Support/RateLimitStatusFormatter.swift:200-208 \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":"Sources/RepoBar/Settings/DebugSettingsView.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"406bfddc3d68e367dd1c1bce78284245d2e6ebf3b960ec835fc54677977304c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/RepoBarCore/Models/RepoRecentItems.swift:134-156 | Sources/RepoBarCore/Models/RepoRecentItems.swift:273-291 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Models/RepoRecentItems.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ff677d4d949ba1d38e18745561854b0612db5d23929d40e4c6e73fd2b84dae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/RepoBarCore/API/GitHubModels.swift:159-170 | Sources/RepoBarCore/API/GitHubRequestRunner.swift:379-386 | Sources/RepoBarCore/API/GitHubSearchModels.swift:128-141 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubModels.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f640655a96e668dbc702843f14a577554503ed211897d42cecff9dcc96d95fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/RepoBar/Views/ContributorMenuItemView.swift:29-41 | Sources/RepoBar/Views/MenuItemViews.swift:298-310 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/ContributorMenuItemView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b478309abb248d359b98a270ec65d07497c97a71980b984db665b8dc4b79c10c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/RepoBarCore/Support/GitHubArchiveReader.swift:56-60 | Sources/RepoBarCore/Support/GitHubArchiveReader.swift:62-66 \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":"Sources/RepoBarCore/Support/GitHubArchiveReader.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f34d2fca32d75a2cbcc6fbf2b4ff4ae200eb22c31237b2c64d5cc85637c169"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/RepoBar/Views/RecentListSubmenuRowView.swift:15-31 | Sources/RepoBarCore/Support/RateLimitStatusFormatter.swift:11-25 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/RecentListSubmenuRowView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"432edb5b5d356c95cfdfb4ce8fa676da569677733dc2f0377500a276c4b513b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): RepoBariOS/Sources/Views/RepoCardView.swift:184-199 | RepoBariOS/Sources/Views/RepoDetailView.swift:397-408 \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":"RepoBariOS/Sources/Views/RepoCardView.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"3131ba93896c016d0c323b72f6f1d27cefdfe04b656152f172072c3aad257494"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/RepoBar/StatusBar/ChangelogMenuCoordinator.swift:267-272 | Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:547-552 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:413-418 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/ChangelogMenuCoordinator.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"83efbedf866a93bd4e827492ecee049827e47fcca493c2f1c1d9640910c82e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/RepoBarCore/API/GitHubClient.swift:410-416 | Sources/RepoBarCore/API/GitHubRestAPI.swift:388-394 \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":"Sources/RepoBarCore/API/GitHubClient.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"2defe76d2b776918b094a0fb114b3da4ba9cd904706c2faf9708e349f98cc03b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/RepoBar/StatusBar/ChangelogMenuCoordinator.swift:34-44 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator.swift:46-54 \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":"Sources/RepoBar/StatusBar/ChangelogMenuCoordinator.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"119acaa182b4751455b16b37dd1539049c219dd375ef6fd8821428bd44351f19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:521-529 | Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:531-539 \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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"805877eeddb8f1e780d12dfc75a640eb8d0df9b8a0f3901003ef469571461435"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift:84-96 | Sources/RepoBarCore/Support/RepoBarCacheDatabase.swift:410-421 \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":"Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1976942cb65d148b41af06d5a51d1cf6ace6963d646a167c81f094fd9b9b65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/repobarcli/LocalActionsCommands.swift:269-275 | Sources/repobarcli/LocalActionsCommands.swift:296-302 \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":"Sources/repobarcli/LocalActionsCommands.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1eb9f534e51a6635012672157b6530a477b9e8623f9b769e0bff3cf6563554e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/RepoBar/Views/IssueNavigatorComponents.swift:67-76 | Sources/RepoBar/Views/IssueNavigatorView.swift:324-333 \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":"Sources/RepoBar/Views/IssueNavigatorComponents.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e3b0e43c790d137ea7735897d346edc1cb28b666a5e072b37a2ac79b071b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/RepoBarCore/Support/GitHubArchiveReader.swift:281-285 | Sources/RepoBarCore/Support/GitHubArchiveReader.swift:287-291 \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":"Sources/RepoBarCore/Support/GitHubArchiveReader.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef8f372717e8c9e23d170e7a779d99ae2210533d1f9a28f41c97161a02624d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/RepoBarCore/Support/RepoAutocompleteScoring.swift:164-178 | Sources/RepoBarCore/Support/RepoAutocompleteScoring.swift:180-191 \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":"Sources/RepoBarCore/Support/RepoAutocompleteScoring.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"261e85cb1ede8d9796f88fa5af30eaaf7aec0e40d353eda697464f173184e3db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/RepoBarCore/Auth/OAuthTokenRefresher.swift:181-188 | Sources/repobarcli/CLIHelpers.swift:167-172 \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":"Sources/RepoBarCore/Auth/OAuthTokenRefresher.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b74208f5438d6884afe2b0e6fc76f03f13b3d25752dde98cf35dfaa7a11e93e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/RepoBarCore/Settings/UserSettings.swift:335-340 | Sources/RepoBarCore/Settings/UserSettings.swift:409-413 \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":"Sources/RepoBarCore/Settings/UserSettings.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"31459fd74419ba20a343c85338d3a40bd8c6522243addbd2d9a41f1ed1409ff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/RepoBar/Views/LocalBranchMenuRowView.swift:9-19 | Sources/RepoBar/Views/LocalWorktreeMenuRowView.swift:9-19 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/LocalBranchMenuRowView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b8022e81bed4bc86de74fbaac975e13866c8b4e5a3314af3f84c26ef26c7b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/RepoBarCore/API/GitHubClient.swift:91-98 | Sources/RepoBarCore/API/GitHubClient.swift:341-348 | Sources/RepoBarCore/API/GitHubClient.swift:419-426 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubClient.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"018d877499c6d6a44888ce5d4a34bd656b4961414f2ad91d1a1a18d39560a7f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/RepoBar/StatusBar/ActivityMenuCoordinator.swift:74-79 | Sources/RepoBar/StatusBar/ActivityMenuCoordinator.swift:81-86 \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":"Sources/RepoBar/StatusBar/ActivityMenuCoordinator.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebad57e93f589e0115e8e628ed848923d0e5b5a36c7c23e21e43c83b704503c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/RepoBarCore/API/GitHubRecentDecoders.swift:205-214 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:571-580 \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":"Sources/RepoBarCore/API/GitHubRecentDecoders.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3df2ef9af0b03476ed72370d37055e0cc386204ddd1447cd1216dfffa3fc61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): Sources/RepoBarCore/LocalProjects/LocalGitService.swift:254-261 | Sources/RepoBarCore/LocalProjects/LocalGitService.swift:263-270 | Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift:372-379 | Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift:476-482 | Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift:484-491 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50b784bba322bd2e531c7e1844205f340559ab4bc1f2062c989c8f78766dff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/RepoBar/Support/RepositoryHydration.swift:5-11 | RepoBariOS/Sources/App/AppModel.swift:413-416 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Support/RepositoryHydration.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7ccd3d6a109e42abf5e18266b00846eb6d8aff37afd69f29310c0bf1311e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/RepoBar/Support/GitHubPullRequestNotificationRunner.swift:101-113 | Sources/RepoBar/Support/GitHubReleaseNotificationRunner.swift:110-118 \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":"Sources/RepoBar/Support/GitHubPullRequestNotificationRunner.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13c475ccbd833c51e6ff269fe26ad2a24ae63fd423c912618fef3791b439a9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 3\u002B corresponding lines): RepoBariOS/Sources/App/AppModel.swift:530-532 | RepoBariOS/Sources/Models/RepoDetailModel.swift:119-121 | Sources/RepoBar/App/AppState\u002BActivity.swift:70-72 | Sources/RepoBar/App/AppState\u002BIssueNavigation.swift:167-173 | Sources/RepoBarCore/API/GitHubClient.swift:573-575 | Sources/RepoBarCore/API/RepoDetailCoordinator.swift:325-327 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"47939a08ae4fc85fd71fefb1601fcdc625e87add0752415c6a325a0d08e25b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/RepoBar/App/AppState\u002BAccounts.swift:238-243 | Sources/repobarcli/CLIContext.swift:77-82 \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":"Sources/RepoBar/App/AppState\u002BAccounts.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf212df68e19d47e58822f81258593893c77b470069825c0be40232d167df9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:652-659 | Sources/RepoBar/StatusBar/StatusBarMenuManager.swift:345-352 \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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d9fe2a6aca6d259a4a10bcb5ccb70d40f9bd65da98c48af21ad4f25aa68f4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/RepoBar/Auth/PATAuthenticator.swift:116-123 | Sources/RepoBarCore/Auth/Account.swift:86-92 \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":"Sources/RepoBar/Auth/PATAuthenticator.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5917c7df6d242d5c2b8aedadca90a9b2fb9a8ea819644fa6c743d63ba214835"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/RepoBarCore/API/GitHubRequestRunner.swift:331-336 | Sources/RepoBarCore/Support/RepoBarCacheDatabase.swift:480-485 \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":"Sources/RepoBarCore/API/GitHubRequestRunner.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"1301a8645de2c4bc307af65416a417322a82bc28ecc4ebe8ce48636c955ed9d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/RepoBarCore/Models/GitHubReferenceMatch.swift:87-96 | Sources/repobarcli/ReferenceTranslateCommand.swift:146-155 \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":"Sources/RepoBarCore/Models/GitHubReferenceMatch.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ecdf7e64f45ff47f4dc910b050c973f48702fad5d6a81f413a05124257ec0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BContext.swift:409-412 | Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BHeadingReferences.swift:425-428 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BContext.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"d829a6b416f914e5bfebf9a16ff58bd1d475ec827dc15946fccf75992ea73a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): RepoBariOS/Sources/Views/HeatmapView.swift:53-56 | Sources/RepoBar/Views/HeatmapView.swift:41-44 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/Views/HeatmapView.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b804fe8b8659dcd6f0421608512c5148daabc9ec86826f7821ef4c4f8f76d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/RepoBar/Support/TerminalApp.swift:106-129 | Sources/repobarcli/LocalActionsSupport.swift:211-234 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Support/TerminalApp.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe9591854db166e1274fd79ebd722cb14d0a6da25b7f67ec0d2cb6a4a8e6013"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/RepoBar/StatusBar/StatusBarMenuManager\u002BActions.swift:30-35 | Sources/RepoBar/StatusBar/StatusBarMenuManager.swift:374-379 \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":"Sources/RepoBar/StatusBar/StatusBarMenuManager\u002BActions.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e25f209fdce1696218ec087e66a263a0ff11ef7551aafb8ddb449e41bbf3d61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/RepoBar/Views/HeatmapRasterView.swift:310-313 | Sources/RepoBar/Views/HeatmapView.swift:73-76 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/HeatmapRasterView.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"28535768f6fb517cc27133db0240c4987ce220442c6db741e52bba49342981a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationDetector.swift:313-318 | Sources/RepoBarCore/Support/OwnerFilter.swift:4-10 \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":"Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationDetector.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08416fb6a038af7cc8cfa260652979d72598b0cb68c9e4dfcb2839671f87458"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/RepoBarCore/Auth/TokenStore.swift:458-461 | Sources/RepoBarCore/Support/RepoBarCacheDatabase.swift:198-201 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Auth/TokenStore.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e1e4193f726f8bdb6aad87131558073b8ce5a668baf1906e7520c3ca7c1861"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/RepoBar/Support/TerminalApp.swift:131-135 | Sources/repobarcli/LocalActionsSupport.swift:236-240 \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":"Sources/RepoBar/Support/TerminalApp.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba8cd8b6e6b797253de836b15b9966b32019a320a7be431ca3e616f9e7d576a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/RepoBarCore/API/GitHubClient.swift:489-491 | Sources/RepoBarCore/API/GitHubRestAPI.swift:560-568 \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":"Sources/RepoBarCore/API/GitHubClient.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c84d8728c43eec12b42254259a15c6ae146caf2bfb0a8994f819a97b27386b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/RepoBarCore/API/GitHubClient.swift:493-495 | Sources/RepoBarCore/API/GitHubRestAPI.swift:570-578 \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":"Sources/RepoBarCore/API/GitHubClient.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"044081c98c0917fab33f8c27fe29450da2da58ef362955e367a699921a4011d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/RepoBarCore/API/GitHubClient.swift:539-541 | Sources/RepoBarCore/API/GitHubRestAPI.swift:609-617 \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":"Sources/RepoBarCore/API/GitHubClient.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"2392911466a8101df4f4dc1abb47b6f4d32d6e8fa2b2bb700b8304bd9a23e787"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/RepoBarCore/API/GitHubClient.swift:543-545 | Sources/RepoBarCore/API/GitHubRestAPI.swift:619-627 \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":"Sources/RepoBarCore/API/GitHubClient.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"626c767bcd20f841ba2aa7520e8125f58da38609e3288f03f14700844ea0b9ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/RepoBarCore/API/GitHubClient.swift:555-557 | Sources/RepoBarCore/API/GitHubRestAPI.swift:629-637 \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":"Sources/RepoBarCore/API/GitHubClient.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"274b16e76a099f284baefd3df2cc285a103bb44dd89794073414ce9ebb06002f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): RepoBariOS/Sources/Views/HeatmapView.swift:92-100 | Sources/RepoBar/Views/HeatmapRasterView.swift:361-369 \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":"RepoBariOS/Sources/Views/HeatmapView.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d9254323332d359f5654c9b79a6b60aa631ac97cc9f50fea0c4223baced4ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:33-41 | Sources/RepoBar/StatusBar/StatusBarMenuManager.swift:285-287 \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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a9a92165ccb3b2bee107c7a5aca2553ef0382b9b3cb1fbc1e30904d5082b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:43-51 | Sources/RepoBar/StatusBar/StatusBarMenuManager.swift:289-291 \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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20f36fee963255717d1cd20c941fe8dd2544f3e573c85828a6b412fd6c1c0e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BLineScoped.swift:2-6 | Sources/RepoBarCore/Support/GitHubReferenceTranslator.swift:249-253 \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":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BLineScoped.swift"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5471cae728dbf56013c01fd18d2fe921e541f39114b423cb88ed8ef36173c372"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): RepoBariOS/Sources/Views/HeatmapView.swift:85-88 | Sources/RepoBar/Views/HeatmapView.swift:78-82 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/Views/HeatmapView.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf32ceef02cd589dee65876dd466fc4106681627160ee9f022aeee49745f673"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): RepoBariOS/Sources/Views/RepoCardView.swift:125-128 | RepoBariOS/Sources/Views/RepoDetailView.swift:377-380 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/Views/RepoCardView.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"406e634eb9dcc453be1b321eda73d506395daa0e85d3893d284cdd31dc8089f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/RepoBarCore/Support/GitHubArchiveImporter.swift:397-399 | Sources/RepoBarCore/Support/GitHubArchiveReader.swift:193-195 \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":"Sources/RepoBarCore/Support/GitHubArchiveImporter.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"3970c18352ecb75c4ebbd389c90ecffce1e716cbdfc988d45e14e57d1fbf8637"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): RepoBariOS/Sources/App/AppSession.swift:50-57 | Sources/RepoBar/Support/MenuRepoFilters.swift:9-16 \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":"RepoBariOS/Sources/App/AppSession.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d903ff7ece35b5373279ea73ce5c962e814bdfdefe45affabb6d6dbc31397aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/RepoBar/Auth/AccountManager.swift:19-25 | Sources/RepoBar/Auth/OAuthCoordinator.swift:12-15 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Auth/AccountManager.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff239feb49b14379a8892eb55020d2abee48f1a23c3c216541dc0dd6fd036d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:710-716 | Sources/RepoBar/StatusBar/StatusBarMenuManager.swift:397-403 \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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"96356160f4537f6c08b0d84bef1e8b9b0b97b905557b220d7b428e3f78a6f6a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:722-728 | Sources/RepoBar/StatusBar/StatusBarMenuManager.swift:409-415 \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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a8d84eb2d0b791ddfed65ecfca7f7ac9cd9db096e0b8d2c28b3e31af262e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift:367-369 | Sources/RepoBarCore/Support/GitHubArchiveStore.swift:374-376 | Sources/RepoBarCore/Support/GitHubReferenceLocalContext.swift:173-175 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5ed0ab77a40e80e5a525c5c6e79e7b2c1c1690aa610b7cd641fb7f7342971e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/repobarcli/CacheCommands.swift:19-22 | Sources/repobarcli/StatusCommand.swift:22-25 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/CacheCommands.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0ad9d80b1253cd931b4746acd1a253dc3155085a795d44d4a553ce688a0a34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationSnapshotStore.swift:9-12 | Sources/RepoBarCore/Notifications/GitHubReleaseNotificationSnapshotStore.swift:9-12 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationSnapshotStore.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebbd16564b2f2a65227e641a4bf73ab4c5732c5f64b7a9bf4505d11251c625f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): Sources/RepoBar/Views/LocalBranchMenuRowView.swift:55-88 | Sources/RepoBar/Views/LocalWorktreeMenuRowView.swift:52-85 \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":"Sources/RepoBar/Views/LocalBranchMenuRowView.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3da0651254967c3887fc7a82abc130b4205624d9de73d8da215978c269e939c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Sources/RepoBarCore/LocalProjects/LocalGitService.swift:337-365 | Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift:386-414 \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 \u0060Sources/RepoBarCore/LocalProjects/LocalGitService.swift:337\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41bd627e737785e0a093ac667be777ae1707b065701c18281b883b61f3f5079"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): RepoBariOS/Sources/App/AppModel.swift:464-488 | Sources/RepoBar/App/AppState\u002BActivity.swift:28-52 \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 \u0060RepoBariOS/Sources/App/AppModel.swift:464\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":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"233fcc925338b6a71c990c264b622865cbcf2daf3d95e34a156c48be3081cd2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/repobarcli/RecentListsOutput.swift:352-373 | Sources/repobarcli/RecentListsOutput.swift:527-548 \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 \u0060Sources/repobarcli/RecentListsOutput.swift:352\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":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"9161f64c1a60695328e7e5b1cf15886857454ef50bde033ad24220e6a7d0aab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): RepoBariOS/Sources/Views/ActivityView.swift:93-113 | Sources/RepoBar/StatusBar/ActivityMenuCoordinator.swift:91-111 \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 \u0060RepoBariOS/Sources/Views/ActivityView.swift:93\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":"RepoBariOS/Sources/Views/ActivityView.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf2c6bba76e58b27b32a62e3556806db6f6ff2844d1e5de24d21465408e3ad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/RepoBar/App/AppState\u002BActivity.swift:149-169 | Sources/RepoBarCore/Models/Repository\u002BFactory.swift:51-71 \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 \u0060Sources/RepoBar/App/AppState\u002BActivity.swift:149\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":"Sources/RepoBar/App/AppState\u002BActivity.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6b4422e6201e43184a388f2d876670526c2d408cf65dfab93f0141d78f5dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:384-403 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:585-604 \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 \u0060Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:384\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":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9a98c043a98e32da6f5e828c6e84d6d9ba06b5d085c0bebafd71088eb5f358"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/repobarcli/RecentItemsOutput.swift:14-33 | Sources/repobarcli/RecentItemsOutput.swift:41-60 \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 \u0060Sources/repobarcli/RecentItemsOutput.swift:14\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":"Sources/repobarcli/RecentItemsOutput.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d2373b6ada2bd135ff36573767bb888053f15d85a0190faab585b900666ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/RepoBar/Views/IssueMenuItemView.swift:14-32 | Sources/RepoBar/Views/PullRequestMenuItemView.swift:14-32 \u2014 before extracting anything, compare \u0060Sources/RepoBar/Views/IssueMenuItemView.swift\u0060 and \u0060Sources/RepoBar/Views/PullRequestMenuItemView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/RepoBar/Views/IssueMenuItemView.swift:14\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":"Sources/RepoBar/Views/IssueMenuItemView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0ed3d138fb11506006025aa037e646ee4aa301b9ec99c0e201bfcd2eb7373e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201319 lines \u00D7 5): Sources/repobarcli/LocalListsOutput.swift:28-29 | Sources/repobarcli/LocalListsOutput.swift:96-97 | Sources/repobarcli/LocalProjectsCommands.swift:162-163 | Sources/repobarcli/RecentListsOutput.swift:331-349 | Sources/repobarcli/RecentListsOutput.swift:506-524 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/repobarcli/RecentListsOutput.swift:331\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/LocalListsOutput.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9a5d904d9a6373b70a38f03f5ad88c8c3d3aa0a03667e6c2e7cdf3ea4f1580"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/repobarcli/ReposCommand.swift:136-154 | Sources/repobarcli/ReposCommand.swift:157-175 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/ReposCommand.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"229d6dffc078d00f4780e554c29b2cfc464b53eb55c473aaa9898023c900a6b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:18-35 | Sources/RepoBar/Views/MenuBannerViews.swift:122-139 \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 \u0060Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:18\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":"Sources/RepoBar/Views/ActionsLimitsMenuViews.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35195829aa4344b8c355b67c130ceeac8a64e4d4b316f0722f9552280b666db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:464-479 | Sources/RepoBarCore/API/GitHubSearchModels.swift:143-158 \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":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d16f168791eb0231dbf8574efeb765868cb77b2b8c3b03ccb9fa02ddf371e7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BRepositoryHeadingBlocks.swift:95-110 | Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BRepositoryHeadingBlocks.swift:141-156 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BRepositoryHeadingBlocks.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1ab6b78271c6182c023f494f757cc073caa912ca996e85c527cc35697441d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/repobarcli/LocalActionsCommands.swift:83-98 | Sources/repobarcli/LocalActionsCommands.swift:138-153 \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 \u0060Sources/repobarcli/LocalActionsCommands.swift:83\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":"Sources/repobarcli/LocalActionsCommands.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a1405cabe5638edcc7ce9afa673b7ed54d818a5839b09695ffb2c428968615"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): Sources/RepoBar/StatusBar/GitHubReferenceStatusCoordinator.swift:288-299 | Sources/RepoBar/Views/IssueNavigatorView.swift:308-322 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/GitHubReferenceStatusCoordinator.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09b5c6e10ac0c164577617a69a2291a8451581450ad4c8f42eceaa0ac2b6d7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:223-237 | Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:380-394 \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 \u0060Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:223\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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f61173eb79c48b4ec1ca1ae04924478606d805599c7299b435b57802f408ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/RepoBar/Views/MenuLabelChipsView.swift:40-54 | Sources/RepoBar/Views/RecentIssueFiltersView.swift:102-116 \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 \u0060Sources/RepoBar/Views/MenuLabelChipsView.swift:40\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/RepoBar/Views/RecentIssueFiltersView.swift:117\u0060 calls \u0060buttonStyle\u0060, \u0060accessibilityLabel\u0060, \u0060Text\u0060 and \u0060Sources/RepoBar/Views/MenuLabelChipsView.swift:55\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":"Sources/RepoBar/Views/MenuLabelChipsView.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eed3deb69ff956fa70726902a5126421919815aa0b895c9dce9948fd5cecce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Sources/RepoBarCore/API/GitHubRestAPI.swift:177-191 | Sources/RepoBarCore/API/GitHubRestAPI.swift:210-222 \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 \u0060Sources/RepoBarCore/API/GitHubRestAPI.swift:177\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"518ca13720b6781b29db11ba8466c9fde9ce14cff995793ceb2ef92748fcaf08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/RepoBarCore/API/GraphQLClient.swift:85-99 | Sources/RepoBarCore/API/GraphQLClient.swift:186-200 \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 \u0060Sources/RepoBarCore/API/GraphQLClient.swift:85\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":"Sources/RepoBarCore/API/GraphQLClient.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1b1618b0e580a336ec918df240feb8cfaaf1dd432cf6e67473b47c23bf8b3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/repobarcli/LocalListsOutput.swift:55-68 | Sources/repobarcli/LocalListsOutput.swift:119-133 \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 \u0060Sources/repobarcli/LocalListsOutput.swift:55\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":"Sources/repobarcli/LocalListsOutput.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a493b708132746f052aed231034f8999753abc05ea033c0a8d1ddb5d5074c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/repobarcli/LoginCommands.swift:98-112 | Sources/repobarcli/LoginCommands.swift:263-277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/LoginCommands.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"52edfd7df6074eb103d6f958b6e8eccc6c12bc51eb4421955dab0359d4f7bf7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/RepoBar/Settings/GitHubAPIUsageSection.swift:171-184 | Sources/RepoBar/Views/MenuBannerViews.swift:251-264 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Settings/GitHubAPIUsageSection.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2af1afa6fa346bcccdfec5b157d378f9d1ec8cecb59a9184466d9593b546f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:207-220 | Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:364-377 \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 \u0060Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:207\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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd59cdb6a9d042229aae5fe85cd9fb9c96949881ba3f9b72ea1609ce065e47bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/repobarcli/LocalListsOutput.swift:32-45 | Sources/repobarcli/LocalListsOutput.swift:101-115 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/LocalListsOutput.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c86c28d41b7104b7ad9389a36c2f1627547a7499b739c63e75c28ebbd61c6f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): Sources/RepoBar/Views/CommitMenuItemView.swift:59-71 | Sources/RepoBar/Views/DiscussionMenuItemView.swift:51-63 | Sources/RepoBar/Views/IssueMenuItemView.swift:54-66 | Sources/RepoBar/Views/PullRequestMenuItemView.swift:70-82 | Sources/RepoBar/Views/ReleaseMenuItemView.swift:58-70 \u2014 before extracting anything, compare \u0060Sources/RepoBar/Views/DiscussionMenuItemView.swift\u0060 and \u0060Sources/RepoBar/Views/IssueMenuItemView.swift\u0060 as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/CommitMenuItemView.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f26089ba2f1861ef54825063fa779f50ac81d1792198a898769f7e567a4f6a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sources/RepoBar/Views/DiscussionMenuItemView.swift:28-40 | Sources/RepoBar/Views/IssueMenuItemView.swift:27-39 | Sources/RepoBar/Views/PullRequestMenuItemView.swift:27-39 \u2014 before extracting anything, compare \u0060Sources/RepoBar/Views/DiscussionMenuItemView.swift\u0060 and \u0060Sources/RepoBar/Views/IssueMenuItemView.swift\u0060 as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/RepoBar/Views/PullRequestMenuItemView.swift:42\u0060 calls \u0060DraftPillView\u0060 and \u0060Sources/RepoBar/Views/DiscussionMenuItemView.swift:42\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":"Sources/RepoBar/Views/DiscussionMenuItemView.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"483031b4e812027bd330711a84d99b66914e1d6d5c1c110e9c5e2b7563ac7087"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sources/repobarcli/RecentListsOutput.swift:266-278 | Sources/repobarcli/RecentListsOutput.swift:333-345 | Sources/repobarcli/RecentListsOutput.swift:508-520 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91f6d311fabfd3bd4fec326fe533b07dab1789711e7f5e58593044aa4df8222"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/RepoBar/App/AppState\u002BRefresh.swift:96-108 | Sources/RepoBar/App/AppState\u002BRefresh.swift:293-304 \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 \u0060Sources/RepoBar/App/AppState\u002BRefresh.swift:293\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":"Sources/RepoBar/App/AppState\u002BRefresh.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eba89b02e4c19a6f8a21a6a1a438958f74ff7b98f22c00da5867b91e9431e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:442-454 | Sources/RepoBarCore/API/GitHubSearchModels.swift:107-118 \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 \u0060Sources/RepoBarCore/API/GitHubSearchModels.swift:107\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":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6299378dcf78c19f9a3c2ca4de395dacacad96b56280be27bd1e59fd9efd45a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/repobarcli/SettingsSupport.swift:425-437 | Sources/repobarcli/SettingsSupport.swift:440-452 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/SettingsSupport.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"838a4ef0b8698d08b116ff267d4c050905b99923d4bc52a240191d16ee55b2a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/repobarcli/RecentListsOutput.swift:288-299 | Sources/repobarcli/RecentListsOutput.swift:354-365 | Sources/repobarcli/RecentListsOutput.swift:529-540 \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 \u0060Sources/repobarcli/RecentListsOutput.swift:288\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e7551337862c1633e674e66079351396a48f88d0704febcefd459699ff5ba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): RepoBariOS/Sources/App/AppModel.swift:331-342 | Sources/RepoBar/App/AppState\u002BVisibility.swift:44-55 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060RepoBariOS/Sources/App/AppModel.swift:331\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":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba96684180d8d4eaacfae59f968aac152b0e191e110bb2c95e5816cb020bf06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): RepoBariOS/Sources/Views/ActivityView.swift:164-175 | RepoBariOS/Sources/Views/RepoDetailView.swift:464-472 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060RepoBariOS/Sources/Views/RepoDetailView.swift:463\u0060 calls \u0060HStack\u0060 and \u0060RepoBariOS/Sources/Views/ActivityView.swift:163\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":"RepoBariOS/Sources/Views/ActivityView.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"918e1344a97759242c873b447927aa8b4c62db942edd0595d43b9e5932f108c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/RepoBar/Support/GitHubPullRequestNotificationRunner.swift:153-164 | Sources/RepoBar/Support/GitHubReleaseNotificationRunner.swift:135-146 \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":"Sources/RepoBar/Support/GitHubPullRequestNotificationRunner.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"179a3748b85baa9b00bbbd071eee4a9c6c68075e632012e07e63fb7900521620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BTokens.swift:73-84 | Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BTokens.swift:116-127 \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 \u0060Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BTokens.swift:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BTokens.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a442ba6de9609da22bd2732e3cb791609d8c581743badc8ea495ea6344206e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift:14-25 | Sources/RepoBarCore/Support/RepoBarCacheDatabase.swift:135-146 \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 \u0060Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift:14\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":"Sources/RepoBarCore/Support/GraphQLResponseDiskCache.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce2dbfb1a39ae18479039609522711c024e2485988d770568c079b620d7a0b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): Sources/repobarcli/CLIArgumentNormalizer.swift:37-47 | Sources/repobarcli/CLIArgumentNormalizer.swift:50-60 | Sources/repobarcli/CLIArgumentNormalizer.swift:63-73 | Sources/repobarcli/CLIArgumentNormalizer.swift:77-87 | Sources/repobarcli/CLIArgumentNormalizer.swift:96-106 \u2014 all 5 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 \u0060Sources/repobarcli/CLIArgumentNormalizer.swift:37\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":"Sources/repobarcli/CLIArgumentNormalizer.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7995b9f04a2c7e74b1dc81f9aab89e431b0a4e94acc1e8cd74da05b1ea08b85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/RepoBar/Views/DiscussionMenuItemView.swift:10-20 | Sources/RepoBar/Views/IssueMenuItemView.swift:10-20 | Sources/RepoBar/Views/PullRequestMenuItemView.swift:10-20 \u2014 before extracting anything, compare \u0060Sources/RepoBar/Views/DiscussionMenuItemView.swift\u0060 and \u0060Sources/RepoBar/Views/IssueMenuItemView.swift\u0060 as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/RepoBar/Views/DiscussionMenuItemView.swift:10\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/DiscussionMenuItemView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d963302eec4044dfe2ad67c669b1973598d3800884a69950750777fc86b0824"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/RepoBarCore/LocalProjects/LocalGitService.swift:283-293 | Sources/RepoBarCore/LocalProjects/LocalGitService.swift:303-313 | Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift:464-474 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/RepoBarCore/LocalProjects/LocalGitService.swift:283\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":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"527b05309f6f80c96125b8fdc1293b1e7bb9605d945e788cce9ed75f98a194e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): RepoBariOS/Sources/Views/HeatmapAxisLabelsView.swift:13-23 | Sources/RepoBar/Views/HeatmapAxisLabelsView.swift:13-23 \u2014 before extracting anything, compare \u0060RepoBariOS/Sources/Views/HeatmapAxisLabelsView.swift\u0060 and \u0060Sources/RepoBar/Views/HeatmapAxisLabelsView.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"RepoBariOS/Sources/Views/HeatmapAxisLabelsView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e126b6682110cb0a3cd02d8de9dfe6b5752ba24c9e3a325d00f4af68b4ff1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/RepoBar/StatusBar/GitHubReferenceStatusCoordinator.swift:358-367 | Sources/RepoBar/StatusBar/StatusBarMenuManager.swift:459-469 \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":"Sources/RepoBar/StatusBar/GitHubReferenceStatusCoordinator.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a3812e1b088a631e8b03e4e87410f47d966f0d26f3bbc6b2d7c215ab4e17e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/RepoBar/Support/TerminalApp.swift:138-147 | Sources/repobarcli/LocalActionsSupport.swift:242-252 \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 \u0060Sources/RepoBar/Support/TerminalApp.swift:138\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/RepoBar/Support/TerminalApp.swift:148\u0060 calls \u0060error\u0060 and \u0060Sources/repobarcli/LocalActionsSupport.swift:253\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":"Sources/RepoBar/Support/TerminalApp.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"732957f25b4f52623db7a5184d52c4871fdd5eb7d1b7a8e75a4c6d32cc4982f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/repobarcli/LocalActionsSupport.swift:143-153 | Sources/repobarcli/LocalActionsSupport.swift:156-166 \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 \u0060Sources/repobarcli/LocalActionsSupport.swift:143\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":"Sources/repobarcli/LocalActionsSupport.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffb3978722fb3ad2197311fe7eb22eba03dc85f0e703a0a71024ccbea159e8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/repobarcli/RecentListCommands.swift:388-398 | Sources/repobarcli/RecentListCommands.swift:487-497 \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 \u0060Sources/repobarcli/RecentListCommands.swift:388\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":"Sources/repobarcli/RecentListCommands.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a77e57870ab573603d78d8d9d8dd59bbd81506c2466d558c11331dc025b913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): RepoBariOS/Sources/App/AppModel.swift:60-69 | Sources/RepoBar/App/AppState.swift:78-87 \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 \u0060Sources/RepoBar/App/AppState.swift:78\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":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"305b1e9b5cf59049f1b23dd8de905386f01c2244a12ecad6fbdff8397a47835b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): RepoBariOS/Sources/App/AppModel.swift:522-528 | Sources/RepoBarCore/Support/GlobalActivityMerger.swift:32-41 \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 \u0060RepoBariOS/Sources/App/AppModel.swift:522\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":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b5b56c00eff1181728a91ac1df5a4be4ab23c2e0f97282c8e843af1be8a596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): RepoBariOS/Sources/Auth/OAuthCoordinator.swift:76-84 | Sources/RepoBarCore/Auth/OAuthLoginFlow.swift:103-112 \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":"RepoBariOS/Sources/Auth/OAuthCoordinator.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b6811e217a81f2fe081268f46ec53c12b9710f959dea07e933328ec5843dee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/RepoBar/App/AppState\u002BIssueNavigation.swift:176-185 | Sources/RepoBar/Views/IssueNavigatorModel.swift:408-417 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState\u002BIssueNavigation.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77f428c062f1fd69be5fa8d43045a5e31b9e1f78789810f54a17dcfe3afad56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:155-164 | Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:211-220 \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 \u0060Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:155\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":"Sources/RepoBar/Views/ActionsLimitsMenuViews.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"245a48d782f99b17bd9fa9a217c3e0b90d6d28102cb2466bdfdbc8b4f4cff333"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/RepoBar/Views/ReleaseAssetMenuItemView.swift:10-19 | Sources/RepoBar/Views/TagMenuItemView.swift:10-19 \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 \u0060Sources/RepoBar/Views/ReleaseAssetMenuItemView.swift:10\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/ReleaseAssetMenuItemView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73b9cc084e649cc560a0aba890ecce3af9d288f213c3500b98e50ff7c5f2b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/RepoBarCore/Auth/TokenStore.swift:574-583 | Sources/RepoBarCore/Auth/TokenStore.swift:632-641 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Auth/TokenStore.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5add276475dc0eed4a6b7c81fdb02e747d3f8086c596f409c12ce291d2590d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/repobarcli/RecentListsOutput.swift:32-41 | Sources/repobarcli/RecentListsOutput.swift:91-100 \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 \u0060Sources/repobarcli/RecentListsOutput.swift:32\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":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"238888ed2f50209ad561e45da33dc83014eb664adb791c80068e1766ac7e984b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/repobarcli/RecentListsOutput.swift:107-116 | Sources/repobarcli/RecentListsOutput.swift:133-142 \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 \u0060Sources/repobarcli/RecentListsOutput.swift:107\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":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc6c3c4e4e146a921ce846a7f7a6792a4239102be96f9f500dd0ce62c30e73b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/repobarcli/RecentListsOutput.swift:271-280 | Sources/repobarcli/RecentListsOutput.swift:464-473 \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 \u0060Sources/repobarcli/RecentListsOutput.swift:271\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":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"3191eb7b2696f1afe2e5adfbf5e4204f0f61b766c25596597dee329eebb584cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/repobarcli/StatusCommand.swift:53-62 | Sources/repobarcli/StatusCommand.swift:115-124 \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 \u0060Sources/repobarcli/StatusCommand.swift:53\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":"Sources/repobarcli/StatusCommand.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae4122774da8489e497828a88901da4d282ec2b208952a3af6da96fd54b02e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 8): Sources/repobarcli/RecentListCommands.swift:22-29 | Sources/repobarcli/RecentListCommands.swift:76-83 | Sources/repobarcli/RecentListCommands.swift:130-137 | Sources/repobarcli/RecentListCommands.swift:184-191 | Sources/repobarcli/RecentListCommands.swift:238-245 | Sources/repobarcli/RecentListCommands.swift:292-299 | Sources/repobarcli/VerifyCommands.swift:186-194 | Sources/repobarcli/VerifyCommands.swift:258-266 \u2014 there are 8 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/RecentListCommands.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ac3c2b5bb7fbcbd30cf1baa22d359f26f503fede5a7f28917442677f47bcb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/RepoBar/Views/IssueMenuItemView.swift:24-32 | Sources/RepoBar/Views/PullRequestMenuItemView.swift:24-32 | Sources/RepoBar/Views/ReleaseMenuItemView.swift:24-32 \u2014 before extracting anything, compare \u0060Sources/RepoBar/Views/IssueMenuItemView.swift\u0060 and \u0060Sources/RepoBar/Views/PullRequestMenuItemView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/RepoBar/Views/IssueMenuItemView.swift:24\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":"Sources/RepoBar/Views/IssueMenuItemView.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3065f945e2321a1344658d7b53c86cff4324b5053b42a46b6e79b08aa766f879"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/RepoBarCore/LocalProjects/LocalGitService.swift:342-350 | Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift:391-399 | Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift:436-444 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. 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":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"8137af23795fd2ea9dcb99eb7b1552142419d13ef1b6792e5cf4a5c6be554310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/repobarcli/RecentListsOutput.swift:33-41 | Sources/repobarcli/RecentListsOutput.swift:92-100 | Sources/repobarcli/RecentListsOutput.swift:237-245 \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 \u0060Sources/repobarcli/RecentListsOutput.swift:33\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":"Sources/repobarcli/RecentListsOutput.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"732796934c65f47b1247158efd1d95bd6cd40dd025f5a0dca8ba2c8ccb05e7e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): RepoBariOS/Sources/App/AppModel.swift:511-519 | Sources/RepoBarCore/Support/GlobalActivityMerger.swift:21-29 \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 \u0060RepoBariOS/Sources/App/AppModel.swift:511\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":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f23d56b36ca600e5bcbc3f03c7f493e42b1d3ecf5ca0ad9bc5aa8a888a639a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): RepoBariOS/Sources/Views/RepoListView.swift:60-68 | RepoBariOS/Sources/Views/RepoListView.swift:71-80 \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 \u0060RepoBariOS/Sources/Views/RepoListView.swift:71\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":"RepoBariOS/Sources/Views/RepoListView.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae9dbc14cfa1eb54dddd8427260c9f5329fae994176cee8a719849c6c10081b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/RepoBar/Settings/AccountSettingsView\u002BTokenValidation.swift:7-15 | Sources/RepoBar/Settings/AccountSettingsView\u002BTokenValidation.swift:36-44 \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 \u0060Sources/RepoBar/Settings/AccountSettingsView\u002BTokenValidation.swift:7\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Settings/AccountSettingsView\u002BTokenValidation.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"467bfefb1e515954803125b7132b4bf0117a05c9b51355b3c2f144e9ade75889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:240-248 | Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:464-472 \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 \u0060Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:240\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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a44f1ee72c521a98d2a1f68a29e76d9f6babc573f521a44f9938b6872531ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift:404-413 | Sources/RepoBar/StatusBar/StatusBarMenuBuilder\u002BMenuItems.swift:82-91 \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":"Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a77fcd854a3a2f12efa474a665c3e7704d23a9fde856d67114c07e5f6e76fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:151-159 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:189-197 \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 \u0060Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:151\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":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ce5b59547de41acf3c8bb2f3032879e5bec4c2480198e41754a335c57d0a99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/RepoBarCore/API/GraphQLClient.swift:102-110 | Sources/RepoBarCore/API/GraphQLClient.swift:203-211 \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 \u0060Sources/RepoBarCore/API/GraphQLClient.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":"Sources/RepoBarCore/API/GraphQLClient.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f065c2be8983b27fa781805121b0d44443bc42f0789165db47e68272aa09b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BHeadingReferences.swift:284-297 | Sources/RepoBarCore/Support/GitHubReferenceTranslator.swift:260-273 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BHeadingReferences.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d99c0c70d1ac4fecc8dd2887f268c03b6d951c9c2f86fcec1cb32779012e76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/RepoBarCore/Support/RateLimitJuice.swift:107-115 | Sources/RepoBarCore/Support/RateLimitStatusFormatter.swift:491-499 \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":"Sources/RepoBarCore/Support/RateLimitJuice.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0cb337ce4661f059ed750ad8998ac51751e4f2b9f4b34664cf6baea78d28de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): RepoBariOS/Sources/App/AppModel.swift:126-133 | RepoBariOS/Sources/App/AppModel.swift:151-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46b77f6da783d859aef73c2c4ce8ed4bb4c7c1ee612060a3fa204dc2f0684bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/RepoBar/App/AppState\u002BIssueNavigation.swift:91-98 | Sources/RepoBar/App/AppState\u002BIssueNavigation.swift:198-205 \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 \u0060Sources/RepoBar/App/AppState\u002BIssueNavigation.swift:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState\u002BIssueNavigation.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"252d1a1e89a19b0a5012002a1301d52aadf0f8515315f5db996edaf3c7fca431"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/RepoBar/StatusBar/GitHubReferenceBrowserMenuItemView.swift:120-127 | Sources/RepoBar/Views/IssueNavigatorAppKitAdapters.swift:285-291 \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":"Sources/RepoBar/StatusBar/GitHubReferenceBrowserMenuItemView.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6008c571052909d9e088f22515b1fb4e1eba59351fac96a5c43646c8225a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/RepoBar/Views/LocalBranchMenuRowView.swift:44-51 | Sources/RepoBar/Views/LocalWorktreeMenuRowView.swift:34-41 \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":"Sources/RepoBar/Views/LocalBranchMenuRowView.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde05be359a523e0ce568c7716bde87f8d4bd983d1a4d14bb6bf50a41444a208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/RepoBar/Views/ReleaseAssetMenuItemView.swift:14-21 | Sources/RepoBar/Views/ReleaseMenuItemView.swift:13-20 \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 \u0060Sources/RepoBar/Views/ReleaseAssetMenuItemView.swift:14\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060alignment\u0060 to \u0060.center\u0060 in one and \u0060.top\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":"Sources/RepoBar/Views/ReleaseAssetMenuItemView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45b273ea96a4e71c8ca8465e7aaa6326c975ea9bee56afe094ccebff49e663a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BHeadingReferences.swift:251-258 | Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BHeadingReferences.swift:306-312 \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 \u0060Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BHeadingReferences.swift:251\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BHeadingReferences.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b8ae9387fb0f16186f8e217d87ee1369cfd979b1c14d185f4cfac8c526be31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/repobarcli/StatusCommand.swift:68-75 | Sources/repobarcli/StatusCommand.swift:128-135 \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 \u0060Sources/repobarcli/StatusCommand.swift:68\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":"Sources/repobarcli/StatusCommand.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d533b68adeb6792dffa0893cdd92c6f8c634d50ada3c42a3fb5f0100ae410753"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/RepoBar/StatusBar/ActivityMenuCoordinator.swift:118-124 | Sources/RepoBar/StatusBar/ActivityMenuCoordinator.swift:131-137 | Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift:494-500 | Sources/RepoBar/StatusBar/RepoSubmenuBuilder.swift:507-513 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/RepoBar/StatusBar/ActivityMenuCoordinator.swift:118\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":"Sources/RepoBar/StatusBar/ActivityMenuCoordinator.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f52bf9027068ee70065ef1b17296813a8061f9e3dc93da5bcb82e1939f28c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:121-128 | Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:191-197 | Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:315-322 \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 \u0060Sources/RepoBar/Views/ActionsLimitsMenuViews.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":"Sources/RepoBar/Views/ActionsLimitsMenuViews.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb00ba64d0f1becf6e0997c38bfbd83bc2d05bced6ca515686c5368140bc2c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/RepoBar/Views/BranchMenuItemView.swift:9-15 | Sources/RepoBar/Views/ReleaseAssetMenuItemView.swift:9-15 | Sources/RepoBar/Views/TagMenuItemView.swift:9-15 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/RepoBar/Views/BranchMenuItemView.swift:9\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/RepoBar/Views/BranchMenuItemView.swift:16\u0060 calls \u0060HStack\u0060 and \u0060Sources/RepoBar/Views/ReleaseAssetMenuItemView.swift:16\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/BranchMenuItemView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5a90d9189a9da6aefd74d6b5db5b2662720f5dd4bf7752530ca7b76830d042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): RepoBariOS/Sources/Auth/OAuthCoordinator.swift:62-68 | Sources/RepoBarCore/Auth/OAuthLoginFlow.swift:89-95 \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 \u0060RepoBariOS/Sources/Auth/OAuthCoordinator.swift:62\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":"RepoBariOS/Sources/Auth/OAuthCoordinator.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c6aa29d292db9bae9a02e28ebf9e5fdace20c1c84a4d2be3e439e1cb3c291a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/RepoBarCore/API/GitHubRecentDecoders.swift:250-256 | Sources/RepoBarCore/Support/PullRequestAISummarizer.swift:120-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \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":"Sources/RepoBarCore/API/GitHubRecentDecoders.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"67268e61d08ae212fe44437ab1ccf6f02861ccc487b1d69690e785c8663593c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:327-333 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:342-348 | Sources/RepoBarCore/API/GitHubRestAPI.swift:538-543 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:327\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:325\u0060 calls \u0060URLQueryItem\u0060 and \u0060Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:340\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":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e3058dd1996b6ea2787b80262b329a98a90eb86c76d5f52b4b1a9b5103743e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Sources/RepoBarCore/API/GitHubRestAPI.swift:476-482 | Sources/RepoBarCore/API/GitHubRestAPI.swift:511-516 \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 \u0060Sources/RepoBarCore/API/GitHubRestAPI.swift:476\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"442f0d2db9612ad9fffaee5ce3dc13ded7ac0d6777881f8302530a0cb503ddb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/RepoBarCore/API/GraphQLClient.swift:75-82 | Sources/RepoBarCore/API/GraphQLClient.swift:176-183 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/RepoBarCore/API/GraphQLClient.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":"Sources/RepoBarCore/API/GraphQLClient.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"415f614520e9e2ec73dab3a3bd523143a57e98236293797523a2cddb3ca2d62e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/RepoBarCore/LocalProjects/LocalGitService.swift:255-261 | Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift:373-379 \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. 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 \u0060git\u0060 to \u0060LocalGitRunner\u0060 in one and \u0060GitRunner\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":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a97d29575f9d17d7ddf0aefb22a9dad0d39a5724c066ee500373fdf0f1ecf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/RepoBarCore/LocalProjects/LocalGitService.swift:264-270 | Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift:485-491 \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. 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 \u0060git\u0060 to \u0060LocalGitRunner\u0060 in one and \u0060GitRunner\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":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"581c00071a83e52aa87e1df5f110bdef57c1da25a12347f6b323815affb755a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/RepoBarCore/API/GitHubRestAPI.swift:330-336 | Sources/RepoBarCore/API/GitHubRestAPI.swift:476-482 | Sources/RepoBarCore/API/GitHubRestAPI.swift:511-516 \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 \u0060Sources/RepoBarCore/API/GitHubRestAPI.swift:330\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/RepoBarCore/API/GitHubRestAPI.swift:484\u0060 calls \u0060URLQueryItem\u0060 and \u0060Sources/RepoBarCore/API/GitHubRestAPI.swift:338\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":"Sources/RepoBarCore/API/GitHubRestAPI.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"b566a9b3b2d42ac391a6b8acea889a6d85dfb1ab8f55214fce1ef939fbe486c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:511-516 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:343-348 \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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"45cfcedb9b4d58c6205e2668b17ec5f1359144fdcb4e056ccecc6e48e25461d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/RepoBarCore/API/GitHubRequestRunner.swift:381-386 | Sources/RepoBarCore/API/GitHubSearchModels.swift:136-141 \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 \u0060Sources/RepoBarCore/API/GitHubRequestRunner.swift:381\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":"Sources/RepoBarCore/API/GitHubRequestRunner.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bc928df1e7c0bbb426262e08338e65dc293ce6ecf6b67aee4148adab8a54af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationDetector.swift:124-129 | Sources/RepoBarCore/Notifications/GitHubReleaseNotificationDetector.swift:89-94 \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":"Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationDetector.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e697edb67c5366c27cd5a916af14122322a4df14ba7c8cf7864de6d15a9fd20c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/RepoBarCore/Support/GitHubArchiveReader.swift:24-29 | Sources/RepoBarCore/Support/GitHubArchiveReader.swift:40-45 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubArchiveReader.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f12b098dacf521ed0aeec035a7c53d9c13a16ca0109b9efd98466b16a04e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/RepoBarCore/Support/GitHubArchiveStore.swift:221-226 | Sources/RepoBarCore/Support/GitHubArchiveStore.swift:234-239 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubArchiveStore.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e42f37b8a60a079150b831536c4ee05e43979dd2ada211ce6da9aed030e1f2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/RepoBarCore/API/GitHubRecentDecoders.swift:252-256 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:469-473 | Sources/RepoBarCore/API/GitHubSearchModels.swift:148-152 | Sources/RepoBarCore/Support/PullRequestAISummarizer.swift:122-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/RepoBarCore/API/GitHubRecentDecoders.swift:252\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRecentDecoders.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"335ab3927c086be7077e8b8c9d3bf5a42f8f62fee9471d14943c2ef6bad8105a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/RepoBar/StatusBar/ChangelogMenuCoordinator.swift:268-272 | Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:548-552 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:414-418 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/ChangelogMenuCoordinator.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a0c070843546c871c37ead9989a3eee32639e43ffb147a9ff84c45d06bedcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:514-519 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:335-340 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:346-351 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:514\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":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f73b597b125f647975493554bd1515a7caf31cdeca2980b83a64e9352d683d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:231-236 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:258-263 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:285-290 \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 \u0060Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:231\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a0485f2d0547b631b83e7ea47e683eac291a9598fc65d16411a74b6633b7be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/repobarcli/ArchiveCommands.swift:168-173 | Sources/repobarcli/ArchiveCommands.swift:436-441 | Sources/repobarcli/ArchiveCommands.swift:476-481 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/repobarcli/ArchiveCommands.swift:432\u0060 calls \u0060update\u0060 and \u0060Sources/repobarcli/ArchiveCommands.swift:167\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":"Sources/repobarcli/ArchiveCommands.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"064477ddfdbb94db7988f9a8aa33099d3ea99a6840545aba2f6aecb760f83bf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): RepoBariOS/Sources/Views/HeatmapView.swift:58-63 | Sources/RepoBar/Views/HeatmapView.swift:46-51 \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":"RepoBariOS/Sources/Views/HeatmapView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bf1ebf7b77d576bf2924e552257a6957de50c597d53adcd8cef585dd95a16e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): RepoBariOS/Sources/Views/HeatmapView.swift:65-72 | Sources/RepoBar/Views/HeatmapView.swift:53-60 \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":"RepoBariOS/Sources/Views/HeatmapView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf5727702c2f3cdf1a5b7279cf1c57ce2837ac50eeedd1e2786398ede01ab96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): RepoBariOS/Sources/Views/HeatmapView.swift:74-83 | Sources/RepoBar/Views/HeatmapView.swift:62-71 \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":"RepoBariOS/Sources/Views/HeatmapView.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0ae673e2d38c5f69a69a8989861575f46c77aa15c37ced9590b90b669d8e9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/RepoBar/Views/PullRequestMenuItemView.swift:98-113 | Sources/RepoBar/Views/ReleaseMenuItemView.swift:86-101 \u2014 before extracting anything, compare \u0060Sources/RepoBar/Views/PullRequestMenuItemView.swift\u0060 and \u0060Sources/RepoBar/Views/ReleaseMenuItemView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/PullRequestMenuItemView.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1af780eef1d3817b5df6525c47793990a2cad00a1f8913de3b63c5f5f9a31bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): RepoBariOS/Sources/App/AppModel.swift:82-88 | Sources/RepoBar/App/AppState\u002BRefresh.swift:241-247 \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":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f12ed6b6714485bd98be6e8606b3916facc53673fbb18dff7c8747a92123b50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): RepoBariOS/Sources/Support/RefreshInterval\u002BLabel.swift:4-11 | Sources/RepoBarCore/Settings/UserSettings.swift:480-487 \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":"RepoBariOS/Sources/Support/RefreshInterval\u002BLabel.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73acd8d610c7ae1dec21dd0bd75ee738c1ef5771199f549622adfcd9b25a617"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): RepoBariOS/Sources/Support/RefreshScheduler.swift:12-16 | Sources/RepoBar/Support/RefreshScheduler.swift:12-16 \u2014 before extracting anything, compare \u0060RepoBariOS/Sources/Support/RefreshScheduler.swift\u0060 and \u0060Sources/RepoBar/Support/RefreshScheduler.swift\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"RepoBariOS/Sources/Support/RefreshScheduler.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"07235550352e5b156b0259c8dc4e498cecfbfb33a0ee7f44a5cdade15833a3e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): RepoBariOS/Sources/Support/RepositorySortKey\u002BLabel.swift:4-13 | Sources/RepoBar/Support/RepositorySortKey\u002BLabels.swift:12-21 | Sources/RepoBar/Support/RepositorySortKey\u002BLabels.swift:23-32 | Sources/RepoBar/Support/RepositorySortKey\u002BLabels.swift:34-43 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/Support/RepositorySortKey\u002BLabel.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"06178b2d8b0f7e529eaf98db7b4f704a2c5a325065712b1e6dbd951b704357e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): RepoBariOS/Sources/Views/HeatmapView.swift:9-13 | Sources/RepoBar/Views/HeatmapView.swift:15-19 \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":"RepoBariOS/Sources/Views/HeatmapView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"379ed7972054a2b38c9f333022a3de1c0d8314d765571f795514f41dc728eec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:174-182 | Sources/RepoBar/Views/ActionsLimitsMenuViews.swift:348-356 | Sources/RepoBar/Views/MenuBannerViews.swift:266-274 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/ActionsLimitsMenuViews.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85dacf3e2477513a1e4e0c3fa23d9a813a854f5bd8def3ed3c1ed1e47d40b76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): Sources/RepoBar/Views/CommitMenuItemView.swift:73-81 | Sources/RepoBar/Views/ContributorMenuItemView.swift:43-51 | Sources/RepoBar/Views/DiscussionMenuItemView.swift:65-73 | Sources/RepoBar/Views/IssueMenuItemView.swift:68-76 | Sources/RepoBar/Views/MenuItemViews.swift:312-320 | Sources/RepoBar/Views/PullRequestMenuItemView.swift:84-92 | Sources/RepoBar/Views/ReleaseMenuItemView.swift:72-80 \u2014 before extracting anything, compare \u0060Sources/RepoBar/Views/DiscussionMenuItemView.swift\u0060 and \u0060Sources/RepoBar/Views/IssueMenuItemView.swift\u0060 as WHOLE FILES: this scan already matched 4 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Views/CommitMenuItemView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"66073aa050b92aac6c30036db29fb0158131c4247caa3829516efa65f3fc938e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:456-462 | Sources/RepoBarCore/API/GitHubSearchModels.swift:120-126 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8fdcd67f34f493e8a57bb97ffa276ab1341f15ecd09dba44ea8c2800fe6df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/RepoBarCore/Support/GitHubArchiveReader.swift:176-182 | Sources/RepoBarCore/Support/GitHubArchiveStore.swift:409-415 \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":"Sources/RepoBarCore/Support/GitHubArchiveReader.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d64f80ccb0b1373d0d8f2413b00e86b8c5c01355f7581468cb08716ca3ecf4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/repobarcli/AccountsCommands.swift:93-98 | Sources/repobarcli/AccountsCommands.swift:123-128 | Sources/repobarcli/LocalActionsCommands.swift:262-267 | Sources/repobarcli/LocalActionsCommands.swift:289-294 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/AccountsCommands.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79af727e6fc15af0d205e7fc72aaefa5aa8733c6b6eb85a8b4878c0314d0807"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/repobarcli/RecentItemsOutput.swift:137-142 | Sources/repobarcli/RecentListsOutput.swift:577-582 \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":"Sources/repobarcli/RecentItemsOutput.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a296f670cd6808148f12c7f01d8b5479a01b09080e6cf2c2e879319e0ce307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift:19-31 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator.swift:20-32 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/LocalGitMenuCoordinator.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e214dcdbe69bad047c4081d8d65f963f9de4ced7d8d6a7e1d7dc7c1553393470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationSnapshotStore.swift:14-21 | Sources/RepoBarCore/Notifications/GitHubReleaseNotificationSnapshotStore.swift:14-21 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationSnapshotStore.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e5d368fac8e5bdf4e8b9abd7f77239f9a708397897a422d7474ad84c9a4af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationSnapshotStore.swift:23-27 | Sources/RepoBarCore/Notifications/GitHubReleaseNotificationSnapshotStore.swift:23-27 \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":"Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationSnapshotStore.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60938898441d312aaf96ad74fc88cd1f2e8fc001a42ccafb509b3d10a5ec288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): Sources/repobarcli/ArchiveCommands.swift:61-67 | Sources/repobarcli/ArchiveCommands.swift:115-121 | Sources/repobarcli/ArchiveCommands.swift:159-165 | Sources/repobarcli/ArchiveCommands.swift:382-388 | Sources/repobarcli/ArchiveCommands.swift:423-429 | Sources/repobarcli/ArchiveCommands.swift:467-473 | Sources/repobarcli/LocalActionsCommands.swift:19-25 | Sources/repobarcli/LocalActionsCommands.swift:69-75 | Sources/repobarcli/LocalActionsCommands.swift:170-176 | Sources/repobarcli/LocalActionsCommands.swift:218-224 | Sources/repobarcli/SettingsCommands.swift:19-25 | Sources/repobarcli/SettingsCommands.swift:62-68 | Sources/repobarcli/SettingsCommands.swift:102-108 | Sources/repobarcli/SettingsCommands.swift:145-151 \u2014 there are 14 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 14 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/ArchiveCommands.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"011575cdb659626fc7348902ffcecd1efcb580f6858e813a266faabb0bfc59d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): RepoBariOS/Sources/Auth/OAuthCoordinator.swift:35-39 | Sources/RepoBarCore/Auth/OAuthLoginFlow.swift:59-63 \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":"RepoBariOS/Sources/Auth/OAuthCoordinator.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"de78cdde584168a0288971af13cc1b0c456cd564f8e1d11828c91d1a9749b200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): RepoBariOS/Sources/Views/HeatmapView.swift:108-112 | Sources/RepoBar/Views/RepoBarLoadingView.swift:152-156 \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 \u0060RepoBariOS/Sources/Views/HeatmapView.swift:108\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":"RepoBariOS/Sources/Views/HeatmapView.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"41dc91e804eca6917abd730f608d5473f7e1332019d288c0d231de3520cf8a72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:252-257 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:261-266 | Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:299-304 \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 \u0060Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift:252\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":"Sources/RepoBar/StatusBar/RecentListMenuCoordinator\u002BMenuItems.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a32db76fac54682a46709ed956508743d5b22b927ebc28b18fdef685335702e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/RepoBar/Views/MenuLabelChipsView.swift:59-66 | Sources/RepoBar/Views/RecentIssueFiltersView.swift:126-133 \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 \u0060Sources/RepoBar/Views/RecentIssueFiltersView.swift:126\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":"Sources/RepoBar/Views/MenuLabelChipsView.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"446daaaa0b3510c2b74c2967f71120a309e47fee0ce7a1c22673f7b382e48b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:218-222 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:245-249 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:272-276 \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 \u0060Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:218\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":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ae6701d14f5dcb0402ecf77ef478af0a50cb5d457de17fb440be6d2a9b90a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:353-358 | Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:363-368 \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 \u0060Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift:353\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":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"926e09d2d87ab3ec33b9227bd608e6bd100797337ac3436db083b0133e0021f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/RepoBarCore/API/GitHubRestAPI.swift:199-203 | Sources/RepoBarCore/API/GitHubRestAPI.swift:225-229 \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 \u0060Sources/RepoBarCore/API/GitHubRestAPI.swift:199\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":"Sources/RepoBarCore/API/GitHubRestAPI.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52f612135295df8066255126a5fafe9007962f7876aedfc07e348fe88b82f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/RepoBarCore/LocalProjects/LocalGitService.swift:91-95 | Sources/RepoBarCore/LocalProjects/LocalGitService.swift:99-103 \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 \u0060Sources/RepoBarCore/LocalProjects/LocalGitService.swift:91\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":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e1bd0b7e6a4b54ac6988df93573a3d62ed501397240a777e010b429f69eaaf"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: RepoBarCore: RepoBarCore: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"caf68522e8bace7fd47d3625ece9dd10b43714b97f676376b9055b241e6dc6e5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: StatusBarMenuManager (LCOM4 6): StatusBarMenuManager\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuManager.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc231e72b7d4a8089261694d48872235a2d3665daa04fdc3ea87340446885ac"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppState (LCOM4 4): AppState\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":"Sources/RepoBar/App/AppState.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee36b142bba508a906f06c35ab51a51bc2f0fe58e0f8ff68457aa5a3510a8eb9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : 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":"Tests/RepoBarTests/DiagnosticsLoggerTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d89cde0c02a0c0600223f0e6098879956aa41a5c934fa1b6ed060816b532175"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : 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":"Tests/RepoBarTests/RepoBarCoreModelsTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4a025b61852910519f07cd246e439f642be22ed8bec3e66e60605a5c96e7e8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : 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":"Tests/RepoBarTests/UserSettingsCoverageTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea2d91e41c34cc2ca4996fb9a20b96a705656c72095540d4f68ef31d594f449"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : 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":"Tests/repobarcliTests/CLIEndToEndTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"64889e6fb32c025639b57ee185eb72eb2e03170461b88cb3773869320059f343"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e70dbbaebb32337d56d9c83b8d3b5599702d964d803ea2dc3c782b974641a764"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift: Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in StatusBarMenuBuilder.mainMenuItems at line 102. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:24:38 -08:00\u0027 --until=\u00272026-11-14 00:24:38 -08:00\u0027 --full-history --no-merges -- Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"1863b1d204e530bfccf47fa478ba9c1d8a79d941e0d2f49b1e168948c95e3b9d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/RepoBarCore/API/GitHubRequestRunner.swift: Sources/RepoBarCore/API/GitHubRequestRunner.swift changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is GitHubRequestRunner.get at line 50), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: ship 0.9.3 quota accuracy improvements (#135)\u201D; \u201Cfix: preserve observed usage over synthetic full quota reports\u201D; \u201CFix GitHub quota tracking and stack menu bar counts for 0.9.2\u201D; \u201Cfix: honor GitHub retry budgets across REST and GraphQL (#129)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:24:38 -08:00\u0027 --until=\u00272026-11-14 00:24:38 -08:00\u0027 --full-history --no-merges -- Sources/RepoBarCore/API/GitHubRequestRunner.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRequestRunner.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e62bab014865c33cda5f8a390cfee28447a6ec77dac89d84f51bde9aa9e9716"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/RepoBar/StatusBar/StatusBarMenuManager.swift: Sources/RepoBar/StatusBar/StatusBarMenuManager.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is StatusBarMenuManager.setButtonTitle at line 459), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: restore local Git actions and OAuth refresh (#167)\u201D; \u201Cfix(auth): offer relaunch instead of sign-in when Keychain access fails (#155)\u201D; \u201CFix GitHub quota tracking and stack menu bar counts for 0.9.2\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:24:38 -08:00\u0027 --until=\u00272026-11-14 00:24:38 -08:00\u0027 --full-history --no-merges -- Sources/RepoBar/StatusBar/StatusBarMenuManager.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuManager.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e224dffb96eb9e51b83ac964d97ec68d05363b1fadc33dca37cffccc022942d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/RepoBar/StatusBar/StatusBarMenuBuilder\u002BSignatures.swift: Sources/RepoBar/StatusBar/StatusBarMenuBuilder\u002BSignatures.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is AccountSignature.init at line 202), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(auth): offer relaunch instead of sign-in when Keychain access fails (#155)\u201D; \u201Cfix: refresh repository submenu heatmap colors\u201D; \u201CFix GitHub quota tracking and stack menu bar counts for 0.9.2\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:24:38 -08:00\u0027 --until=\u00272026-11-14 00:24:38 -08:00\u0027 --full-history --no-merges -- Sources/RepoBar/StatusBar/StatusBarMenuBuilder\u002BSignatures.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuBuilder\u002BSignatures.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a372cd2e24d18cfb5be135122f5b50814a46800e89f2ec6d4677de225df765"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/RepoBarCore/API/GitHubClient.swift: Sources/RepoBarCore/API/GitHubClient.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is GitHubClient.shouldUseArchiveFallback at line 604), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: coalesce repository detail cache writes (#150)\u201D; \u201Cfix: preserve observed usage over synthetic full quota reports\u201D; \u201CFix GitHub quota tracking and stack menu bar counts for 0.9.2\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:24:38 -08:00\u0027 --until=\u00272026-11-14 00:24:38 -08:00\u0027 --full-history --no-merges -- Sources/RepoBarCore/API/GitHubClient.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubClient.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de71b334179c38bbd19203dde3913bf5b59d01b23755757a94a5b0b9eed91ac"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/RepoBarCore/API/GraphQLClient.swift: Sources/RepoBarCore/API/GraphQLClient.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is GraphQLClient.repoSummary at line 58), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: ship 0.9.3 quota accuracy improvements (#135)\u201D; \u201CFix GitHub quota tracking and stack menu bar counts for 0.9.2\u201D; \u201Cfix: honor GitHub retry budgets across REST and GraphQL (#129)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:24:38 -08:00\u0027 --until=\u00272026-11-14 00:24:38 -08:00\u0027 --full-history --no-merges -- Sources/RepoBarCore/API/GraphQLClient.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GraphQLClient.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f80d73251c5e286d49895d6fa82d610ae0f9e248ceeb5ebed970ccb3ee0524"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/RepoBarCore/API/RateLimitSnapshot.swift: Sources/RepoBarCore/API/RateLimitSnapshot.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is RateLimitSnapshot.from at line 11), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: ship 0.9.3 quota accuracy improvements (#135)\u201D; \u201Cfix: preserve observed usage over synthetic full quota reports\u201D; \u201CFix GitHub quota tracking and stack menu bar counts for 0.9.2\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 00:24:38 -08:00\u0027 --until=\u00272026-11-14 00:24:38 -08:00\u0027 --full-history --no-merges -- Sources/RepoBarCore/API/RateLimitSnapshot.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/RateLimitSnapshot.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9272df6467256fac93d1f9e56a6c67a33e6db44f81127f2c6490ca0f971d1ab0"}},{"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 \u0060Package.swift\u0060 makes this repository a deployable product (line 14)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Package.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cb68a1ee6c4cb93e1c9ac7b48b28011c2bc672548de5c6ade44fdf2c34c979"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (42476 LoC, 700 module-visible types across 19 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ea375804dda0eeca1eeaabd2e30647f2479716dec72e855c0be4e1f22a1ff81"},"properties":{"commitSha":"f949074704ea25ca348c1f6dbc18e401d2b663cd"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b1253f479c47b3cbb41c03a8be95b33da85880b9be863076024841742400dbd1"},"properties":{"commitSha":"866f272fb4a9b620ae8d9f9e31079c6f6178b972"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1498825690ee691422757d83c6c8726aaf69040fa62a3b6b71a03075f0880320"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 5 of 187 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 187 of the 301 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationDetector.swift, Sources/RepoBar/Support/RepoBarNotifier.swift, Sources/RepoBar/Support/GitHubPullRequestNotificationRunner.swift, Sources/RepoBar/Auth/PATAuthenticator.swift, Sources/RepoBarCore/Settings/AccountScopedRepositoryLists.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Notifications/GitHubPullRequestNotificationDetector.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94009609ab65595e4defe28877cea0672714824fa320f87f0e67080c34ed5846"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Support/RepoBarNotifier.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0269e4494a9fb54caffec2bb647c66cdb5fcbfa96470549afbc70eaf16ad8a05"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Support/GitHubPullRequestNotificationRunner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a603f5924f8a142fcba7c5f690dbe61fb65328f096efc6163cf87dd195c64f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Auth/PATAuthenticator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ff8471ac9d42a1d29a37487d66e55e5ea3d05c2d598b307ac8938051d325bd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Settings/AccountScopedRepositoryLists.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45c93079517636600c5f57c44c354a848bf1664eb24c99ca36ae6ee807fb334"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: StatusBarMenuManager.swift \u2192 GitHubReferenceBrowserMenuItemView.swift, StatusBarMenuBuilder\u002BRepoSubmenus.swift, AppLimits.swift, MenuRepoFilters.swift, RepoRecentItems.swift: \u0060Sources/RepoBar/StatusBar/StatusBarMenuManager.swift\u0060 changes together with 5 other files \u2014 \u0060Sources/RepoBar/StatusBar/GitHubReferenceBrowserMenuItemView.swift\u0060, \u0060Sources/RepoBar/StatusBar/StatusBarMenuBuilder\u002BRepoSubmenus.swift\u0060, \u0060Sources/RepoBar/Support/AppLimits.swift\u0060, \u0060Sources/RepoBar/Support/MenuRepoFilters.swift\u0060, \u0060Sources/RepoBarCore/Models/RepoRecentItems.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 5 separate couplings, not 5 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 5."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"324586c6356dbcd3369599ddf8daca4a8b5d3e5213d5c317e92b6546a711b95a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CLIOutput.swift \u2194 Commands.swift: \u0060Sources/repobarcli/CLIOutput.swift\u0060 and \u0060Sources/repobarcli/Commands.swift\u0060 change together 62% of the time (8 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060d976bd0c\u0060 refactor: share repo query defaults and formatters; \u00604462fea8\u0060 feat(cli): default repo to URL; \u006091cbba85\u0060 perf(cli): stabilize release columns \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/CLIOutput.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d562de243ae81451716e616d066a4cb846b5c82c9899538e1d53fde9898b81"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: StatusBarMenuBuilder.swift \u2194 RepoRecentItems.swift: \u0060Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift\u0060 and \u0060Sources/RepoBarCore/Models/RepoRecentItems.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060c7273234\u0060 feat: add commit feeds to menus; \u00603b1b76d4\u0060 feat: add release assets and extra submenus; \u00601712af95\u0060 feat: add CI runs submenu \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/StatusBarMenuBuilder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5187b32a617e4a964b75bd948e9697ba9071b285babe4153fda8810a575bc5b6"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"DM4","level":"error","message":{"text":"Anemic domain model: Error: \u0060Error\u0060 is a data-only reference entity whose behaviour is DELEGATED to a foreign utility (static methods that take it as their first parameter and hold its logic) \u2014 the anemic domain model. Move the behaviour onto the entity so it enforces its own invariants rather than being driven from outside."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/Error\u002BAuth.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"288158ee458347081bede4f8f36b68388802252549b456db97c0bb5958242597"}},{"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":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060installCLI\u0060 is async and calls .waitUntilExit() \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Settings/AdvancedSettingsView.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"5745c7a1122924734a78d85da009d8515eed3a3b2716cc400b9c619addfc5b83"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060run\u0060 is async and calls .waitUntilExit() \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/LoginCommands.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5685910e774a9aa6d1f8d5ad23e7a9b6f3d85c1967922bd77434fa46eac7bab"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 5 typed \u00B7 4 plain JS \u2014 the untyped files are Scripts/docs-list.mjs, Scripts/generate-llms.mjs, Scripts/json_to_sdl.js, Scripts/package-app.test.mjs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): Scripts/ghrest.ts:63 \u00B7 Scripts/ghrest.ts:104 \u00B7 Scripts/ghrest.ts:137 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Scripts/ghrest.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"38160819cf6c32e6bdaacd260b06e551da25561e245473b9ec06ab82781308e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractMetadata (cyclomatic 16, cognitive 32): extractMetadata has cyclomatic complexity 16 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Scripts/docs-list.mjs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f080ae04cebb1da5ab37f407742b935027702429360f6438d449b94b9d4e361"}},{"ruleId":"R6","level":"warning","message":{"text":"No typecheck script: test \u2713 \u00B7 lint \u2713 \u00B7 typecheck \u2717 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"912edc7f1fd20bf80ef68c3293e3048565115e48707dc5f9d492201598794658"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!hiddenSet.contains(key) || pinnedSet.contains(key)\u0060 appears character-identically in 2 files \u2014 Sources/RepoBar/App/AppState\u002BVisibility.swift, Sources/RepoBarCore/Support/RepositoryPipeline.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState\u002BVisibility.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54ac28f9f1db927a13d9901c8f4aba7cfa53fe427a098c30def9a96685ad418"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cancelInFlight || self.refreshTask == nil\u0060 appears character-identically in 2 files \u2014 RepoBariOS/Sources/App/AppModel.swift, Sources/RepoBar/App/AppState\u002BRefresh.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/App/AppModel.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"60087a9bec725b3a07f5dac1a4bcd9f7e82605389540309a8e822dc535c3e511"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host == \u0022github.com\u0022 || host.hasSuffix(\u0022.github.com\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/RepoBarCore/Support/GitHubReferenceLocalContext.swift, Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BURLs.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceLocalContext.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"208b4ea21dfc19c1d7594a58895f18361fd0b09c3bb6ce7926bfdcfe686e36c5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized.contains(\u0022sha\u0022) || normalized.contains(\u0022commit\u0022) || normalized.contains(\u0022hash\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BContext.swift, Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BHeadingReferences.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubReferenceTranslator\u002BContext.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"be70fe852ca10c60b0c6e4ba35b055d589a0f5c4781e03232e959b24ba3835fb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.statusCode == 403 || response.statusCode == 429\u0060 appears character-identically in 2 files \u2014 Sources/RepoBarCore/API/GitHubRateLimitPolicy.swift, Sources/RepoBarCore/API/GraphQLClient.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRateLimitPolicy.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee852a70369321780391e962835d8447e2a10bdbe2cb495c1c230dd0186c744"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.row.resource != nil || self.row.quotaText != nil\u0060 appears character-identically in 2 files \u2014 Sources/RepoBar/Settings/GitHubAPIUsageSection.swift, Sources/RepoBar/Views/MenuBannerViews.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Settings/GitHubAPIUsageSection.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"71314bfd34e68fe1adf6ac9a9b8249ca2ed4e3a9a234a6c8a8de3938545a117a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060separator == \u0022,\u0022 || separator == \u0022 \u0022 || separator == \u0022\\n\u0022 || separator == \u0022\\t\u0022\u0060 appears character-identically in 2 files \u2014 Sources/RepoBar/Settings/AccountSettingsView.swift, Sources/repobarcli/SettingsSupport.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Settings/AccountSettingsView.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"80db43c0e74a2d1c5330a559373d2c16defb09bfaa8e7274e95c64860604ce9f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status.contains(\u0022M\u0022) || status.contains(\u0022R\u0022) || status.contains(\u0022C\u0022) || status.contains(\u0022T\u0022) || status.contains(\u0022U\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/RepoBarCore/LocalProjects/LocalGitService.swift, Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b21a47ff9c92d3a3633a053b676e8a77139b445e14cd03b83f4d28cad605cc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/ChangelogCommand.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a2876505a60aac9227ffb547b948493b35f0e1e6792291458e339b48bc5708"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/repobarcli/LocalActionsSupport.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42aea2d35f0e6d18dfa0a1270914630b46f4ae11ba4817ed8b3605f3b914ca3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/GitHubArchiveStore.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fae20fccb5c2719674d0fbe657da34176e5117de864e121a441b87d3abe2939"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/RepoDetailCacheStore.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2bf3bac130e61b9d825775da84cd787423f8b1140edfa51708deb0a85723fbf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Support/RepoDetailStore.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edae6350957b8aafa8ec1039a975365820bcb028d06b0b4fbdb6ec48b2db35b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7792e93750fec456ae19e1d3f1ba3b5f5c143a6f5e50c3f1858a2d67e63a9b3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BPullRequests.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bb38e1fa3472b3d576b5fd08efc47025ca3bd1b86e7c5c9dcc4f2d5d420ed2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"9763f82994aeb9793d23e5f57f49e0457a3d7de667d6c16564761b7c09790d16"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc848bbc8c6954a555632231eb02453aef6fb75d879be896de69b8cf898e9528"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b2b776b5ceddb21fb5a566eff2f1880acc0d4f73e38f428a11c71126457fae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cf0afb079bd2f3ec70587ab525bdaedc2f23032fb625793592f68b71f83fc7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"757a4e3cd61f2fc4433db6dcf8c809736817c3d8c37cb3407e408845abf62e1a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/API/GitHubRestAPI\u002BReferenceLookup.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9100e7cfc1ad29b2f94f07125770f3dbe4fa9855baf57a31eaed855a4d8215d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Support/AsyncTimeout.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48e7e146b9f84d28c0b12931035fe481b1416436f26d0717e836b710a5ea7c4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Support/GitHubPullRequestNotificationRunner.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc135dec2ebe4b916d2d31f1ff7842530f147b0124f8a3d510fba60b6de3a41"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Support/GitHubReleaseNotificationRunner.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"214576a54ed8a375283c62f28ad24bdb8b4b2584c8864bd7f0a355e43c6138a2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/StatusBar/RecentListCache.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea76c908044d2a61db7017fa9250dfa6a46908902d77a6cd31f2f00d4869048"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Settings/RepoSettingsView.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"563ba065cc4a70dec836c4c2f978a4877ccdb261f33000963469b416404ea78f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Auth/AccountManager.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea49b94a0cf60f57cc6c78061f3e90a3f2bdb8e393433059b4e411a5a797fbf4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Auth/AccountManager.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d675d7448e62db95929e99768bb9583e34db9445a73966c3cef3465edf538db"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/Auth/OAuthCoordinator.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2340553bff24e0408d13097b49cfa637422fc0ded64e560fb465cfc5fd63aec1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState\u002BAccounts.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16888e1753e41bff97360b2165cdb45e24fbf217b9fc487fed4837079189359"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState\u002BIssueNavigation.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b85a478fb71be1ba5f8b186387cb18e3df87dd76c27139ea6ce6ad564861c8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBar/App/AppState.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc432bf852e8d127ac4b5cc5ba5108e9d09c2d8107efa02060152702396029e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RepoBariOS/Sources/Views/AddRepoSheet.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe06cfcb9b23b01c0d492135a049d33ca6591e7c99cff58ff442d69f0af8721e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060scanFileAccountIDs\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/Auth/TokenStore.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac54e7d80d4bc8abf03e97801324ed49782386964dc5fad381ef77b3305ef61e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060currentBranch\u0060 turns every thrown error into \u0060\u0022unknown\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalGitService.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9070b3397c2579a4aa7ec6bcce3f02e40edbc508e9e164f3b52b46f49789d6f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060currentBranch\u0060 turns every thrown error into \u0060\u0022unknown\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/RepoBarCore/LocalProjects/LocalProjectsService.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a29f52ed227f9fb3f8a7810b527f0b06efe04275325f8afb153abc08f442ae"}}],"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-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":8,"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."]}]}