{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"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":"StatusMenu.addMenuItems (cyclomatic 23): StatusMenu.addMenuItems has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/Menu/StatusMenu.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"150908f7fcce1dd1af14fcd2267119475817de4e08b9c73a258dba956b6ab732"}},{"ruleId":"D1","level":"warning","message":{"text":"ValetServicesDataManager.fetchHomebrewServices (cyclomatic 20): ValetServicesDataManager.fetchHomebrewServices has cyclomatic complexity 20 (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":"phpmon/Domain/App/Services/ValetServicesDataManager.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e622a011a2a7b08d891770a7b731a4d9e9548130c25cd232e233e2d024f8fe7b"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusMenu.addMenuItems (cognitive 28): StatusMenu.addMenuItems has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 10 (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":"phpmon/Domain/Menu/StatusMenu.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55559357f0fefa287e4c7c9af16c3392222467404e230be6b987a785078ba87"}},{"ruleId":"D2","level":"warning","message":{"text":"ValetServicesDataManager.fetchHomebrewServices (cognitive 22): ValetServicesDataManager.fetchHomebrewServices has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/App/Services/ValetServicesDataManager.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9794983f945da7d158ae89f9493cff0372485146f9f136a3881cf4eda20f5192"}},{"ruleId":"D2","level":"warning","message":{"text":"Packagist.getLatestStableVersion (cognitive 17): Packagist.getLatestStableVersion has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, error handling 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":"phpmon/Domain/Integrations/Packagist/Packagist.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"026f1b4a82e2dbaec62b4a40b616e16eb1257934cc1aa07fe1ac4379d7427f53"}},{"ruleId":"D2","level":"warning","message":{"text":"CertificateValidator.getCertificateInfo (cognitive 16): CertificateValidator.getCertificateInfo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/Integrations/Valet/Sites/CertificateValidator.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bac37f549af3bf55e5c06c75cb94534195cf676b1c62084d6ba94a6023e4730"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DomainListVC: TooManyMethods \u2014 70 methods, declared across 7 files: UI/DomainListVC\u002BActions.swift (24), UI/DomainListVC.swift (20), UI/DomainListVC\u002BContextMenu.swift (16), UI/DomainListVC\u002BSidebar.swift (4), \u002B3 more file(s). 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":"phpmon/Modules/Domain List/UI/DomainListVC.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"6178ee58347e4ddc5abc976a71c71986bc4f5070e127796a271167e368e9cc91"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MainMenu: TooManyMethods \u2014 67 methods, declared across 5 files: Menu/MainMenu.swift (29), Menu/MainMenu\u002BActions.swift (26), Menu/MainMenu\u002BSwitcher.swift (6), Menu/MainMenu\u002BFixMyValet.swift (4), \u002B1 more file(s). The bar is 30 methods; this is 37 over it, 2.23\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":"phpmon/Domain/Menu/MainMenu.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bf457c8e9ace9dcad2f5a8181d9caffd8351eb674723ae31852910ede8a2c4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Startup.makeGroups: MethodTooLong \u2014 makeGroups runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.18\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":"phpmon/Domain/App/Startup\u002BChecks.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d455b6c66f61478c5bbc3216bba5afe4fdc62becb7d24187a42f9af1baa5fe7b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WarningManager.allAvailableWarnings: MethodTooLong \u2014 allAvailableWarnings 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":"phpmon/Modules/PHP Doctor/Data/WarningManager\u002BEvaluations.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7386c706c80777ab62fbfa615ddd129e5677f7bf15e168ac403f4a85a34cc603"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift:34-88 | phpmon/Domain/Integrations/Homebrew/Commands/PHP Versions/RemovePhpVersionCommand.swift:49-109 \u2014 These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"be16369625c694aa047eae0b1ed41aea74497772d83c0cfb5810d3fa1f21a397"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): phpmon/Domain/SwiftUI/Domains/AddProxyView.swift:54-118 | phpmon/Domain/SwiftUI/Domains/AddSiteView.swift:84-142 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/SwiftUI/Domains/AddProxyView.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"109c19f1cc453875901cb6a0aaa97ef59e5fb7c06560c20510fe409d4da0a05b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): phpmon/Modules/Domain List/UI/DomainListWindowController.swift:191-231 | phpmon/Modules/Domain List/UI/DomainListWindowController.swift:233-267 \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":"phpmon/Modules/Domain List/UI/DomainListWindowController.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7ae56aa8f67a05d1f7723ff1eda4d09401b49be96c8f38c11641c86d65fecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView\u002BActions.swift:59-95 | phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView\u002BActions.swift:24-67 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView\u002BActions.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91eb6ba7f74e2f1d06d80b3a45a772a1aebb078d2b35020bc2e87cfa5767d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): phpmon/Modules/PHP Doctor/Data/WarningManager\u002BEvaluations.swift:211-228 | phpmon/Modules/PHP Doctor/Data/WarningManager\u002BEvaluations.swift:231-248 \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":"phpmon/Modules/PHP Doctor/Data/WarningManager\u002BEvaluations.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"573e7c702f76678682ec479b806b6b32a160fa2e50424afefc491dc806b63fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): phpmon/Common/Extensions/NSMenuItemExtension.swift:15-33 | phpmon/Common/Extensions/NSMenuItemExtension.swift:47-71 \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":"phpmon/Common/Extensions/NSMenuItemExtension.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8de4902256a89918d511a6d84feddc58e9fa0af1ba0b82fb0f24e1737043ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): phpmon/Domain/SwiftUI/Startup/StartupAlertWindowController.swift:21-37 | phpmon/Modules/OnboardingWizard/UI/OnboardingWizardWindowController.swift:26-46 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/SwiftUI/Startup/StartupAlertWindowController.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b858035f6c955bff6ac791b3c40ab7b36026ae055bb295b93ec33d6f6e4bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/InstallPhpExtensionCommand.swift:73-97 | phpmon/Domain/Integrations/Homebrew/Commands/PHP Versions/ModifyPhpVersionCommand.swift:197-224 \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":"phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/InstallPhpExtensionCommand.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fc8e165de937d6ffdfb3eddc1d337cfd328190c34271101d827e722a8b7b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): phpmon/Common/Monitoring/Testable/TrackedTestableCommand.swift:19-37 | phpmon/Common/Monitoring/TrackedCommand.swift:21-39 \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":"phpmon/Common/Monitoring/Testable/TrackedTestableCommand.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a914e644ad06e5a6d44e1fbd3bbf525f0eac21ee685be4d8a2e4833d38f88da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): phpmon/Modules/PHP Config Editor/UI/ConfigManagerWindowController.swift:20-33 | phpmon/Modules/PHP Doctor/UI/PhpDoctorWindowController.swift:20-34 | phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerWindowController.swift:23-38 | phpmon/Modules/WelcomeScreen/WelcomeScreenWindowController.swift:20-33 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Modules/PHP Config Editor/UI/ConfigManagerWindowController.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5708021e8cef7a09282a9e5872360700b5a57aa2711057d5f0aaeab29f64d33a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): phpmon/Common/Shell/TestableShell.swift:184-206 | phpmon/Common/Shell/TestableShell.swift:211-230 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Common/Shell/TestableShell.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc345c67f7b9c330c85f10c63a60ea942727b2b73a231eb43ba2b2216a228b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/InstallPhpExtensionCommand.swift:56-71 | phpmon/Domain/Integrations/Homebrew/Commands/PHP Versions/ModifyPhpVersionCommand.swift:124-139 | phpmon/Domain/Integrations/Homebrew/Commands/PHP Versions/ModifyPhpVersionCommand.swift:141-156 \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":"phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/InstallPhpExtensionCommand.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5c96988fbdc1b37833a1cf0ed90cd5ef6d858d7fe840da56a6de7297e79b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): phpmon/Domain/Integrations/Valet/Proxies/ValetProxy.swift:140-148 | phpmon/Domain/Integrations/Valet/Sites/ValetSite\u002BSecurity.swift:106-114 \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":"phpmon/Domain/Integrations/Valet/Proxies/ValetProxy.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b875ffa7a9e5b3a061296d2f945a7f34b51737249a3fef57441c464c4404e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): phpmon/Domain/Watcher/ConfigWatchManager.swift:205-223 | phpmon/Domain/Watcher/HomebrewWatchManager.swift:169-187 \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":"phpmon/Domain/Watcher/ConfigWatchManager.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"1873417b06ceeafddce0503e89a58dc806942c0fa0699eea7df85bc7cc17306d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BDevTools.swift:35-51 | phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BEnvironment.swift:72-89 | phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BHomebrew.swift:50-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 15 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":"phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BDevTools.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2a7501805ea662756a72eb078e54abd47f6db125c0a9a1d15acce29bba00b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView\u002BActions.swift:13-30 | phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView\u002BActions.swift:187-204 \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":"phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView\u002BActions.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"084f7ce112d2bc392dfff88d121cf6b7bbb251986518f67ef3a22360b296c885"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): phpmon/Modules/Domain List/UI/Cells/DomainListNameCell.swift:80-90 | phpmon/Modules/Domain List/UI/Cells/DomainListTypeCell.swift:73-82 \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":"phpmon/Modules/Domain List/UI/Cells/DomainListNameCell.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"718debb0a7f47c8f5b91fb75d1f87a50e1b7c7a2169685b7549f403bc360b7d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): phpmon/Common/Monitoring/Testable/TrackedTestableShell.swift:52-67 | phpmon/Common/Monitoring/TrackedShell.swift:51-62 \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":"phpmon/Common/Monitoring/Testable/TrackedTestableShell.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe77376c521c4875cecb8819187020248e451599a5a02e145f12a4e25d20ba7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): phpmon/Common/PHP/PHP Version/VersionNumber.swift:115-122 | phpmon/Common/PHP/PHP Version/VersionNumber.swift:124-131 \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":"phpmon/Common/PHP/PHP Version/VersionNumber.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81398b66f771dcffc92d7c6a04dce4ca4d76aba9c6504a927a0b120c18e9d00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): phpmon/Common/PHP/PhpConfigurationFile.swift:73-83 | phpmon/Domain/Integrations/Nginx/NginxConfigurationFile.swift:28-42 \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":"phpmon/Common/PHP/PhpConfigurationFile.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"db20f7a0bf04b594bd6d3db7372aec33be960280cc6147b40de6f14d8333df53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): phpmon/Domain/Menu/MainMenu\u002BActions.swift:322-335 | phpmon/Domain/Menu/MainMenu\u002BActions.swift:346-359 \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":"phpmon/Domain/Menu/MainMenu\u002BActions.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07ecbc34560250c9920d5249499d191398e01a50d7fa45d15f2fe63a052ca67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): phpmon/Common/Http/RealWebApi.swift:83-94 | phpmon/Common/Http/TestableWebApi.swift:28-35 \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":"phpmon/Common/Http/RealWebApi.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c23a9e85db90c7f0f7de805c4b3ecbc7dc34af24ef340d915d30ea44b1c600"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): phpmon/Modules/Domain List/UI/DomainListVC\u002BActions.swift:187-197 | phpmon/Modules/Domain List/UI/DomainListVC\u002BActions.swift:199-209 \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":"phpmon/Modules/Domain List/UI/DomainListVC\u002BActions.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e9c8f52c0c18651fcf7c83138ef4661ffddbea7bc5874ef58b925837b4f290"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView.swift:133-142 | phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift:224-233 \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":"phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9fb0f3eac6ad0a483d7245c425bca72aae2e92922526f1d41100050612f436"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): phpmon/Domain/App/Services/ServicesManager.swift:67-85 | phpmon/Domain/App/Services/ServicesManager.swift:87-101 \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":"phpmon/Domain/App/Services/ServicesManager.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d8039a616ebbb6f75b0e94fea75c83c651a78d4bbbedc38f4fc346da6ced5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): phpmon/Modules/Command History/UI/CommandHistoryWindowController.swift:46-55 | phpmon/Modules/PHP Doctor/UI/PhpDoctorWindowController.swift:36-45 | phpmon/Modules/WelcomeScreen/WelcomeScreenWindowController.swift:35-44 \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":"phpmon/Modules/Command History/UI/CommandHistoryWindowController.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8a73dee5820c2b46d3ed961d039c58a337bc841e25ef4e77f5a674fc40e2bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): phpmon/Domain/Integrations/Valet/Domains/ValetInteractor.swift:118-131 | phpmon/Domain/Integrations/Valet/Domains/ValetInteractor.swift:133-146 \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":"phpmon/Domain/Integrations/Valet/Domains/ValetInteractor.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"8010920fba0e10367220d8d1b50efeaa6572202957cd3322cd04533fac4a39cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): phpmon/Modules/Domain List/UI/DomainListVC\u002BActions.swift:102-117 | phpmon/Modules/Domain List/UI/DomainListVC\u002BActions.swift:135-150 \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":"phpmon/Modules/Domain List/UI/DomainListVC\u002BActions.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"45291ccf9ba13d61d58ea3ee20c396659bcfcedfcf3be9324523d9173213a230"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): phpmon/Modules/OnboardingWizard/UI/OnboardingWizardView\u002BActions.swift:32-42 | phpmon/Modules/OnboardingWizard/UI/OnboardingWizardView\u002BActions.swift:44-54 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Modules/OnboardingWizard/UI/OnboardingWizardView\u002BActions.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f4305d870cd62421c64b390f7df858d90b009869eac2a0a104ca09003dfb6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): phpmon/Modules/Domain List/UI/Cells/DomainListTLSCell.swift:84-99 | phpmon/Modules/Domain List/UI/Cells/DomainListTLSCell.swift:101-116 \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":"phpmon/Modules/Domain List/UI/Cells/DomainListTLSCell.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"115d77a90f2a4f440930a35873f1e9a0b385969ebbbb231d03bbbf24b9122236"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): phpmon/Domain/Preferences/Preferences.swift:58-65 | phpmon/Domain/Preferences/Preferences.swift:67-74 | phpmon/Domain/Preferences/Preferences.swift:76-83 \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":"phpmon/Domain/Preferences/Preferences.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"676233ba8304c0a656ddbdf455ed973c004d7f62013d6718a4f958b47b5a0b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): phpmon/Common/Http/RealWebApi.swift:54-66 | phpmon/Common/Http/RealWebApi.swift:68-81 \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":"phpmon/Common/Http/RealWebApi.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"239fdc292b3b50e401fa3960193eb09a8da133ac15858a4a70fe5165c5d82fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): phpmon/Common/PHP/ActivePhpInstallation.swift:112-118 | phpmon/Modules/PHP Config Editor/Data/BytePhpPreference.swift:71-76 \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":"phpmon/Common/PHP/ActivePhpInstallation.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b5ec0fde8ff8920649fe31d7a2ef226b6c6a54ca4eacbd5e26c862f70d3254"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): phpmon/Common/Monitoring/Testable/TrackedTestableShell.swift:43-50 | phpmon/Common/Monitoring/TrackedShell.swift:42-49 \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":"phpmon/Common/Monitoring/Testable/TrackedTestableShell.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6cc7964c496d13ebcf4d429fdcaec3e4de2168ab8ca012bc36741323eab494"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): phpmon/Domain/Integrations/Valet/Proxies/ValetProxy.swift:90-92 | phpmon/Domain/Integrations/Valet/Sites/ValetSite.swift:321-323 \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":"phpmon/Domain/Integrations/Valet/Proxies/ValetProxy.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1cf1b5766f8d18f0c51fc6a22bb7b02928e7612c3ff1808dd6cd5c703dcdde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): phpmon/Common/Monitoring/Testable/TrackedTestableShell.swift:34-41 | phpmon/Common/Monitoring/TrackedShell.swift:33-40 \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":"phpmon/Common/Monitoring/Testable/TrackedTestableShell.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db7294febfadf4a49fe2e8daf7e329814feb3aa0fe768f5811fd9831606dd7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): phpmon/Common/Monitoring/Testable/TrackedTestableShell.swift:26-32 | phpmon/Common/Monitoring/TrackedShell.swift:25-31 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Common/Monitoring/Testable/TrackedTestableShell.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"445e2cc74550e07ba9cf897d798c7d9349c13acfd96ee3c1bce399d632362421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): phpmon/Domain/SwiftUI/Domains/AddProxyView.swift:72-110 | phpmon/Domain/SwiftUI/Domains/AddSiteView.swift:95-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 \u0060phpmon/Domain/SwiftUI/Domains/AddProxyView.swift:72\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006012\u0060 in one and \u006015\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":"phpmon/Domain/SwiftUI/Domains/AddProxyView.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c5fb0aa74fa04ae3f3d8ea85f8bfd7027614b40c8df8425b7e100e5774fd1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift:49-65 | phpmon/Domain/Integrations/Homebrew/Commands/PHP Versions/RemovePhpVersionCommand.swift:70-86 \u2014 before extracting anything, compare \u0060phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift\u0060 and \u0060phpmon/Domain/Integrations/Homebrew/Commands/PHP Versions/RemovePhpVersionCommand.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift:49\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":"phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7aeb4dfc07b13f2eb8586040f1712b5587f0c7e2f2d9bd008240fb885df2f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201316 lines \u00D7 5): phpmon/Domain/SwiftUI/Domains/VersionPopoverView.swift:155-163 | phpmon/Domain/SwiftUI/Domains/VersionPopoverView.swift:164-179 | phpmon/Domain/SwiftUI/Domains/VersionPopoverView.swift:180-194 | phpmon/Domain/SwiftUI/Domains/VersionPopoverView.swift:197-211 | phpmon/Domain/SwiftUI/Domains/VersionPopoverView.swift:214-229 \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 \u0060phpmon/Domain/SwiftUI/Domains/VersionPopoverView.swift:155\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":"phpmon/Domain/SwiftUI/Domains/VersionPopoverView.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f98ab938869401d864715403f06fdccd66f5946316e7c0aae8f6a1f755fe59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 3): phpmon/Domain/Integrations/Homebrew/Commands/BrewCommand.swift:116-131 | phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift:61-73 | phpmon/Domain/Integrations/Homebrew/Commands/PHP Versions/RemovePhpVersionCommand.swift:82-94 \u2014 before extracting anything, compare \u0060phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift\u0060 and \u0060phpmon/Domain/Integrations/Homebrew/Commands/PHP Versions/RemovePhpVersionCommand.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060phpmon/Domain/Integrations/Homebrew/Commands/BrewCommand.swift:116\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":"phpmon/Domain/Integrations/Homebrew/Commands/BrewCommand.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"53631c21da0f89aa659887a160479dcdc632c7dc8558902a58ce2184a500b4dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): phpmon/Domain/SwiftUI/Startup/StartupAlertView.swift:103-118 | phpmon/Domain/SwiftUI/Startup/StartupAlertView.swift:124-139 | phpmon/Domain/SwiftUI/Startup/StartupAlertView.swift:147-162 \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 \u0060phpmon/Domain/SwiftUI/Startup/StartupAlertView.swift:103\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":"phpmon/Domain/SwiftUI/Startup/StartupAlertView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8da0d77ecc7de074e6723bb5aec4ea62dd98fa5a7cccb53af1f3e5a3d8ffd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): phpmon/Domain/App/Startup\u002BChecks.swift:197-211 | phpmon/Domain/App/Startup\u002BChecks.swift:222-236 \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 \u0060phpmon/Domain/App/Startup\u002BChecks.swift:197\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":"phpmon/Domain/App/Startup\u002BChecks.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"2430105af22a259f7061181557f1bfba7213fde7782b16d47dc256bd2d0f394b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView.swift:117-131 | phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift:166-180 \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 \u0060phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView.swift:117\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":"phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e979afe620a7935041b0a438364f26645865e8898dd9fa31dce6ae52c0da794"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): phpmon/Modules/Domain List/UI/DomainListWindowController.swift:220-231 | phpmon/Modules/Domain List/UI/DomainListWindowController.swift:256-267 \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 \u0060phpmon/Modules/Domain List/UI/DomainListWindowController.swift:220\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":"phpmon/Modules/Domain List/UI/DomainListWindowController.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b223ebd92a652e371119476eff23bbc9fd54b27c0a21346417b471f7863cad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView\u002BActions.swift:34-45 | phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView\u002BActions.swift:99-109 \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 \u0060phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView\u002BActions.swift:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView\u002BActions.swift:110\u0060 calls \u0060setBusyStatus\u0060 and \u0060phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView\u002BActions.swift:46\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":"phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView\u002BActions.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"442d99052022028b6f408836da4aa41ff052b53e99ec7266b17f6b23402bcd34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): phpmon/Domain/SwiftUI/Startup/StartupAlertView.swift:92-101 | phpmon/Domain/SwiftUI/Startup/StartupAlertView.swift:107-117 | phpmon/Domain/SwiftUI/Startup/StartupAlertView.swift:128-138 | phpmon/Domain/SwiftUI/Startup/StartupAlertView.swift:151-161 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060phpmon/Domain/SwiftUI/Startup/StartupAlertView.swift:92\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":"phpmon/Domain/SwiftUI/Startup/StartupAlertView.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acd4790aab52ecac3c63a3ab8318cb81e58ab88b05a93f54de1ddba71d96b2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): phpmon/Common/Monitoring/Testable/TrackedTestableCommand.swift:20-29 | phpmon/Common/Monitoring/TrackedCommand.swift:21-31 \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 \u0060phpmon/Common/Monitoring/Testable/TrackedTestableCommand.swift:20\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 register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Common/Monitoring/Testable/TrackedTestableCommand.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"84242f79d3a82a704f5d9f25516ebfbf3a7e8c83b2b2ee0c0539f3ccb0027d92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): phpmon/Domain/Integrations/Homebrew/Commands/BrewCommand.swift:102-111 | phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift:51-60 | phpmon/Domain/Integrations/Homebrew/Commands/PHP Versions/RemovePhpVersionCommand.swift:72-81 \u2014 before extracting anything, compare \u0060phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift\u0060 and \u0060phpmon/Domain/Integrations/Homebrew/Commands/PHP Versions/RemovePhpVersionCommand.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060phpmon/Domain/Integrations/Homebrew/Commands/BrewCommand.swift:102\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, \u0060phpmon/Domain/Integrations/Homebrew/Commands/BrewCommand.swift:113\u0060 calls \u0060reportInstallationProgress\u0060, \u0060onProgress\u0060, \u0060create\u0060 and \u0060phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift:61\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/Integrations/Homebrew/Commands/BrewCommand.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3170efd6d86ffe3642bdcd8d2c50991c31e76edb29d4d71fa3d586aaf474b527"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): phpmon/Modules/PHP Config Editor/UI/ConfigManagerWindowController.swift:20-28 | phpmon/Modules/WelcomeScreen/WelcomeScreenWindowController.swift:20-28 \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 \u0060phpmon/Modules/PHP Config Editor/UI/ConfigManagerWindowController.swift:20\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":"phpmon/Modules/PHP Config Editor/UI/ConfigManagerWindowController.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd751656d782779c26f719c64275d3e241b6df71679cc0f2dcd7ed9deeaa880"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): phpmon/Modules/PHP Config Editor/UI/ConfigManagerView.swift:19-26 | phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView.swift:115-122 \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 \u0060phpmon/Modules/PHP Config Editor/UI/ConfigManagerView.swift:19\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060phpmon/Modules/PHP Config Editor/UI/ConfigManagerView.swift:27\u0060 calls \u0060bold\u0060 and \u0060phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView.swift:123\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":"phpmon/Modules/PHP Config Editor/UI/ConfigManagerView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06be7741bcedcd0708253da464fe822570221d54782aed1b8d9f5749e171e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): phpmon/Modules/PHP Doctor/UI/PhpDoctorView.swift:35-41 | phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView.swift:120-126 | phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift:169-175 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060phpmon/Modules/PHP Doctor/UI/PhpDoctorView.swift:35\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, \u0060phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerView.swift:127\u0060 calls \u0060foregroundColor\u0060 and \u0060phpmon/Modules/PHP Doctor/UI/PhpDoctorView.swift:42\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":"phpmon/Modules/PHP Doctor/UI/PhpDoctorView.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f43b2efde6e7ee61963e812ef9d51516353e2eabada4021c94d3f0e1d2402cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): phpmon/Domain/Menu/AppMenu.swift:205-211 | phpmon/Domain/Menu/AppMenu.swift:216-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 \u0060phpmon/Domain/Menu/AppMenu.swift:205\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":"phpmon/Domain/Menu/AppMenu.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25101e07fa454932b3b2ff7fdb3bc8afd6dc88c3fffa5b1a3e7de676bbe8bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BDevTools.swift:41-48 | phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BHomebrew.swift:55-61 \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 \u0060phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BDevTools.swift:41\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":"phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BDevTools.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f837741957052e374f12ea9c2992000ca72cb490c64477cde4bb0fff3256214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): phpmon/Domain/App/Startup\u002BChecks.swift:50-55 | phpmon/Domain/App/Startup\u002BChecks.swift:106-111 | phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BPHP.swift:28-30 \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 \u0060phpmon/Domain/App/Startup\u002BChecks.swift:50\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/App/Startup\u002BChecks.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb79ebc306958e32fa8454bf18436061bf0b283033d2928a9c63740b5085d1f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): phpmon/Domain/Watcher/ConfigWatchManager.swift:84-96 | phpmon/Domain/Watcher/HomebrewWatchManager.swift:82-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060phpmon/Domain/Watcher/ConfigWatchManager.swift:84\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060debounceInterval\u0060 to \u0060TimeInterval = 0.75\u0060 in one and \u0060TimeInterval = 5.0\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":"phpmon/Domain/Watcher/ConfigWatchManager.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb1f878ae166868ef5d39bc2b00e90fb862ae63e629ef519773810b698c7d0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): phpmon/Modules/Domain List/UI/Cells/DomainListKindCell.swift:19-24 | phpmon/Modules/Domain List/UI/Cells/DomainListPhpCell.swift:22-27 | phpmon/Modules/Domain List/UI/Cells/DomainListTLSCell.swift:22-27 | phpmon/Modules/Domain List/UI/Cells/DomainListTypeCell.swift:23-28 \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 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Modules/Domain List/UI/Cells/DomainListKindCell.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a655dd2e925d50bc113857048c945f75a9c51a0681be1c82d58a12d3eb360a7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): phpmon/Modules/PHP Config Editor/UI/ConfigManagerWindowController.swift:35-43 | phpmon/Modules/PHP Extension Manager/UI/PhpExtensionManagerWindowController.swift:40-48 | phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerWindowController.swift:42-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Modules/PHP Config Editor/UI/ConfigManagerWindowController.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"173a8ddba5b15b111326f881863a4c188f8de6554e10f68aab413b2045168d62"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RealFileSystem (LCOM4 15): RealFileSystem\u0027s methods fall into 15 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 15 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":"phpmon/Common/Filesystem/RealFileSystem.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dfd43c64241c7856006080f7daecc1c0f15ed9c35c8492491ac81b9d6a6f16"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainMenu (LCOM4 15): MainMenu\u0027s methods fall into 15 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 15 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":"phpmon/Domain/Menu/MainMenu.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"931d991a778b0deaf8723ed25f2319c973ffcb6e290beb52e5db8b6bae5e8e28"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppDelegate (LCOM4 7): AppDelegate\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/App/AppDelegate.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09b464d2cb774fca9456c5850e62a4b7ca485f98f5febce532f3789e111f7e7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ValetSite (LCOM4 7): ValetSite\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/Integrations/Valet/Sites/ValetSite.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"493d80ccb1b35e6fdee5715aaec3fb628dbe9e7f07df3b586527fb4e3dc143bb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ValetProxy (LCOM4 6): ValetProxy\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":"phpmon/Domain/Integrations/Valet/Proxies/ValetProxy.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe618fd5808ef94b6f61d995ddf75340144db4ff49b64308316873b6b98fd73"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: App (LCOM4 5): App\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/App/App.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc0374aaccc8f404268fe29de1ffe9d87b346d50eea849a9f6c5fbd1dbcf623"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 5): String\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Common/Extensions/StringExtension.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00cb129b40cd4d14efd34279700cec74969c99ba156969f305aa3c4a579271d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Actions (LCOM4 4): Actions\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":"phpmon/Common/Core/Actions.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd883dd2ddd1661ea95bd17b33508cb01604ff5ccb7e729e38ded7e63ea68381"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Perhaps rename this to \u0022updatePathAutomatically\u0022? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BEnvironment.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ea799adb973b6c6b435550e72e1d4fb7a2c8995721e463345657525297ca5a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Verify that conditions under which this scenario is valid? Might need to remove this! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BEnvironment.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"27514b5e57ba322fdc23e1804a2d85570b67f56b3238a461b3a0e36201c9371e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove this if Homebrew can be (fake) installed \u0022externally\u0022 via UI tests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BHomebrew.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"56878f6efc7fc1a25ffdbe770e2703cb439dd14239b5e3b187d503400ae3faac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add other commands that use AppleScript, so that they can use this abstraction, too! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/PrivilegedCommand/PrivilegedCommandReason.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd6e43270146a70d644bd885f8035ade3c12bfa2f208ba601b41b58b0bb99c7"}},{"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 \u0060PHP Monitor.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PHP Monitor.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af74d56e61d5ceb1efe1b02aa04f30388d49e7c626d3f9f9fe7d5b67de917563"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060appendToPATH\u0060 spells \u0060PATH\u0060 where 71 names in the project spell it \u0060Path\u0060: 71 of 72 names in project repository spell the token \u0060Path\u0060 (71 of 72; unit: names in project repository containing \u0060Path\u0060). Peers: Onboarding.valetSudoersPath (phpmon/Common/Core/CommandCatalog.swift:19); Log.logFilePath (phpmon/Common/Core/Logger.swift:21); Paths.homePath (phpmon/Common/Core/Paths.swift:102); Paths.cellarPath (phpmon/Common/Core/Paths.swift:115); Paths.binPath (phpmon/Common/Core/Paths.swift:119). Rename to \u0060appendToPath\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Common/Core/AppleScript.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8dfe254b2ca66e09bada6c3bb2bbc08f1ff0efa853006ec80f31baee983328"}},{"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":"1ddd4a3eacb5abc26b76d406ddb70aae9070bf3a368b86a2ade443eb3e11ee6d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a2faf708a19c10bb6a3d6ec4bae6bcb9d1a57f2dd774f609f030cd152fa4fc9a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: RemovePhpExtensionCommand.swift \u2194 RemovePhpVersionCommand.swift: \u0060phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift\u0060 and \u0060phpmon/Domain/Integrations/Homebrew/Commands/PHP Versions/RemovePhpVersionCommand.swift\u0060 change together 73% of the time (11 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u00609c6fe29d\u0060 \u267B\uFE0F Even more concurrency cleanup; \u006083d381c1\u0060 \uD83D\uDD27 Set HOMEBREW_NO_ASK=true (just to be safe); \u0060968134fb\u0060 \u267B\uFE0F Handle timeout when removing extension or package \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/Integrations/Homebrew/Commands/PHP Extensions/RemovePhpExtensionCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"500f05ff8a7488b09986e8d22c74fe3a2b8b43e69686d56fbeb47387954bbb47"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: WarningManager.swift \u2194 WarningView.swift: \u0060phpmon/Modules/PHP Doctor/Data/WarningManager.swift\u0060 and \u0060phpmon/Modules/PHP Doctor/UI/WarningView.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 different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060e8e0342f\u0060 \uD83D\uDC1B Ensure reloading warnings also reloads installed taps; \u00605d42481f\u0060 \u2728 Improved UI for automatic fixes; \u006038268858\u0060 \u2728 Add automatic fix for phpmon bin PATH \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Modules/PHP Doctor/Data/WarningManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20ae69650f48817a523c7ea15d1bc6d22e357d1d6fd68f82c06e33e99aeac6b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ValetProxy.swift \u2194 ValetSite.swift: \u0060phpmon/Domain/Integrations/Valet/Proxies/ValetProxy.swift\u0060 and \u0060phpmon/Domain/Integrations/Valet/Sites/ValetSite.swift\u0060 change together 61% of the time (14 of the 23 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 14 shared commits counted here, the most recent 3 are \u00609c6fe29d\u0060 \u267B\uFE0F Even more concurrency cleanup; \u006049577f2f\u0060 \u2728 Add script to generate expired cert for testing; \u0060998e704b\u0060 \u2728 Add popover with certificate information \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/Integrations/Valet/Proxies/ValetProxy.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab3d945e2cd515483cad9b6b628e20a55b522e20d9d8f58d5a79d14edbe36c2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: RealShell.swift \u2194 TestableShell.swift: \u0060phpmon/Common/Shell/RealShell.swift\u0060 and \u0060phpmon/Common/Shell/TestableShell.swift\u0060 change together 60% of the time (24 of the 40 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 24 shared commits counted here, the most recent 3 are \u00609c6fe29d\u0060 \u267B\uFE0F Even more concurrency cleanup; \u0060449c9faa\u0060 \u267B\uFE0F Improved locking and consistency fixes; \u00601e9d94a8\u0060 \uD83D\uDC1B Safety fixes for \u0060didReceiveOutput\u0060 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Common/Shell/RealShell.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ad790e2f08c847e167ddb847469552900535f7a596fcd35105f094204dff1b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MainMenu\u002BActions.swift \u2194 Preset.swift: \u0060phpmon/Domain/Menu/MainMenu\u002BActions.swift\u0060 and \u0060phpmon/Domain/Presets/Preset.swift\u0060 change together 57% of the time (12 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060691436b6\u0060 \uD83D\uDC1B Handle an unreadable active PHP version safely; \u00604b8f05b8\u0060 \u267B\uFE0F Add Suspendable to ConfigWatchManager; \u0060dc1a5b9b\u0060 \u267B\uFE0F Make NVAlert invocation more consistent \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Domain/Menu/MainMenu\u002BActions.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f4cc1cf182cc79957b37a30954e7c1cb5a6b38d9020aabe051fdff243190e6"}},{"ruleId":"D37","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":"2e96dfd6d93fe913fb2e9028610c982dbd322c76ecf26cfdd7734b74da991d0f"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Credits.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4329feb6155522d0472775e3eb90d38ace81f9f6e942056a6a84c966bf98bb95"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Credits.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb53e81d3a2984529ef5a504908e39c54246cbf989000781f011bf34271281a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"phpmon/Credits.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2ef709c1a2b8e060c34686cf6d81b8a434ac5c96fde44850374959fc7988c6"}},{"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 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/tests.yml"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"Changelog looks stale/thin: The changelog this check read carries 0 versioned entries, against a bar of 3. Counted as either the distinct \u0060x.y.z\u0060 versions it names (a link\u0027s target is not counted) or its version-shaped section headings (\u0060## [1.2.0]\u0060, \u0060## V14.x.x\u0060, \u0060## Updates in 8.0.x\u0060), whichever is the larger \u2014 so a log sectioned by minor series counts its sections, not its individual patch numbers. Entries recorded somewhere this check does not read \u2014 release notes generated at tag time from a generator config it did not recognise, or a log kept outside the repository \u2014 are not counted here, and this row is about what is re-findable in the tree rather than about how often you release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9a74c249fe67853238d9c15085f7f97d31f51bb82455046aa10c2cef82f67b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060container.filesystem.fileExists(container.paths.valet) || container.filesystem.fileExists(\u0022~/.composer/vendor/bin/valet\u0022)\u0060 appears character-identically in 2 files \u2014 phpmon/Domain/App/Startup\u002BChecks.swift, phpmon/Modules/OnboardingWizard/Data/OnboardingWizardViewModel\u002BSteps.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":"phpmon/Domain/App/Startup\u002BChecks.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d741d5e891098b0cccf1d669a097f17936f797d169e7868d250a70f6be2380d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060progress.phpInstalled \u0026\u0026 progress.composerInstalled\u0060 appears character-identically in 3 files \u2014 phpmon/Modules/OnboardingWizard/Data/OnboardingWizardViewModel\u002BPresentation.swift, phpmon/Modules/OnboardingWizard/Data/OnboardingWizardViewModel.swift, phpmon/Modules/OnboardingWizard/Runner/OnboardingStepRunner\u002BPHP.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":"phpmon/Modules/OnboardingWizard/Data/OnboardingWizardViewModel\u002BPresentation.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82398bb25bd053629e8d253acb52c36b83e1c0c12d58aaa85a37f3a65508593"}},{"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":"phpmon/Domain/Preferences/Keybinds/GlobalKeybindPreference.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"da65120484f03ace43853452dfe8f37b410fbdb58542408422659ce1f8b64fc7"}},{"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":"phpmon/Domain/Integrations/Homebrew/BrewPhpExtension.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7bcd57d0a8e810b8f5a8aa32222fee91ae1ac888587453aadfc2d7e78658d8"}},{"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":"phpmon/Domain/Integrations/Homebrew/Commands/PHP Versions/RemovePhpVersionCommand.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cec01d868aed101fb3b47ed8043805739f52ecd23096b813e798013df00c5c7"}},{"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":"phpmon/Domain/Integrations/Homebrew/Behaviors/BrewPermissionFixer.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"52120591c9e32d64235efd6baa4b1e0be64babcfe29cc0d6ec302320083011d4"}},{"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":"phpmon/Domain/Integrations/Common/RCFile.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca83e847d5bf493333b098e2c093d40116928f3a2ecfd7b41cf4c0ba83a351b"}},{"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":"phpmon/Domain/App/AppVersion.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d294de97bfd07b0dea0bc97180fcd17fc428cc938ee7062bba4b281290b81d"}},{"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":"phpmon/Common/Helpers/VersionExtractor.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"259ea9a5ad7a48b8795a80cfaca025eaf0204e45bc8f4a1bc0a0b8d154f3f410"}},{"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":"phpmon/Common/Filesystem/RealFileSystem.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8a5a06e3c7615c2785a56fd072fa8d1a58495147720d179775a00293344074"}},{"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":"phpmon/Common/Filesystem/RealFileSystem.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"567cb6c8a89c86badb130a457f0f89794da56942320c21d32b1e91dc0d050c17"}},{"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":"phpmon/Common/Extensions/StringExtension.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"114674de59004257a97a0cfd99848bedfdea6679894949c199515ff62649a475"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extractDependencies\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":"phpmon/Domain/Integrations/Homebrew/BrewPhpExtension.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79135c9aebc81fe5dc76543432cdbfde703abb75935d3666404d913abc616e4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060stripped\u0060 turns every thrown error into \u0060\u0022\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":"phpmon/Common/Extensions/StringExtension.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"858d819b63c5b8c42ab8517a80924be54da51d3a14ae96314b3922270d20d7ef"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"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-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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"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/"}]}],"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":3,"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."]}]}