{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"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":"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":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.applyMacosCompatibilityForMountedInstaller (cyclomatic 84): AnalysisLogic.applyMacosCompatibilityForMountedInstaller has cyclomatic complexity 84 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"58dbf470728c46c3c0d1ed520cc39582bc216fa58b7a8079310e6d82704f9974"}},{"ruleId":"D1","level":"warning","message":{"text":"USBTargetDiscoveryService.scan (cyclomatic 80): USBTargetDiscoveryService.scan has cyclomatic complexity 80 (threshold 15). Of this number, 73 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBTargetDiscoveryService.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"1568553d0b334fa8ae35728f2ac1b5c547119a43be73f483e5cf50b191285bd4"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.applyMacosCompatibilityForAppInstaller (cyclomatic 78): AnalysisLogic.applyMacosCompatibilityForAppInstaller has cyclomatic complexity 78 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4823e8036266f3c9eb6c734787cd79af25048e1a11bb42a3607d1bc005f6e3e4"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.classifyLinuxDistribution (cyclomatic 67): AnalysisLogic.classifyLinuxDistribution has cyclomatic complexity 67 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxClassification.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3417d6cd4ffabb19e11996667c346dd4f2808f12234fd2fd98cfef848c86729a"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemAnalysisView.detectedOrUnsupportedView (cyclomatic 50): SystemAnalysisView.detectedOrUnsupportedView has cyclomatic complexity 50 (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":"macUSB/Features/Analysis/SystemAnalysisView.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae446ad7f85a2561a2eab7bf210b619fe9c05a7bc121c13ddfdfa8d35c780ab2"}},{"ruleId":"D1","level":"warning","message":{"text":"UniversalInstallationView.body (cyclomatic 48): UniversalInstallationView.body has cyclomatic complexity 48 (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":"macUSB/Features/Installation/UniversalInstallationView.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e1262282041ddf82967bc992782a4bb6265d10761e3f2864536e67d12da43b"}},{"ruleId":"D1","level":"warning","message":{"text":"UniversalInstallationView.startCreationProcessWithHelper (cyclomatic 48): UniversalInstallationView.startCreationProcessWithHelper has cyclomatic complexity 48 (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":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f10849a5948ded0c7e1a43856dc33aaccc29d6bc280f18d35746d039ad3bdb"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.classifyWindowsServerFamily (cyclomatic 40): AnalysisLogic.classifyWindowsServerFamily has cyclomatic complexity 40 (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":"macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsClassification.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b7aecf937a3fd38150c66e5b1322629315fbeaa387133fce1dd9bfd81c179c"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.confirmUSBTargetForHandoff (cyclomatic 38): AnalysisLogic.confirmUSBTargetForHandoff has cyclomatic complexity 38 (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":"macUSB/Features/Analysis/Logic/AnalysisLogicUSBAdmission.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c212e5600e3628ba85cb511ec40ff936bdf3ca795dbe71a2d07203ed4f79aa0"}},{"ruleId":"D1","level":"warning","message":{"text":"USBDiscoveryProcessRunner.runReport (cyclomatic 38): USBDiscoveryProcessRunner.runReport has cyclomatic complexity 38 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDiscoveryProcessRunner.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e1284eab82ed24a63743bcc83f6ec0d6e58cc3699106d6cb75b4e336eb6e4c"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.startAnalysis (cyclomatic 32): AnalysisLogic.startAnalysis has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/AnalysisLogicAnalysisFlow.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1933e609ec4513829e5ac15bd9ea2c75146bbc5d6b45e0844ef99ae7e9e62e7e"}},{"ruleId":"D1","level":"warning","message":{"text":"FinishUSBView.body (cyclomatic 31): FinishUSBView.body has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Finish/FinishUSBView.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"8234c8d25b1c2fb5f382632986a5012003075340f1d79ebede08cb41227b2242"}},{"ruleId":"D1","level":"warning","message":{"text":"USBDiscoveryVolumeCollector.collect (cyclomatic 30): USBDiscoveryVolumeCollector.collect has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDiscoveryVolumeCollector.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"95da0157f95eedb451321dc1c25c198109a3c6941cadfce0398267b159e68b2d"}},{"ruleId":"D1","level":"warning","message":{"text":"macUSBApp.body (cyclomatic 29): macUSBApp.body has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/App/macUSBApp.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"82efdf9b83af6e6d779cbc61be40fde0ff4c692e2134dae91a93ed992f2b0b47"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.classifyWindowsFamily (cyclomatic 26): AnalysisLogic.classifyWindowsFamily has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsClassification.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"411a6f671e336c345cbf67680bfc40c0d9b1c2459b32153ba772e04091e17f3c"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.mountAndReadInfo (cyclomatic 26): AnalysisLogic.mountAndReadInfo has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSImageMounting.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04628050b97555074710990466704049dafd2006ded29ef5c62572572edf284"}},{"ruleId":"D1","level":"warning","message":{"text":"MontereyDownloadFlowModel.runWorkflow (cyclomatic 26): MontereyDownloadFlowModel.runWorkflow has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Download/MacOSDownloadOrchestrator.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e10c30e73477dc790c4c2976ae70cf29dd7fe34d5e7970a3ab77d7bb57d085"}},{"ruleId":"D1","level":"warning","message":{"text":"HelperWorkflowExecutor.prepareWorkflowContext (cyclomatic 23): HelperWorkflowExecutor.prepareWorkflowContext 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":"macUSBHelper/Workflow/HelperWorkflowStages.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b951c7e91abe16a7485978ef82bddb49f5939d1286b5bbc48c6ce82fb79efa50"}},{"ruleId":"D1","level":"warning","message":{"text":"MontereyDownloadFlowModel.runDiskImageCreation (cyclomatic 23): MontereyDownloadFlowModel.runDiskImageCreation 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":"macUSB/Features/Downloader/Logic/DiskImage/MacOSDiskImageCreator.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8f3378b41c731116eb54bc43da169b8b1276ca72effe5f37258a9d8be2f558"}},{"ruleId":"D1","level":"warning","message":{"text":"HelperWorkflowExecutor.runStage (cyclomatic 21): HelperWorkflowExecutor.runStage has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/HelperWorkflowFileOperations.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cc0ebc671a1e4020dc5cff716e82b8450a2a7b98cef074e8f3f34047a52bfb"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.usbDiscoveryNotice (cyclomatic 21): AnalysisLogic.usbDiscoveryNotice has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/AnalysisUSBDiscoveryPresentation.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4708512998a4edbb45feacb494f1caa6f6ee0794ca900c50c9103363cce75320"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.readWindowsMetadata (cyclomatic 21): AnalysisLogic.readWindowsMetadata has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsMetadata.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"534aad72a5b4cbf84fdfb31c50a769ea1f41f2748b914be9b925d8ef7b58b12e"}},{"ruleId":"D1","level":"warning","message":{"text":"MacOSDownloaderWindowShellView.downloadSummaryView (cyclomatic 21): MacOSDownloaderWindowShellView.downloadSummaryView has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/UI/MacOSDownloaderSummaryView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8eff56c3492e9c262b893eda0f2a7019c07de37b5a1b9166932448105ceb25"}},{"ruleId":"D1","level":"warning","message":{"text":"HelperWorkflowWindowsMacUSBootArtifactLoader.validateManifest (cyclomatic 21): HelperWorkflowWindowsMacUSBootArtifactLoader.validateManifest has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootArtifact.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60d392babbbbe518c689ea0358e3e703f18c8c0f92dd7935cf70ac0c9f6f2d8"}},{"ruleId":"D1","level":"warning","message":{"text":"HelperWorkflowExecutor.buildStages (cyclomatic 20): HelperWorkflowExecutor.buildStages has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/HelperWorkflowStages.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbc28543d5225d56fba9e31d7424b4c9c359e57ad5dba363538146677ffc84e"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.checkCapacity (cyclomatic 20): AnalysisLogic.checkCapacity 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":"macUSB/Features/Analysis/Logic/AnalysisLogicUsbDrives.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e0a0ec3abf9f36da4be11d2dd4e7b2338b629efc4fe72df8409aab05cca3c0"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.formatMarketingVersion (cyclomatic 20): AnalysisLogic.formatMarketingVersion 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":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSInstallerMetadata.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a537e064851270c8dd240f119eec2985a698f41cd0e8b78ae01f9f1a1a1fa3"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemAnalysisView.updateMenuState (cyclomatic 20): SystemAnalysisView.updateMenuState has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisView.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3731cbf0fcef7084dff9fe5d85811487d5653f9ddcb853ff9fbd9cee0cdd3d19"}},{"ruleId":"D1","level":"warning","message":{"text":"MacOSCatalogService.fetchDownloadManifest (cyclomatic 20): MacOSCatalogService.fetchDownloadManifest 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":"macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoveryCatalogParser.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1155f279be6399560f6ec375ad82c587ff9debafdbf5fb9fb468ad0de07090"}},{"ruleId":"D1","level":"warning","message":{"text":"HelperWorkflowExecutor.parseWindowsLegacyRsyncFilePathLine (cyclomatic 19): HelperWorkflowExecutor.parseWindowsLegacyRsyncFilePathLine has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsCopyProgressParsing.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"16741f9337ac1258d9cedf6c00c16be8d85ef57c1bd83df51aeada68e9fd75ec"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemAnalysisUSBSectionView.body (cyclomatic 19): SystemAnalysisUSBSectionView.body has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48334320c7293f2f3d64bb09505bd769c8b3b41c2a98b4929e650df79baafca"}},{"ruleId":"D1","level":"warning","message":{"text":"HelperWorkflowExecutor.run (cyclomatic 18): HelperWorkflowExecutor.run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/HelperWorkflowExecutor.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffe5418d5541c9bd2b18a6cb0920b34d3b4387b04986d8c18ade8e48f5bb33c"}},{"ruleId":"D1","level":"warning","message":{"text":"HelperWorkflowExecutor.buildWindowsAutounattendXMLData (cyclomatic 18): HelperWorkflowExecutor.buildWindowsAutounattendXMLData has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendGenerator.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f48663fd8c9d57730f51e456c73d4845a0a877454245162347f176bd1670e8"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.normalizeLinuxArchitecture (cyclomatic 18): AnalysisLogic.normalizeLinuxArchitecture has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchitecture.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f4b5f121d7d76b7ff74d74741389e0e8e8c9a755f092f3c5e0616694e2e191"}},{"ruleId":"D1","level":"warning","message":{"text":"USBDriveLogic.detectUSBSpeed (cyclomatic 18): USBDriveLogic.detectUSBSpeed has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"da684d53039dcfbb3407e4ff83c781f12f0d3c097360b91e14b0d11cba4e5a4a"}},{"ruleId":"D1","level":"warning","message":{"text":"HelperWorkflowExecutor.validatedWindowsTargetVolume (cyclomatic 17): HelperWorkflowExecutor.validatedWindowsTargetVolume has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsTargetResolution.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"437c8716b9ae096adbb44acc7c96287172d9536b9712da1415fc372678dd552f"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.readLinuxMetadata (cyclomatic 17): AnalysisLogic.readLinuxMetadata has cyclomatic complexity 17 (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":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxMetadata.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2154a16467468d285f8c8b9ce5ac3e5aa25b9198f8f896204a8f20636f6fe0a"}},{"ruleId":"D1","level":"warning","message":{"text":"FinishUSBEjectLogic.performEject (cyclomatic 17): FinishUSBEjectLogic.performEject has cyclomatic complexity 17 (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":"macUSB/Features/Finish/FinishUSBEjectLogic.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b10f9c0b919ba65df60fda288d5193d09a58003964b8ae67f2bd05ef43e7ba3"}},{"ruleId":"D1","level":"warning","message":{"text":"WelcomeStartupUpdateChecker.check (cyclomatic 17): WelcomeStartupUpdateChecker.check has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Welcome/WelcomeStartupUpdateChecker.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb4c9b54cd8f2242d8f8493474387374758419a743f3fd588ed0fff8fa94785"}},{"ruleId":"D1","level":"warning","message":{"text":"USBDiscoveryRegistryProbe.media (cyclomatic 17): USBDiscoveryRegistryProbe.media has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDiscoveryRegistryProbe.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3443b83b9fe636e38fd5dbef085c1471017503d6154561aaf15b37d55e4fb9c3"}},{"ruleId":"D1","level":"warning","message":{"text":"HelperWorkflowWindowsMacUSBootLayoutValidator.validate (cyclomatic 17): HelperWorkflowWindowsMacUSBootLayoutValidator.validate has cyclomatic complexity 17 (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":"macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootLayoutValidator.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9a1e659b53718c19a506c8cbca3ce4adbb2ea69a6129bcc4b6eb8ef953a923"}},{"ruleId":"D1","level":"warning","message":{"text":"HelperWorkflowExecutor.parseRsyncProgressTokenToBytes (cyclomatic 16): HelperWorkflowExecutor.parseRsyncProgressTokenToBytes has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsCopyProgressParsing.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"585f6cd8f1aa8106682b726e621027e5b52ecf20a20af87e7a2735f1fe708214"}},{"ruleId":"D1","level":"warning","message":{"text":"HelperWorkflowExecutor.windowsTargetPartitionStates (cyclomatic 16): HelperWorkflowExecutor.windowsTargetPartitionStates has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsTargetResolution.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c81ca2a95d9cc8c99977c4de3d0f93b04a7797d168200a7a7dbd033744afc90"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.selectedDriveForInstallation (cyclomatic 16): AnalysisLogic.selectedDriveForInstallation has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ba8adb575675a3b356c03129764d16455f6374ac0da955b08bbb2c8bfc70bf"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.indexLinuxArchive (cyclomatic 16): AnalysisLogic.indexLinuxArchive has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c660fe21f62a5394e90bb5c1566e47c16cf97038cd4b608469fd2c658cded6"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.linuxAttachSessionForImagePath (cyclomatic 16): AnalysisLogic.linuxAttachSessionForImagePath has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"917ac7bcfd1aacf8e2d87425a159a9718c2aa6d8441448a7991a3a7dedd0dac8"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisLogic.extractWindowsServicePack (cyclomatic 16): AnalysisLogic.extractWindowsServicePack has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsClassification.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"823e386041e18d017c96c31f2c0662925c222f8cb1115ddd45841cbf4716b721"}},{"ruleId":"D1","level":"warning","message":{"text":"MontereyDownloadFlowModel.verifyIntegrityDataChunklistIfAvailable (cyclomatic 16): MontereyDownloadFlowModel.verifyIntegrityDataChunklistIfAvailable has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd43aea6f4412df070fb2145119eadba6920a16d7d9c0d7b290bc99f9faa8193"}},{"ruleId":"D2","level":"warning","message":{"text":"USBTargetDiscoveryService.scan (cognitive 118): USBTargetDiscoveryService.scan has cognitive complexity 118 (threshold 15). Drivers by points: if/else 27 (57 pts), boolean chains 28, ternaries 10 (20 pts), loops 5 (7 pts), match/switch 3 (4 pts), error handling 1 (2 pts) (nesting depth added 44). Of this number, 105 points are the body\u0027s own statements and 13 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBTargetDiscoveryService.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a71d8969c8755fdce5536e44ee206530eb0267b0feaacd6788edb5f9e33e99"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.applyMacosCompatibilityForMountedInstaller (cognitive 92): AnalysisLogic.applyMacosCompatibilityForMountedInstaller has cognitive complexity 92 (threshold 15). Drivers by points: boolean chains 56, if/else 23 (27 pts), ternaries 9 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ffa9b2150fbc4d7791ee05012f78f4bf07cb69d6ad56ac4cba378cc669e1d5"}},{"ruleId":"D2","level":"warning","message":{"text":"UniversalInstallationView.startCreationProcessWithHelper (cognitive 91): UniversalInstallationView.startCreationProcessWithHelper has cognitive complexity 91 (threshold 15). Drivers by points: if/else 35 (63 pts), ternaries 5 (17 pts), boolean chains 9, error handling 2 (nesting depth added 40). 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":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"3290079f35a502c4125f7293d6747d7397c834ae3ea79913032078b9916f5216"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.applyMacosCompatibilityForAppInstaller (cognitive 80): AnalysisLogic.applyMacosCompatibilityForAppInstaller has cognitive complexity 80 (threshold 15). Drivers by points: boolean chains 56, if/else 12 (13 pts), ternaries 10 (11 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d13af127223a45f563d137aec40015c8edbea66a069e80c3731731855753d8"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.startAnalysis (cognitive 78): AnalysisLogic.startAnalysis has cognitive complexity 78 (threshold 15). Drivers by points: if/else 28 (71 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 44). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/AnalysisLogicAnalysisFlow.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4682bd4d427b49df5cb3dc3447d1f2b0663bff64259d3dee0fff4a28a2911f69"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.classifyLinuxDistribution (cognitive 77): AnalysisLogic.classifyLinuxDistribution has cognitive complexity 77 (threshold 15). Drivers by points: boolean chains 39, ternaries 11 (22 pts), if/else 16 (nesting depth added 11). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxClassification.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60adefe7eaeb028724511078cef19f866b8c3293fdb9d446fd62e035396a702"}},{"ruleId":"D2","level":"warning","message":{"text":"USBDiscoveryProcessRunner.runReport (cognitive 63): USBDiscoveryProcessRunner.runReport has cognitive complexity 63 (threshold 15). Drivers by points: if/else 18 (34 pts), ternaries 5 (14 pts), boolean chains 11, loops 2 (3 pts), error handling 1 (nesting depth added 26). Of this number, 61 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDiscoveryProcessRunner.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc36e6f6c006022daa413026e01a93edcc887156e03a1205bb299ec4e2ee49d"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemAnalysisView.detectedOrUnsupportedView (cognitive 60): SystemAnalysisView.detectedOrUnsupportedView has cognitive complexity 60 (threshold 15). Drivers by points: ternaries 17 (23 pts), boolean chains 19, if/else 15 (18 pts) (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisView.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b81a0de04a8af582c21f842b78302ad7a46447857d1600671c337090e153cb"}},{"ruleId":"D2","level":"warning","message":{"text":"UniversalInstallationView.body (cognitive 60): UniversalInstallationView.body has cognitive complexity 60 (threshold 15). Drivers by points: if/else 33 (40 pts), boolean chains 13, ternaries 4 (7 pts) (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/UniversalInstallationView.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfb234493fdf2cb3770355952a5648f0afb23089e4142c650070b1256870b86"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.mountAndReadInfo (cognitive 59): AnalysisLogic.mountAndReadInfo has cognitive complexity 59 (threshold 15). Drivers by points: if/else 21 (47 pts), loops 2 (6 pts), boolean chains 5, error handling 1 (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSImageMounting.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"533ed144fa7a72054d861e9942114f66492c9d97955f8000a2961996bf5c9908"}},{"ruleId":"D2","level":"warning","message":{"text":"macUSBApp.body (cognitive 53): macUSBApp.body has cognitive complexity 53 (threshold 15). Drivers by points: if/else 47 (51 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/App/macUSBApp.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8869fe1dd41db7f6f17818c213ed04ca8751343a487a00a752857b0827691af4"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.confirmUSBTargetForHandoff (cognitive 50): AnalysisLogic.confirmUSBTargetForHandoff has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (24 pts), boolean chains 14, ternaries 4 (10 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/AnalysisLogicUSBAdmission.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"048c4b68f9637cdcd6e200eca6d4e148aab047b55b44ec6a90c48e878dbb07a3"}},{"ruleId":"D2","level":"warning","message":{"text":"FinishUSBView.body (cognitive 50): FinishUSBView.body has cognitive complexity 50 (threshold 15). Drivers by points: if/else 23 (32 pts), ternaries 5 (10 pts), boolean chains 8 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Finish/FinishUSBView.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb8ee5c8b706a47f9bd3019e372c97d8a25cd4db88b738c6cee29b5133b6a00"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.classifyWindowsServerFamily (cognitive 47): AnalysisLogic.classifyWindowsServerFamily has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 22 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsClassification.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"f139d88b34dbc144edeefebce0e75c9191b0e9d0f9c3fe19ff3f6a0ff9d6024a"}},{"ruleId":"D2","level":"warning","message":{"text":"USBDiscoveryVolumeCollector.collect (cognitive 45): USBDiscoveryVolumeCollector.collect has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 11, ternaries 3 (6 pts), error handling 1 (2 pts), loops 1 (nesting depth added 16). 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":"macUSB/Shared/Services/USBDiscoveryVolumeCollector.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a314d8b1aeec295167a8816a57848de8176212cf172421ce9493eef94aab260"}},{"ruleId":"D2","level":"warning","message":{"text":"USBDriveLogic.detectUSBSpeed (cognitive 45): USBDriveLogic.detectUSBSpeed has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (41 pts), boolean chains 3, loops 1 (nesting depth added 28). 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":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1b2251431ba6dfbddccd39a74bd48cac2a5a0ba632cf76d2591e8a4c86bb22"}},{"ruleId":"D2","level":"warning","message":{"text":"MontereyDownloadFlowModel.runWorkflow (cognitive 45): MontereyDownloadFlowModel.runWorkflow has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (22 pts), error handling 8 (15 pts), boolean chains 4, match/switch 1 (2 pts), ternaries 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Download/MacOSDownloadOrchestrator.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c84ec535a42a2c3b337a35ec92396e2b4409d7d0821105fa010590ca52b8fe"}},{"ruleId":"D2","level":"warning","message":{"text":"MontereyDownloadFlowModel.runDiskImageCreation (cognitive 37): MontereyDownloadFlowModel.runDiskImageCreation has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 6, error handling 3 (6 pts), ternaries 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/DiskImage/MacOSDiskImageCreator.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff908f5fe610b120b90e504c9173c9cdacaca1e95dad0ff472dfd407ca707c7"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowExecutor.run (cognitive 34): HelperWorkflowExecutor.run has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (21 pts), ternaries 3 (6 pts), error handling 4, loops 1 (2 pts), boolean chains 1 (nesting depth added 16). 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":"macUSBHelper/Workflow/HelperWorkflowExecutor.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa692ea9f04499ffb62687a8bec8b8f822f8de9611c7908f9837c61153d5d978"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemAnalysisUSBSectionView.body (cognitive 34): SystemAnalysisUSBSectionView.body has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (27 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c611830e465ece1375e91ada30a92c93ab078bb2da5a6af785cd7a51011b6a"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowExecutor.prepareWorkflowContext (cognitive 28): HelperWorkflowExecutor.prepareWorkflowContext has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 7, ternaries 1 (2 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/HelperWorkflowStages.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87059eb65840594664f834cc12bcc5938d4b09b4431b45710188c5676d7cd63"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.classifyWindowsFamily (cognitive 27): AnalysisLogic.classifyWindowsFamily has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsClassification.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b670a6c06f45f9b57006103dd0304880701057941f8382f4fc279f1c27609e1a"}},{"ruleId":"D2","level":"warning","message":{"text":"AppLogging.startSession (cognitive 27): AppLogging.startSession has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), error handling 3 (7 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/Logging.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea492d8644ea23c0805458521b53af763e671ca73c563527d2fb3dda0fa05863"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowExecutor.extractAPFSPhysicalStoreWholeDisk (cognitive 26): HelperWorkflowExecutor.extractAPFSPhysicalStoreWholeDisk has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (8 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c86121d9a909a406761e498042656839c13f384c9868d6a1634a41a9ae4ae4f"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowExecutor.buildStages (cognitive 26): HelperWorkflowExecutor.buildStages has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 4 (8 pts), boolean chains 1, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/HelperWorkflowStages.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2957c6dacbcc5f25cc7d0e063e1007a75ea6de9e8df153d6a4231bdcb5b4af6"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.normalizeLinuxArchitecture (cognitive 26): AnalysisLogic.normalizeLinuxArchitecture has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchitecture.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7261ebe5a2a7dcb775b650fbc28c1dbc90bf3c1155bd9f2feecdfd96cc5777"}},{"ruleId":"D2","level":"warning","message":{"text":"USBDriveLogic.extractAPFSPhysicalStoreWholeDisk (cognitive 26): USBDriveLogic.extractAPFSPhysicalStoreWholeDisk has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (8 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"28896b779f619bc8f276288b9adfd55fae8be8c266b7bf7618b8bd2eb1afa305"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowExecutor.runStage (cognitive 25): HelperWorkflowExecutor.runStage has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/HelperWorkflowFileOperations.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"220a40b844d1ed4b0d9ca6a8ef26c240bab9542bb2cebdd34d58ac63cd23b2bb"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.linuxAttachSessionForImagePath (cognitive 25): AnalysisLogic.linuxAttachSessionForImagePath has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"508246f09d8108333b7af6289fc5ecb9a556f62f0a37427fa7cbfaba20ef9e87"}},{"ruleId":"D2","level":"warning","message":{"text":"WelcomeStartupUpdateChecker.check (cognitive 24): WelcomeStartupUpdateChecker.check has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 10, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Welcome/WelcomeStartupUpdateChecker.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5553fc910051a670401cf7818eb31632c1365be7eb740f40e2562379de83c7"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowExecutor.runWindowsPrepareTargetStage (cognitive 23): HelperWorkflowExecutor.runWindowsPrepareTargetStage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b747e1a88f5710f2e30adbac0306f6937cc7bc058982e46b523b6245a4c8940"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.indexLinuxArchive (cognitive 23): AnalysisLogic.indexLinuxArchive has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2, loops 2, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4be70a04fe011a2c308a1ad9cc669648c0f305b0a0054affff98a9b9ccbde7e"}},{"ruleId":"D2","level":"warning","message":{"text":"InstallerSourceImageUnmountRegistry.collectDetachTargetsForTrackedPaths (cognitive 23): InstallerSourceImageUnmountRegistry.collectDetachTargetsForTrackedPaths has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2 (3 pts), boolean chains 1, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/InstallerSourceImageUnmountRegistry.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"911c2dd480aad997c36bd508954d2eac52dd2c3369a5a68dbf31eb9068ce906e"}},{"ruleId":"D2","level":"warning","message":{"text":"MacOSDownloaderWindowShellView.downloadSummaryView (cognitive 23): MacOSDownloaderWindowShellView.downloadSummaryView has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 8 (10 pts), if/else 6 (7 pts), boolean chains 6 (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":"macUSB/Features/Downloader/UI/MacOSDownloaderSummaryView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f8b3f431ab9704efaf9c0f513ffe69866366268ff97c9b635e35998a02cbcf"}},{"ruleId":"D2","level":"warning","message":{"text":"MacOSCatalogService.fetchDownloadManifest (cognitive 22): MacOSCatalogService.fetchDownloadManifest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 7, loops 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoveryCatalogParser.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c790e19adc4295ebe4b9f6ed0961cac35a94da5d5e98adaf717169158777c20"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowExecutor.resolvePartitionTargetWholeDisk (cognitive 21): HelperWorkflowExecutor.resolvePartitionTargetWholeDisk has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b57038b5e8b42595a98696d6f33220475e4d5ea07e96445c283e9cf0a85993"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.extractWindowsServicePack (cognitive 21): AnalysisLogic.extractWindowsServicePack has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 2, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsClassification.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a8cf64b37e54273cbd51f7ae1b94333c41a9735464c407fb6a51cbff2fe984"}},{"ruleId":"D2","level":"warning","message":{"text":"USBDiscoveryRegistryProbe.media (cognitive 21): USBDiscoveryRegistryProbe.media has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, match/switch 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDiscoveryRegistryProbe.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3121d4bbdfe0b4fa444710104c1b49790fa1313c070feaaab468480b7d7461ef"}},{"ruleId":"D2","level":"warning","message":{"text":"USBDriveLogic.resolveFormattingWholeDiskBSDName (cognitive 21): USBDriveLogic.resolveFormattingWholeDiskBSDName has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"267a6fbd2188da093b374841128434e070abba90c83a813ca4ee4c5c37925c2d"}},{"ruleId":"D2","level":"warning","message":{"text":"MontereyDownloadFlowModel.runFileVerification (cognitive 21): MontereyDownloadFlowModel.runFileVerification has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 3 (6 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee59e5daa6c31a394c3732c9b286887f92d78b5b1eff1c55f9a36a450ff2d38"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowExecutor.buildWindowsAutounattendXMLData (cognitive 20): HelperWorkflowExecutor.buildWindowsAutounattendXMLData has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 9 (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":"macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendGenerator.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa690ee4d5bb2591a1b63876dd5a04070ee43445f79415257cc57714361ddfb"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.selectedDriveForInstallation (cognitive 20): AnalysisLogic.selectedDriveForInstallation has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (10 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a37e729a837c4247855d084aea5e125663ae434f3adb6153899d9656973df9"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.usbDiscoveryNotice (cognitive 20): AnalysisLogic.usbDiscoveryNotice has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 13, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/AnalysisUSBDiscoveryPresentation.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"af34e58712f1ec250e64bba7a089255971f960deeda3a8e60f54fc2b825be22b"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.checkCapacity (cognitive 20): AnalysisLogic.checkCapacity has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 7, ternaries 1 (2 pts), match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/AnalysisLogicUsbDrives.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6d67dd7d843d3f5152b843556393bff3a73da73a387bf09893b0e020af3da7"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.readWindowsMetadata (cognitive 20): AnalysisLogic.readWindowsMetadata has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, boolean chains 6, ternaries 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsMetadata.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"364447087cdbd31f0115627e255a3bbe9ea22cd7965e21cd1b7626bdc9380534"}},{"ruleId":"D2","level":"warning","message":{"text":"UniversalInstallationView.calculateTransferStageTotals (cognitive 20): UniversalInstallationView.calculateTransferStageTotals has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"596924bbf9b4af0375e041f03d59470c7ad6c9023187cc6ddb374784a168709a"}},{"ruleId":"D2","level":"warning","message":{"text":"InstallerSourceImageUnmountRegistry.detachTrackedImages (cognitive 20): InstallerSourceImageUnmountRegistry.detachTrackedImages has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/InstallerSourceImageUnmountRegistry.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4b5c0247670e882f26292bf112c9e3b206d6a1cbc8ce6b12a5ba6a7832e579"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowWindowsMacUSBootArtifactLoader.validateManifest (cognitive 20): HelperWorkflowWindowsMacUSBootArtifactLoader.validateManifest has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 19, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootArtifact.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"822d68468b739558bb68c3bee9eb25385ceda08ac9fdae8c991591294402ca2e"}},{"ruleId":"D2","level":"warning","message":{"text":"MontereyDownloadFlowModel.verifyIntegrityDataChunklistIfAvailable (cognitive 20): MontereyDownloadFlowModel.verifyIntegrityDataChunklistIfAvailable has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 5, boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b99be34fa441d6daef1814024031e5c01ecb5eb72e896577ccffd64397dc3e"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.formatMarketingVersion (cognitive 19): AnalysisLogic.formatMarketingVersion has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSInstallerMetadata.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6772b7e8f3650cc285c659c387294bf1d5532896fbf5b71645c4de9af8bd077e"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemAnalysisView.updateMenuState (cognitive 19): SystemAnalysisView.updateMenuState has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 19. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisView.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af3386b62ba88386711472de39c37050b5cd39e2860793ca2285ef87d003222"}},{"ruleId":"D2","level":"warning","message":{"text":"FinishUSBView.finishEjectSection (cognitive 19): FinishUSBView.finishEjectSection has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 5 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Finish/FinishUSBView.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ee68876ae7b2d47bbc57c9f53e0a94180ea7a39162528f3403e25ee940278b"}},{"ruleId":"D2","level":"warning","message":{"text":"FinishUSBView.performCleanupWithDelay (cognitive 19): FinishUSBView.performCleanupWithDelay has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, error handling 1 (2 pts), ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Finish/FinishUSBView.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc7847409c4b5c49f481d36ac82c879d3215f811df5f63871d1b0e260556c02"}},{"ruleId":"D2","level":"warning","message":{"text":"CreationProgressView.stateForStage (cognitive 19): CreationProgressView.stateForStage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreationProgressView.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"41405fe16ff2300c5aaa9d2c017485c7b12c450a2d1ce317f93c7f0464083b7c"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloaderAssemblyExecutor.run (cognitive 18): DownloaderAssemblyExecutor.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/DownloaderAssembly/DownloaderAssemblyExecutor.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66b3347b1c46ad8bef0e59f2f6cecc25dd7b9e7327597dad56eda22e5b77e58"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowExecutor.parseWindowsLegacyRsyncFilePathLine (cognitive 18): HelperWorkflowExecutor.parseWindowsLegacyRsyncFilePathLine has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 14, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsCopyProgressParsing.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3009f16fa3be64407132581b6674ae46de4c3a18d42aaec85b970d420588f0"}},{"ruleId":"D2","level":"warning","message":{"text":"FinishUSBEjectLogic.performEject (cognitive 18): FinishUSBEjectLogic.performEject has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, ternaries 5 (6 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Finish/FinishUSBEjectLogic.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3815660da8bfd69090870704ca91355442d5b9e14762f103cd959f00a37010cd"}},{"ruleId":"D2","level":"warning","message":{"text":"CreatorWindowsAutounattendSourceInspection.availableLanguageTags (cognitive 18): CreatorWindowsAutounattendSourceInspection.availableLanguageTags has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendSourceInspection.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbd40908c052bb4c352407d9787e741269fa9478bd2b2cea9422f09bcc97dcc"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowExecutor.runLinuxUnmountTargetStage (cognitive 17): HelperWorkflowExecutor.runLinuxUnmountTargetStage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95e63b5266bf9364a960b8cd343cd6c107a3d855253a4f6e7c1d94f795a8ff0"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.detachMountedImageAfterAnalysisTimeout (cognitive 17): AnalysisLogic.detachMountedImageAfterAnalysisTimeout has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6da37323caa675afe2b4d281b5faed32a870aa0369489bcc5410ffd8bbc1c56"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.handleDrop (cognitive 17): AnalysisLogic.handleDrop has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 7 (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":"macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b195b727753e23f498dca7cf92e09f6e8031e39dd726798813378fd42c1757"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.readLinuxMetadata (cognitive 17): AnalysisLogic.readLinuxMetadata has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxMetadata.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcaef85aee327acb199c0b49e7c7784a44136cb658f4da32901b70a3951a7957"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.forceTigerMultiDVDSelection (cognitive 17): AnalysisLogic.forceTigerMultiDVDSelection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSLifecycle.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb638788aa412c244e8376080215d77e5b11623e08960bf6219c1965cb97d407"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowWindowsMacUSBootLayoutValidator.validate (cognitive 17): HelperWorkflowWindowsMacUSBootLayoutValidator.validate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootLayoutValidator.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c71bc87cda0f201484367b223f20b5899c915348356adf30458096b7ddd7b9"}},{"ruleId":"D2","level":"warning","message":{"text":"MacOSCatalogService.enrichedWithInstallerSizes (cognitive 17): MacOSCatalogService.enrichedWithInstallerSizes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoverySizeProbe.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"f739f0cb94b173f0d3c326bac56d2c86706b4b90da75bdb4ecd519e30a59d733"}},{"ruleId":"D2","level":"warning","message":{"text":"MacOSLocalInstallerProcessRunner.run (cognitive 17): MacOSLocalInstallerProcessRunner.run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Discovery/MacOSLocalInstallerProcessRunner.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7f27240a7fa6d3b0945e2bda044e2462f876861f4b947061688020a6d191a4"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperWorkflowExecutor.validatedWindowsTargetVolume (cognitive 16): HelperWorkflowExecutor.validatedWindowsTargetVolume has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsTargetResolution.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"650428de5c5408632b69c1916e6250222fc01c29088b0b83f910f4b696f56e32"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisLogic.readLinuxArchiveTextFile (cognitive 16): AnalysisLogic.readLinuxArchiveTextFile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"40657afa20065efbde4c4a3917c2047bf7b74a6a682d71050105843db464aa58"}},{"ruleId":"D2","level":"warning","message":{"text":"MacOSLocalInstallerMetadataReader.firstIdentity (cognitive 16): MacOSLocalInstallerMetadataReader.firstIdentity has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Discovery/MacOSLocalInstallerMetadataReader.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ca8fbcc3fecbc052147d62e62f0591eb3d9cb190701f4b23e81270d51e4a7b"}},{"ruleId":"D2","level":"warning","message":{"text":"MacOSDiskImagePreflight.prepare (cognitive 16): MacOSDiskImagePreflight.prepare has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/DiskImage/MacOSDiskImagePreflight.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87b0dedf357d728d003c59e3884420f03a53c2969423d70100b1b44b0699753"}},{"ruleId":"D2","level":"warning","message":{"text":"MontereyDownloadFlowModel.parseIntegrityChunkTable (cognitive 16): MontereyDownloadFlowModel.parseIntegrityChunkTable has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c03ab852e4b5d625304b094382dc666e20d70e168cfb23a73048a8d8ac7ebc"}},{"ruleId":"D2","level":"warning","message":{"text":"MontereyDownloadFlowModel.resolveLegacyAssemblyFiles (cognitive 16): MontereyDownloadFlowModel.resolveLegacyAssemblyFiles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 1 (nesting depth added 2). Of this number, 9 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. 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":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"27511b25d8c87abe08c707d60a8351ae7751410434427f58955b5c115577f91d"}},{"ruleId":"D2","level":"warning","message":{"text":"MontereyDownloadFlowModel.runConnectionCheck (cognitive 16): MontereyDownloadFlowModel.runConnectionCheck has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Download/MacOSDownloadOrchestrator.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2457face92fa0dab1e4ba8c2b9a9934e72e97315a09ce7be26716461e46a82"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AnalysisLogic: TooManyMethods \u2014 150 methods, declared across 30 files: Analysis/AnalysisLogic.swift (25), Logic/AnalysisLogicUsbDrives.swift (14), Linux/AnalysisLogicLinuxLifecycle.swift (12), Linux/AnalysisLogicLinuxMetadata.swift (12), \u002B26 more file(s). The bar is 30 methods; this is 120 over it, 5.00\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":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"032013b92b7a50544edf6cfa2745478760ce6a82b5b5e862c1514ce6fa559d6f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HelperWorkflowExecutor: TooManyMethods \u2014 130 methods, declared across 22 files: Windows/HelperWorkflowWindowsSourceLogic.swift (15), Autounattend/HelperWorkflowWindowsAutounattendGenerator.swift (14), Windows/HelperWorkflowWindowsStages.swift (13), Workflow/HelperWorkflowFileOperations.swift (9), \u002B18 more file(s). The bar is 30 methods; this is 100 over it, 4.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":"macUSBHelper/Workflow/HelperWorkflowExecutor.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03c07a47e4ef2c5cb6543d8525b580afe8fbe0c3ad29edece123b5aab9485e8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UniversalInstallationView.body: MethodTooLong \u2014 body runs 362 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 262 over it, 3.62\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":"macUSB/Features/Installation/UniversalInstallationView.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b57fdaf9023fc98e0e8a564c0184fd05a496c7508e12598d0e471beb9e8710"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MontereyDownloadFlowModel: TooManyMethods \u2014 95 methods, declared across 16 files: Logic/MacOSVerificationLogic.swift (30), Assembly/MacOSAssemblyLegacyFlow.swift (14), Download/MacOSDownloadOrchestrator.swift (9), Assembly/MacOSAssemblyOrchestrator.swift (6), \u002B12 more file(s). The bar is 30 methods; this is 65 over it, 3.17\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":"macUSB/Features/Downloader/Logic/Download/MacOSDownloadState.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfa105f2446e358e4568b4d966a920a35bb96ee785c4b764869a602de329365"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UniversalInstallationView.startCreationProcessWithHelper: MethodTooLong \u2014 startCreationProcessWithHelper runs 309 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 209 over it, 3.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79786e256c7b5895ba41d580fa646bb5bed76d0fb48566dfde8f1393571a30f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UniversalInstallationView: TooManyMethods \u2014 88 methods, declared across 16 files: Installation/CreatorHelperLogic.swift (29), Installation/CreatorLogic.swift (17), macOS/CreatorMacOSRosettaLogic.swift (10), Installation/CreatorOperationActivity.swift (4), \u002B12 more file(s). The bar is 30 methods; this is 58 over it, 2.93\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":"macUSB/Features/Installation/UniversalInstallationView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ceeb01b3938fb14a26fbed7a7138a5df1d48b32973792efb942f604d2f78628"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: macUSBApp.body: MethodTooLong \u2014 body runs 273 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 173 over it, 2.73\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":"macUSB/App/macUSBApp.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"55def84f4b64b7fac2a9343c73ef0cab511d093f999ce4e6585b0609a07e9ca5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HelperServiceManager: TooManyMethods \u2014 75 methods, declared across 8 files: HelperService/HelperServiceDiagnostics.swift (17), HelperService/HelperServiceRepairUI.swift (15), HelperService/HelperServiceEnsureReadyFlow.swift (12), HelperService/HelperServiceRepairFlow.swift (12), \u002B4 more file(s). The bar is 30 methods; this is 45 over it, 2.50\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":"macUSB/Shared/Services/Helper/HelperServiceManager.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73a4324c626ecc7a6e7ffb33d2c897e4bb232ff6d509a5cf6940de1986da669"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalysisLogic.classifyLinuxDistribution: MethodTooLong \u2014 classifyLinuxDistribution runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\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":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxClassification.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c623d865b0355d9a40ee4837774f538b2be01fa851bc6b1dda8ef3e9132d33"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FinishUSBView.body: MethodTooLong \u2014 body runs 199 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 99 over it, 1.99\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":"macUSB/Features/Finish/FinishUSBView.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee9ee3f66ce544178691da8ebee11ccf368be79190e4fa9d9be370f30c77ddc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalysisLogic.startAnalysis: MethodTooLong \u2014 startAnalysis runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\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":"macUSB/Features/Analysis/Logic/AnalysisLogicAnalysisFlow.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b135281b51ec30d9269b09d270098ab3071360fb410b2e8a1e7f1d54c5f9f8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MacOSDownloaderWindowShellView: TooManyMethods \u2014 58 methods, declared across 6 files: UI/MacOSDownloaderListView.swift (15), UI/MacOSDownloaderWindowShellView.swift (13), UI/MacOSDownloaderProcessView.swift (10), UI/MacOSDownloaderPrerequisiteAlerts.swift (9), \u002B2 more file(s). The bar is 30 methods; this is 28 over it, 1.93\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":"macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e82902b59670eb564994499ab136da8cbaf04b4532c84dc286cce64ba9d32f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Installation/CreatorHelperLogic.swift: FileTooLong \u2014 831 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 331 over it, 1.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fb40d7f5b4d6ca0023a2df10e70103d69bb053e3bf5420f2aee929002b8c5c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MacOSCatalogService: TooManyMethods \u2014 48 methods, declared across 7 files: Discovery/MacOSDiscoverySizeProbe.swift (16), Discovery/MacOSDiscoveryCatalogParser.swift (13), Discovery/MacOSDiscoveryFiltering.swift (7), Discovery/MacOSDiscoveryLocalInstallers.swift (6), \u002B3 more file(s). The bar is 30 methods; this is 18 over it, 1.60\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":"macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoveryConstants.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"914c04259ef3d907202b1ab655b9e7c2decb1e78602c75568f723ed93b0da26c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: USBTargetDiscoveryService.scan: MethodTooLong \u2014 scan runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\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":"macUSB/Shared/Services/USBTargetDiscoveryService.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e9018ff6bccea2fed83845c8756cfa50a00368e2e12f9629c30eaec0c6e551"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HelperWorkflowExecutor.buildStages: MethodTooLong \u2014 buildStages runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\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":"macUSBHelper/Workflow/HelperWorkflowStages.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"255dd7054f43f167798c854fc2ec2f6c5324087764c4f0b76203878d5a2b5820"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FinishUSBView: ClassTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 188 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Finish/FinishUSBView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c9c5665f1a0db97ce5d2bc784d64e411def84d0e62c565a56d0de089e1255a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SystemAnalysisView: ClassTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 156 over it, 1.39\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e18c7de0ab704c8356e068927691b5efe9cef9802fd2c7ecf1e6f4d179f783e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalysisLogic.applyMacosCompatibilityForMountedInstaller: MethodTooLong \u2014 applyMacosCompatibilityForMountedInstaller runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58dcf6c2f75747b3f27c3baee75963962ad0783095291e9fd604493f9a84207"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UniversalInstallationView: ClassTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded), 88 methods. The bar is 400 significant lines; this is 116 over it, 1.29\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/UniversalInstallationView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"498a4de5d5e64ac2fd9b7ec64d55a1b7640b5c88fae8444b07adf28bcd99bc77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DownloaderAssemblyExecutor.runInstallerBasedOldestDiskImageAssemblyAndLocateApp: MethodTooLong \u2014 runInstallerBasedOldestDiskImageAssemblyAndLocateApp runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08b16f0aa8588a034ae94691f45bf6b7673e9b7e998cd004d07c26c4e485fb9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HelperWorkflowExecutor.prepareWorkflowContext: MethodTooLong \u2014 prepareWorkflowContext runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\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":"macUSBHelper/Workflow/HelperWorkflowStages.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9855768a93d74046bf319ffe9acce7c98cf9691c422935be82787a2bcb1a6d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MontereyDownloadFlowModel.runDiskImageCreation: MethodTooLong \u2014 runDiskImageCreation runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/DiskImage/MacOSDiskImageCreator.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe88c82d25c2b5f67adfd7177037af326135f756b7254060432be6b378d7ab2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Finish/FinishUSBView.swift: FileTooLong \u2014 602 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: FinishUSBView (5-778). The bar is 500 significant lines; this is 102 over it, 1.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Finish/FinishUSBView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ddae61338e05495d6dc792b9c4dc797c639f0ff425943aedad39b914ecf233"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DownloaderAssembly/DownloaderAssemblyProcess.swift: FileTooLong \u2014 591 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 91 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f38ef05de87fc9a31f8860aa6756a4d1dc3295cb715617adbadb7266f450ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MontereyDownloadFlowModel.runWorkflow: MethodTooLong \u2014 runWorkflow runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.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":"macUSB/Features/Downloader/Logic/Download/MacOSDownloadOrchestrator.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1d0754e68a4ebcc87f3d62f91d9ff0c072292883ca8ec5bfc31ac2ce3fe5f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Logic/MacOSVerificationLogic.swift: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 85 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd9f9706109b992ad8a1208cd4a3061723ee4e61bf82a0ffe0c17ecb53ae006"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SystemAnalysisView.detectedOrUnsupportedView: MethodTooLong \u2014 detectedOrUnsupportedView runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\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":"macUSB/Features/Analysis/SystemAnalysisView.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"2033d6bad38e3ba178a519ef01e6e3f651563d071b2781b9dec412019ac4db19"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Analysis/SystemAnalysisView.swift: FileTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SystemAnalysisView (16-772). The bar is 500 significant lines; this is 71 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"816ff06557772129dc8f92cc2db264a5a712f00ce4545d09c4bfe2a728c212b3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SystemAnalysisUSBSectionView.body: MethodTooLong \u2014 body runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a94011525129fb3cb02f892149a9794faa0343a327626fb5f543343cd247ab7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalysisLogic.applyMacosCompatibilityForAppInstaller: MethodTooLong \u2014 applyMacosCompatibilityForAppInstaller runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc67bd92b96e63996f61514014647ec4290ac672614396ad7707e412a6cc6904"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Installation/UniversalInstallationView.swift: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: UniversalInstallationView (4-666). The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/UniversalInstallationView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0922104ddd175b800827cc22a2b0a76757064597088a9ac00725ec3dcd36ed1e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PrivilegedOperationClient: ClassTooLong \u2014 423 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 23 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"8faf7ba6c54238a66e8d0a548eefcaaa197c227ce3472e4a4422772217ec66a7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MacOSDownloaderWindowShellView.downloadSummaryView: MethodTooLong \u2014 downloadSummaryView runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/UI/MacOSDownloaderSummaryView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc05cf6501d9dc3bc74e0a6d02431d669cfe9a8696e10d4a055de1883a640361"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MontereyDownloadFlowModel.runLegacyAssemblyWithoutRoot: MethodTooLong \u2014 runLegacyAssemblyWithoutRoot runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2aef7c0c495271faba0a262d2bc2811fe685fc4eebd6732e42dfe6a90c5290"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UniversalInstallationView.prepareHelperWorkflowRequest: MethodTooLong \u2014 prepareHelperWorkflowRequest runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb20252060ea00659b087254f7c5146a0cb0e0b28e38d6834c0679b5d8132f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (91 shared lines): macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:77-170 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift:95-188 \u2014 These two members are variants of one another: 91 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c08bc548f993cb2a54d22e5d5f41771064247c4bd25ebf923dc8ef8fe9b394"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (42 shared lines): macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:5-175 | macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:241-355 \u2014 These two members are variants of one another: 42 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4e2eced22cd3f6c585aef37080ea8f536a3e2b9e801379d1bb688b0e7cdc39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): macUSB/Features/Welcome/WelcomeStartupUpdateChecker.swift:13-76 | macUSB/Shared/Services/UpdateChecker.swift:43-59 \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":"macUSB/Features/Welcome/WelcomeStartupUpdateChecker.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1865f03800e3af010391ef590291fb8fdec6a81a96a9a6f6290d0c6d02c611"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift:88-245 | macUSB/Features/Analysis/SystemAnalysisView.swift:328-346 \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":"macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2299183cc849a9ded3238221b3aab4b6cde7872ca0bd20f0f30723e8b99be1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): macUSB/Shared/Services/Windows/WindowsToolchainProbeService.swift:30-59 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift:398-451 \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":"macUSB/Shared/Services/Windows/WindowsToolchainProbeService.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"11996616ec575bce1804e2b9f68b6a7ef74c3358bc1d91bf99e655da34d45a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): macUSB/Features/Analysis/AnalysisLogic.swift:381-430 | macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift:6-36 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift:327-351 | macUSB/Shared/Services/InstallerSourceImageUnmountRegistry.swift:64-172 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"242a9f275522c0fecae4f4dbbf4dbc3d43ed75d0dd57f456bc25b9063816e4f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): macUSB/Features/Analysis/AnalysisLogic.swift:432-480 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift:353-418 | macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSImageMounting.swift:141-188 | macUSB/Shared/Services/InstallerSourceImageUnmountRegistry.swift:204-278 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"a664b1df403d29089b9632490e47a90dbf9255a7b171029e2c0131087dae5981"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:41-56 | macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:58-71 | macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:73-97 | macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:99-114 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f3b9cf3cf1ae5b1709fe6d01da51414d4ef058d88c7cc8da21b543c98a83a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): macUSB/Features/Installation/CreatorHelperLogic.swift:903-932 | macUSB/Features/Installation/CreatorHelperLogic.swift:1066-1123 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:52-74 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:173-200 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"4656db4cf2ad7b8b68094f9dfa841c2dfad0db6d1b7f06bd82fac263e50b5944"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (152 corresponding lines): macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift:5-181 | macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift:183-334 \u2014 These two members are one piece of code written twice and then edited apart: 152 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":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe729ba1d3c940ec2fa01a8b8213d47ff541950eb4b0e11ee6f6cef114922a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (91 corresponding lines): macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift:4-114 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift:116-206 \u2014 These two members are one piece of code written twice and then edited apart: 91 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":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41208d10525fac5ce8df303e5b0bbb15534ac0ca77bb3e099c354cdadaf9da2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:34-138 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:160-246 \u2014 These two members are one piece of code written twice and then edited apart: 87 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":"macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9397b6baa4052b2a221de68dc99bce5a89e970a2783fdf5c871bcf53db088f3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (77 corresponding lines): macUSB/Features/Downloader/UI/MacOSDownloaderProcessView.swift:132-219 | macUSB/Features/Installation/CreationProgressView.swift:224-300 \u2014 These two members are one piece of code written twice and then edited apart: 77 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":"macUSB/Features/Downloader/UI/MacOSDownloaderProcessView.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cfdb79fd2e8a38270a01e6245f43970a11bb20c82d81243519cd54ffb8d43e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): macUSB/Shared/Services/USBDriveLogic.swift:161-202 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:4-51 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a488eac491a02c7e267a4bc0d9493cbbe279ba169aa6932ea5e309a4e9256ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): macUSB/Shared/Services/Helper/PrivilegedOperationClientCapabilities.swift:6-67 | macUSB/Shared/Services/Helper/PrivilegedOperationClientRosetta.swift:4-64 \u2014 These two members are one piece of code written twice and then edited apart: 61 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":"macUSB/Shared/Services/Helper/PrivilegedOperationClientCapabilities.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8349535354006f1dab3fdc8b0dd8844ad789db351b5040dde72f2a25840525"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): macUSBHelper/Service/PrivilegedHelperService.swift:17-79 | macUSBHelper/Service/PrivilegedHelperService.swift:91-143 \u2014 These two members are one piece of code written twice and then edited apart: 53 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":"macUSBHelper/Service/PrivilegedHelperService.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a13bb86ce02c8f50851acc4571775be78b090e6bf21606a0d4942ff177c1611"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift:62-99 | macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift:114-160 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5446e3b3c7c49f3e80f5401e5e4d3a678b7a615776ea429682ca9b3ae154bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:530-570 | macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyProcessUtils.swift:99-141 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbffcc9f036c9f889b7829d4a270351b26b88565eb95b9484131b5fbc8a3701"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): macUSB/Shared/Services/Helper/HelperService/HelperServiceRepairUI.swift:87-114 | macUSB/Shared/Services/Helper/HelperService/HelperServiceStatusUI.swift:177-204 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/Helper/HelperService/HelperServiceRepairUI.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9477db6d52fd4a67da8c94553368835e1906030667e4f59631fbe48b191e46cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift:36-64 | macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift:39-65 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4113e06ac1cd8529af7f2604a9c8cfddb93f099c8754999d131595a1d0c74f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): macUSB/Features/Downloader/Logic/MacOSCleanupLogic.swift:135-160 | macUSB/Features/Finish/FinishUSBView.swift:701-733 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/MacOSCleanupLogic.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11cee238fd2ef013461b47e5bc59c6d65f78b9e160aa78b8ec5703d0c1d5098"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): macUSB/Features/Installation/CreatorLogic.swift:38-68 | macUSB/Features/Installation/CreatorLogic.swift:124-163 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreatorLogic.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfa270ff3d57699f7376f574b7984a7cb8e2cca3285eb7ffde5749203846bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): macUSB/Shared/Services/USBDriveLogic.swift:218-251 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:98-132 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd49493b5742060da600207ac917ce4ef566907cc0d636881e6a0e05a576032"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootRawDevice.swift:76-111 | macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootRawDevice.swift:113-146 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootRawDevice.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8487b83cb7869285bf8a85ed8e6fb8fe8a70c175f0a98d7e6c6908c31030ead3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:269-296 | macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:595-628 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e30c004be7e479290e5743175b27de4906725eaf1601f95df55809b33a4098"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 22\u002B corresponding lines): macUSB/Features/Installation/macOS/CreatorMacOSRosettaLogic.swift:63-85 | macUSB/Shared/Services/FullDiskAccessPermissionManager.swift:126-156 | macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift:68-89 | macUSB/Shared/Services/Helper/HelperService/HelperServiceStatusUI.swift:139-167 | macUSB/Shared/Services/NotificationPermissionManager.swift:63-86 | macUSB/Shared/Services/NotificationPermissionManager.swift:88-109 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/macOS/CreatorMacOSRosettaLogic.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"63014c359b1f0dbd6a5c7e458ef584d46ceacaeaaf60daf9e6ce3c1f932fbc5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): macUSB/Shared/Services/USBDriveLogic.swift:276-303 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:133-155 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d051f4e2bdf356d5da79133564d848cffd3fb193e43a7cd811e1dc53290d20e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:647-666 | macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:720-746 \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":"macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af8bbb2241b9a07312be5fa49fca5ca7318afbcdfb60c221c0daf8531da4027"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): macUSB/Features/Installation/CreationProgressView.swift:360-388 | macUSB/Features/Installation/CreationProgressView.swift:390-418 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreationProgressView.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ec2e24461ece906cfe196c5ed6f4549ac50781115b3c81141faeab8fce816a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): macUSB/Features/Analysis/SystemAnalysisView.swift:106-123 | macUSB/Features/Analysis/SystemAnalysisView.swift:125-149 \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":"macUSB/Features/Analysis/SystemAnalysisView.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0263efa6ccad2a5819c2923635e82920bc2fa31fd7da089871b0328bc22fa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyFileUtils.swift:4-31 | macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:674-697 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyFileUtils.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae1c956bc440fe934ea92b6942f995d8f7a3b2739d34b3b0d4bed7925192903"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): macUSB/Shared/Services/Helper/HelperConnectionSecurityPolicy.swift:55-72 | macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift:142-156 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:553-571 \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":"macUSB/Shared/Services/Helper/HelperConnectionSecurityPolicy.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda81a6ed4e216ac96880531f0307fda5dddee3356d182eb4d11758d023f4bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:634-658 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:683-709 \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":"macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d7ebd425b7479065448dc2796ecb24c77ce7cf61952cc95c6e356ec7f0dd12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift:290-318 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift:320-344 \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":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c977d1775511cb3b3608bbbcfe6ba511eeac481a16a872a6ec12dda35b2d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): macUSBHelper/Workflow/Windows/HelperWorkflowWindowsCopyProgressParsing.swift:16-33 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsWimSplitProgressParsing.swift:4-21 \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":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsCopyProgressParsing.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c0f93db6d69d0a4019022618b34420b1d783f20b7be7cd421e4efe59cadcd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoverySizeProbe.swift:290-302 | macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoverySizeProbe.swift:304-317 \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":"macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoverySizeProbe.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe470866c0890c0097fe38422ab69e5b8f7875fe71f31d638e260342588d4fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift:339-356 | macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift:358-376 \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":"macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e84adb34cbd4f70ffc2305938466b27c287cd6de65be0d45f420e3b934ced3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendGenerator.swift:161-180 | macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendGenerator.swift:192-206 \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":"macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendGenerator.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a647fb871e9ddfe3bad8176607906fd216d1ab2e625f45b90fbf5b717fb23c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): macUSB/Shared/Services/USBDriveLogic.swift:253-274 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:75-97 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"7697f632d8ca619072ac21bf868ec4ce0b35142a123b586af14cb57b3ed07bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): macUSB/Features/Downloader/UI/MacOSDownloaderDiskImageAlerts.swift:5-25 | macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift:198-211 | macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift:238-259 | macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift:261-282 \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":"macUSB/Features/Downloader/UI/MacOSDownloaderDiskImageAlerts.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f02401c4b1a5ee0cc0cdf26410344e3e3f866971370c2b30535e30d1f3844f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): macUSB/Features/Downloader/UI/MacOSDownloaderListView.swift:454-480 | macUSB/Features/Downloader/UI/MacOSDownloaderListView.swift:482-499 \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":"macUSB/Features/Downloader/UI/MacOSDownloaderListView.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14575fd5f4ff16e8d3787f37af73bd30a88bf9bc3d2c0090429e7cb9e068cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift:14-34 | macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift:15-37 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9338599eb237acfb574d9dfe846142221b3734b57f1e3a6e6907efbd1324a92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): macUSB/Features/Installation/CreationProgressView.swift:57-71 | macUSB/Features/Installation/UniversalInstallationView.swift:165-186 \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":"macUSB/Features/Installation/CreationProgressView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3008e111c1f978d5f573284aef6e8bbe4037db1a6512167b96207549c67b8d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:456-473 | macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift:497-516 \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":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"8420b4e76502b42777fcde153edea953bae928fb84f96ac8e2628cfd9e4fe0af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxClassification.swift:500-513 | macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoveryDistributionParser.swift:33-45 | macUSBHelper/Workflow/Linux/HelperWorkflowLinuxProgressParsing.swift:19-32 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxClassification.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbc16e1aa049477e56521d69f264ac58fa3bc602670a1117ad9b91ecf865c26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:140-158 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:248-266 \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":"macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b358cf87e1d7b84c2125a69fca7b68b6f26db582e14aea3fe1b0f9cfc0e124c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): macUSB/Shared/Services/Logging.swift:209-215 | macUSB/Shared/Services/Logging.swift:217-223 \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":"macUSB/Shared/Services/Logging.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"004b62dc1f38a0e3bf374990af12ffe64889e94227b329db0fc83c1020a1975c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): macUSB/App/macUSBApp.swift:502-510 | macUSB/Shared/Services/FullDiskAccessPermissionManager.swift:158-171 \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":"macUSB/App/macUSBApp.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"1938b067069841cd7dd9c95cd4c356f5af2dec8b50065b5fcf9bede247e7cbfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendConfiguration.swift:61-72 | macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendConfiguration.swift:34-44 \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":"macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendConfiguration.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3e734cf742ee4ddf2a4c40e291c576ac921daa6fb677e3259c6c87ece3a09a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): macUSBHelper/Workflow/Linux/HelperWorkflowLinuxMountGuard.swift:19-43 | macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootMountGuard.swift:19-38 \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":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxMountGuard.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"946a5afdbe30e5fb50ce4556879958038d99090061ba0a4a025eb2de18385d5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): macUSBHelper/Workflow/Linux/HelperWorkflowLinuxMountGuard.swift:68-83 | macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootMountGuard.swift:60-75 \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":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxMountGuard.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbc786278941c32aaa11aa5f59dd04b08262571b8ab4ae3cdbd37c771f8b0a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift:422-434 | macUSB/Features/Finish/FinishUSBView.swift:765-777 \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":"macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d44055f6ec0e3a9c39604227c7d1956e0186b99e2c6ce4b2dc495d8604e519"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:400-414 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:416-434 \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":"macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"675560faba74c0298c584fa24a586c80feae459e1a452205ad68bf5459af6d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): macUSBHelper/Workflow/Linux/HelperWorkflowLinuxMountGuard.swift:45-62 | macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootMountGuard.swift:40-58 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxMountGuard.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c8c921770197fdedd9982a44e49b409462909d6f5bbdb22ae9ece6e88800ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift:59-67 | macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift:90-99 | macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift:100-108 | macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift:168-176 | macUSB/Shared/Services/Helper/HelperService/HelperServiceStatusUI.swift:168-176 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"96faca598c7ab6abbd8a6b696c6cfeda4ef7a31909bb193585c6adc42b8cda9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): macUSB/Shared/UI/LiquidGlassCompatibility.swift:176-189 | macUSB/Shared/UI/LiquidGlassCompatibility.swift:195-207 \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":"macUSB/Shared/UI/LiquidGlassCompatibility.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0f42de1d8e07d60f6aa3d1a8262d6755884cbd80bfa4368853b646ab472c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): macUSBHelper/DownloaderAssembly/DownloaderAssemblyExecutor.swift:24-36 | macUSBHelper/Workflow/HelperWorkflowExecutor.swift:45-61 \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":"macUSBHelper/DownloaderAssembly/DownloaderAssemblyExecutor.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0bb5a2a23e86aba321ba35110220ef49991d919289f18eda1b246f00553ca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): macUSB/Features/Analysis/AnalysisLogic.swift:219-222 | macUSB/Features/Analysis/AnalysisLogic.swift:224-227 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"90487cf3a3f5a51c9a9f94fbe074a7f4ddde2652a98a86eab1b7ad812eb234ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift:6-12 | macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift:6-13 \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":"macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a0f45074a413c4f5bebfd13993be7d93829c2841dc677b9c8b1fceda671c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift:231-237 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsStages.swift:338-344 \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":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32aefcd8f9c500875c2d4933e16bd91e33e69f58e4cd0b9e2ee34569a50d785"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsBootMarkers.swift:122-132 | macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendSourceInspection.swift:86-98 \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":"macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsBootMarkers.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"906e4521b79445be7d9068fc241525d3bbbbb974a734044720b40907e0464463"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift:66-83 | macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift:67-84 \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":"macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"373bdd1a0f3b075ecd36cd8675569e3f64d2c33054375dd301c8561d3885dcd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendConfiguration.swift:189-193 | macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendValidation.swift:56-60 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendConfiguration.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda1879a3edc4b17ca36c7422f44095102c27eb951ba942798493d30f0af0cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendGenerator.swift:151-159 | macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendGenerator.swift:182-190 \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":"macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendGenerator.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9d2b84ec744299608794294152464016fe0c49b2d3b9f6894df62c75a18efe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): macUSB/Shared/Services/Helper/HelperService/HelperServiceBootstrap.swift:160-165 | macUSB/Shared/Services/Logging.swift:337-341 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/Helper/HelperService/HelperServiceBootstrap.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cccd336375ac2d6f685bc587e7444cf69095b4879b503b1ed4b1c7b7a51e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): macUSBHelper/Service/PrivilegedHelperService.swift:81-89 | macUSBHelper/Service/PrivilegedHelperService.swift:145-157 \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":"macUSBHelper/Service/PrivilegedHelperService.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b83c7c30d2f3dc256e79edb5599a1ee3a48c76dd8681e728a701821c676225a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSInstallerValidation.swift:140-146 | macUSB/Features/Installation/CreatorHelperLogic.swift:564-570 | macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:180-186 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift:208-214 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSInstallerValidation.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9dff3e3d6fcb4398b6ccb75127ff6744ab6dfb799d30c6eb4d57dc12117e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): macUSB/Shared/Services/Helper/HelperService/HelperServiceRepairUI.swift:116-128 | macUSB/Shared/Services/Helper/HelperService/HelperServiceStatusUI.swift:205-217 \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":"macUSB/Shared/Services/Helper/HelperService/HelperServiceRepairUI.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9988366fc5b27521a77cc7f3067560273b8fc70420513cb7f15b4ef038112153"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): macUSBHelper/Workflow/Linux/HelperWorkflowLinuxMountGuard.swift:104-116 | macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootMountGuard.swift:78-87 \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":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxMountGuard.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18d3a32ef63856762fdf552b5ad23f19c928ea6a26f3569a5156ec829152fd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): macUSB/Features/Installation/CreationProgressView.swift:420-434 | macUSB/Features/Installation/CreationProgressView.swift:436-450 | macUSB/Features/Installation/CreatorHelperLogic.swift:820-831 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreationProgressView.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"b315d9e7588572d3f365c44c95ac4a896a474bbb92a0266f24ce6c0040e60fa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): macUSB/Features/Installation/CreatorHelperLogic.swift:1125-1130 | macUSB/Shared/Services/USBDriveLogic.swift:8-13 \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":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5ae2fd9b99ff1b967f41a863bc6c87453b3e244763bf735747e62ee12e605b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): macUSBHelper/Workflow/Windows/HelperWorkflowWindowsStages.swift:333-336 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsTargetResolution.swift:207-210 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsStages.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0342b729a18110b0018e11b30dab1ae7708d088bb4fa7fece39ec1e374e6c1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendConfiguration.swift:199-203 | macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendValidation.swift:73-77 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendConfiguration.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f469244fff6ab132ed90811f8dafbbead05fb21be63527e459a8c9c6c0843c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): macUSB/Features/Welcome/WelcomeStartupUpdateChecker.swift:78-80 | macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendValidation.swift:79-84 \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":"macUSB/Features/Welcome/WelcomeStartupUpdateChecker.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5953578f6c9d5c56351e1bee109d91061992e2e65057c5f2034f04475a7bb1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (119\u2013121 lines \u00D7 2): macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift:61-181 | macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift:216-334 \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 \u0060macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift:61\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2632e3f841cca37a08b6731b0be458dee9438a56ab1bbb18a67ab70c23fb898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyOrchestrator.swift:79-125 | macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyOrchestrator.swift:128-174 \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 \u0060macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyOrchestrator.swift:79\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyOrchestrator.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"26468522c48904cb65c91fa47b058026895277e4ea137289b710bbb7d7cb3e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:78-121 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift:96-139 \u2014 before extracting anything, compare \u0060macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift\u0060 and \u0060macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 117 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 \u0060macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:78\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":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e9303cfdbb51394f38b9862c6ac29e83667957b1600e814cad66d67ff9c80e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): macUSB/Shared/Services/Helper/HelperIPC.swift:107-147 | macUSBHelper/IPC/HelperIPC.swift:107-147 \u2014 before extracting anything, compare \u0060macUSB/Shared/Services/Helper/HelperIPC.swift\u0060 and \u0060macUSBHelper/IPC/HelperIPC.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/Helper/HelperIPC.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a38c4a63c20cc6c35b65123ff8351e1161659325612dd9688f4e0ea76f2f4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift:39-69 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift:154-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift:39\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":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0afef42ed78b050abef25307c205df0091daa7186fd1942f70da0a1c7e58f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): macUSBHelper/Workflow/HelperWorkflowFileOperations.swift:72-102 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsStages.swift:418-448 \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 \u0060macUSBHelper/Workflow/HelperWorkflowFileOperations.swift:72\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":"macUSBHelper/Workflow/HelperWorkflowFileOperations.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8674e99798c418e2a282522ec1c59c4a58e8c7c00a7710e8e35c9c148ad20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:143-170 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift:161-188 \u2014 before extracting anything, compare \u0060macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift\u0060 and \u0060macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 117 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 \u0060macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:143\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"260cb231a404d9c0ed3f4bf90ab28f9336c81b5fe86f38b97ccbda157b73279a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift:67-93 | macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift:125-151 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcd1aa2ffc387e9fbd078ccbc1657f331dfc039ed9fa1e2e277f1379213e579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift:9-34 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift:121-146 \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 \u0060macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift:9\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"787948b613507d668fedb50cbe49bb3abb51e6ce1f00afb824a4d2dc37401845"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): macUSB/Shared/Services/Helper/HelperIPC.swift:30-54 | macUSBHelper/IPC/HelperIPC.swift:30-54 \u2014 before extracting anything, compare \u0060macUSB/Shared/Services/Helper/HelperIPC.swift\u0060 and \u0060macUSBHelper/IPC/HelperIPC.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/Helper/HelperIPC.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"895839687749c98a6794e2005769aa0a27415261dffb575b1f12416aec72d599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): macUSB/Shared/Services/Windows/WindowsToolchainProbeService.swift:32-56 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift:400-424 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060macUSB/Shared/Services/Windows/WindowsToolchainProbeService.swift:58\u0060 calls \u0060runWhichExecutable\u0060 and \u0060macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift:426\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":"macUSB/Shared/Services/Windows/WindowsToolchainProbeService.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"142623753328ba29b0abacdaf13c88a613b28ed42e7917962f8138d8afc9990f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): macUSB/Features/Installation/CreationProgressView.swift:365-388 | macUSB/Features/Installation/CreationProgressView.swift:395-418 \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 \u0060macUSB/Features/Installation/CreationProgressView.swift:365\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreationProgressView.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"56526cf896dd2aae61a5ae6f965af05e3a8e94a01b15b61b55e5d985c9daf684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): macUSBHelper/Workflow/HelperWorkflowStages.swift:229-252 | macUSBHelper/Workflow/HelperWorkflowStages.swift:255-278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/HelperWorkflowStages.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a03881ff1adb3b26ad1761f77bd43505f23278609619cfbc35a4bc59b468413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): macUSB/Features/Installation/CreationProgressView.swift:478-500 | macUSB/Features/Installation/CreatorHelperLogic.swift:1032-1054 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreationProgressView.swift"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"89204d1425b0f786db808d89da1fe34e04cad41e05fc2c85911c7e67214e33d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): macUSB/Shared/UI/LiquidGlassCompatibility.swift:36-56 | macUSB/Shared/UI/LiquidGlassCompatibility.swift:59-79 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/UI/LiquidGlassCompatibility.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38ba61c2dfbe36108019bac809cfe10784e060207ae7c43a78e7e3a71f6c603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift:239-257 | macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift:262-280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dce4051c8eb41b494b16601e822d282ec1e6cb13971c47b1580dafdd221f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): macUSB/Features/Installation/UniversalInstallationView.swift:501-519 | macUSB/Features/Installation/UniversalInstallationView.swift:536-554 \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 \u0060macUSB/Features/Installation/UniversalInstallationView.swift:501\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/UniversalInstallationView.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d470b944738eb3f95117e0ada132fd29379ce762e9dcb3c8a694ebd1222ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): macUSB/Shared/Services/Helper/PrivilegedOperationClientCapabilities.swift:15-33 | macUSB/Shared/Services/Helper/PrivilegedOperationClientRosetta.swift:20-38 \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 \u0060macUSB/Shared/Services/Helper/PrivilegedOperationClientCapabilities.swift:15\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060completion\u0060 to \u0060@escaping (Result\u003CSet\u003CString\u003E, Error\u003E) -\u003E Void\u0060 in one and \u0060@escaping (Result\u003CRosettaInstallationResultPayload, Error\u003E) -\u003E Void\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060macUSB/Shared/Services/Helper/PrivilegedOperationClientRosetta.swift:19\u0060 calls \u0060finish\u0060 and \u0060macUSB/Shared/Services/Helper/PrivilegedOperationClientCapabilities.swift:14\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":"macUSB/Shared/Services/Helper/PrivilegedOperationClientCapabilities.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbc3bac4b76740ca327898391741eb6ae55c03b9312d10a74225bbc9234071c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): macUSB/Shared/Services/USBDriveLogic.swift:185-202 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:33-51 \u2014 before extracting anything, compare \u0060macUSB/Shared/Services/USBDriveLogic.swift\u0060 and \u0060macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 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 \u0060macUSB/Shared/Services/USBDriveLogic.swift:185\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5136a318daf4a4be6aaf0461ddb3d8bbcd802fdf563582864a9291ec391eccd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:648-666 | macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:728-746 \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 \u0060macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:728\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9c81dcb8873bf32c157540f0ba1dc652602d11943f2f91065b34780039aaa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:123-141 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift:141-159 \u2014 before extracting anything, compare \u0060macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift\u0060 and \u0060macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 117 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 \u0060macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:123\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b14cdf143c30e459a275564b0edfc33d883bfb314423e804a6dffc941917b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:84-100 | macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:272-289 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"515d2d537050ff91b4d3c840d6abdaedd0e0f7eb7485c1eb27174de24691fd25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift:48-64 | macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift:49-65 \u2014 before extracting anything, compare \u0060macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift\u0060 and \u0060macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 \u0060macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift:48\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5119a04e98d3952f4f35bcaca55083bbcab8f29473e8ecb87a33fba17e978524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:45-61 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:167-183 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:45\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":"macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b519231495eb47a9aa3c209abad530a6007f8b4c48cf7a79ed33ef3a0fa3047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:65-81 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:184-200 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:65\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:64\u0060 calls \u0060unlock\u0060 and \u0060macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:183\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":"macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8fcd87175b2835a9e753689c55d95ed70a183037be5f54912b201404fa7398"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:88-104 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:203-219 \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 \u0060macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:88\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":"macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c604e16df82ededfa8e0f74669833769df8f8ab7bd39ac00aaf6671ab3c755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): macUSB/Shared/Services/USBDriveLogic.swift:236-251 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:116-132 \u2014 before extracting anything, compare \u0060macUSB/Shared/Services/USBDriveLogic.swift\u0060 and \u0060macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 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 \u0060macUSB/Shared/Services/USBDriveLogic.swift:236\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb80835c4d868bf050c972af6d29f6fc7d54d0aa7abcd4ede8ba0ff2b6c672a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): macUSB/Shared/Services/USBDriveLogic.swift:259-274 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:81-97 \u2014 before extracting anything, compare \u0060macUSB/Shared/Services/USBDriveLogic.swift\u0060 and \u0060macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 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 \u0060macUSB/Shared/Services/USBDriveLogic.swift:259\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf1093e04d44401b7dd91e8ee173c53e78dc1077765bb0d0826b9fef88591c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:160-175 | macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:339-355 \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 \u0060macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:160\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e17ac7ea20db6cbd3a3f857f391eeee4a45c2d6aa064ce4e08218b25f1b397"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): macUSB/Features/Installation/CreatorHelperLogic.swift:908-923 | macUSB/Features/Installation/CreatorHelperLogic.swift:1076-1091 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:177-192 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"415439632229a42c12219c1cfc4f5fca7a632090c89ff49c0ef14598ab82f25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyProgress.swift:12-25 | macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyProgress.swift:51-66 \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 \u0060macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyProgress.swift:12\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":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyProgress.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4dd177ced87ebcecb3f5bf31d9bf2bd6975db823889adc4daacabe4296d054d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): macUSB/Features/Downloader/Logic/MacOSCleanupLogic.swift:146-160 | macUSB/Features/Finish/FinishUSBView.swift:717-732 \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 \u0060macUSB/Features/Downloader/Logic/MacOSCleanupLogic.swift:146\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/MacOSCleanupLogic.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"430c3644f45f5815d9481795c0c786af0d009c7c521dff627c78e125ef0f1bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): macUSB/Features/Installation/CreatorHelperLogic.swift:248-263 | macUSB/Features/Installation/CreatorHelperLogic.swift:275-290 \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 \u0060macUSB/Features/Installation/CreatorHelperLogic.swift:248\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"d937450a29db53f2ea73ab1d50e07e4bac05c53abc0e1e2bd8a9a139a38909b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): macUSB/Features/Installation/CreatorHelperLogic.swift:1076-1091 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:57-72 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"1609699f9560c6fce51abec221f5bb6748ed548192d63f5636247942909bd509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootRawDevice.swift:91-106 | macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootRawDevice.swift:127-142 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootRawDevice.swift:91\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootRawDevice.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"518b43943c7db8717afd2e06d14f3d2c2a286a42c6de3475a46ec0b797aa7ca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift:193-207 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift:429-443 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsStages.swift:350-364 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2784a441883cf99afb0fcd8244f4f25ac30395e963f5d074e5cc2a5b23c3e1e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift:72-86 | macUSB/Features/Analysis/SystemAnalysisView.swift:50-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"83cfb1f380479eb0538a90fedb1264cb63c766e2ad334ad6d890d79d0e6b816c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:30-44 | macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:164-176 \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 \u0060macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:30\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 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":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1f901694638eaf44060bf29b8efe7ed3d84ea02f32a153b3cd81324630b80e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): macUSB/Features/Installation/CreatorHelperLogic.swift:464-478 | macUSB/Features/Installation/CreatorHelperLogic.swift:495-509 \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 \u0060macUSB/Features/Installation/CreatorHelperLogic.swift:464\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f2e5f58c971e4b1dd85a8a33f85f8f3edaa9cb6ccd10e3266f51f1ffac9251"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift:15-29 | macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift:16-30 \u2014 before extracting anything, compare \u0060macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift\u0060 and \u0060macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 \u0060macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift:15\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"637e8200fac53f1de4b5a2d1c7cadbbaaf58d464a32f11a7f94419751f0f9c3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): macUSB/Shared/Services/USBDriveLogic.swift:167-181 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:14-28 \u2014 before extracting anything, compare \u0060macUSB/Shared/Services/USBDriveLogic.swift\u0060 and \u0060macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 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 \u0060macUSB/Shared/Services/USBDriveLogic.swift:167\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6091787fd72a0daaa03be8946aefb87585d6dff83df2a0897ac88742d58006e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 3): macUSB/Shared/Services/Helper/HelperService/HelperServiceEnsureReadyFlow.swift:162-175 | macUSB/Shared/Services/Helper/HelperService/HelperServiceEnsureReadyFlow.swift:234-243 | macUSB/Shared/Services/Helper/HelperService/HelperServiceEnsureReadyFlow.swift:259-271 \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 \u0060macUSB/Shared/Services/Helper/HelperService/HelperServiceEnsureReadyFlow.swift:162\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060completion\u0060 to \u0060@escaping EnsureCompletion\u0060 in one and \u0060@escaping (Bool, String?) -\u003E Void\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":"macUSB/Shared/Services/Helper/HelperService/HelperServiceEnsureReadyFlow.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f02e80c39b8c4dedacd1a17259f5403570959227e8a0310d2648d13f700fba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): macUSB/Shared/Services/Helper/PrivilegedOperationClientCapabilities.swift:47-60 | macUSB/Shared/Services/Helper/PrivilegedOperationClientRosetta.swift:41-55 \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 \u0060macUSB/Shared/Services/Helper/PrivilegedOperationClientCapabilities.swift:47\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":"macUSB/Shared/Services/Helper/PrivilegedOperationClientCapabilities.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f3fbad8934a7d1d5630a63330c2a49fe233919bc46351fba590ab89747a600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift:224-236 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicRawLinuxImageLifecycle.swift:37-49 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb07319cca8fbfdbed51209d4a69f0290b57ade1cdb0edb5ad8524395577647"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:192-204 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:284-296 \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 \u0060macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:192\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f371c2c30678c3e638376e59fe045a80d4768cc4b7da07b4e79c0158bca25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:401-412 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:417-429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbdab3890ea07eb1cd1b765276423d5a2d843fa1a8fa70b3bb37155bd782ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): macUSBHelper/Workflow/HelperWorkflowFileOperations.swift:269-281 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsStages.swift:416-428 \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 \u0060macUSBHelper/Workflow/HelperWorkflowFileOperations.swift:269\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/HelperWorkflowFileOperations.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8739b231d9d221d821a0350c14836df04714907531ccb18f55a57cea569a48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxClassification.swift:160-171 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxClassification.swift:175-186 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxClassification.swift:190-201 \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 \u0060macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxClassification.swift:160\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":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxClassification.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"061d12c349448bc7a5bd695fcf05198988489b9487fe828f16a8b746465a03b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift:126-137 | macUSB/Features/Analysis/SystemAnalysisView.swift:332-343 \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 \u0060macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift:126\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef04fde17d6758b0d3c2b13d3d2b2d924f1692963c786df348f928e64c7b94ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:45-56 | macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:103-114 \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 \u0060macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:45\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":"macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d463dc42ef245d64502c124d4f19891b480942dd3dc04dc4a98f1112f2f850"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): macUSB/Features/Installation/CreationProgressView.swift:125-136 | macUSB/Features/Installation/UniversalInstallationView.swift:199-210 \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 \u0060macUSB/Features/Installation/CreationProgressView.swift:125\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":"macUSB/Features/Installation/CreationProgressView.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1768587d32e8125ceb9f6e07f3d08859bffa684ad1e58b187d635db23e1e26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): macUSB/Shared/Services/USBDriveLogic.swift:292-303 | macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift:144-155 \u2014 before extracting anything, compare \u0060macUSB/Shared/Services/USBDriveLogic.swift\u0060 and \u0060macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 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 \u0060macUSB/Shared/Services/USBDriveLogic.swift:292\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a3ca5366e0bb8fd2036610298cea5de4cb597913e6aa7370c4cc6d40a9f3fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): macUSBHelper/Service/PrivilegedHelperService.swift:18-29 | macUSBHelper/Service/PrivilegedHelperService.swift:92-103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macUSBHelper/Service/PrivilegedHelperService.swift:18\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"macUSBHelper/Service/PrivilegedHelperService.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dbf7b9a0e6956151c8e8a407e72ac4ab56fa82b0b14184238bda9ad4dbaed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): macUSB/Features/Analysis/AnalysisLogic.swift:433-443 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift:354-364 | macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSImageMounting.swift:142-152 | macUSB/Shared/Services/InstallerSourceImageUnmountRegistry.swift:206-216 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macUSB/Features/Analysis/AnalysisLogic.swift:433\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":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb6804c0bc0b87e901e3c74b30a9e6bab5c3087ffb7aa7c82291cab92fe4931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 3): macUSB/Shared/Services/Helper/HelperConnectionSecurityPolicy.swift:59-69 | macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift:146-154 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:561-568 \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 \u0060macUSB/Shared/Services/Helper/HelperConnectionSecurityPolicy.swift:59\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":"macUSB/Shared/Services/Helper/HelperConnectionSecurityPolicy.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87c2af67885aa99640fe65df06c66158556dba70a99dbf87a5653b037096e5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:72-82 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:191-201 | macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:283-293 \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 \u0060macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift:72\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":"macUSB/Shared/Services/Helper/PrivilegedOperationClient.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"46552d8157197f86e51f4f31377f84ba297793bbd9ee6f71187eb8aeb364e0fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift:5-15 | macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift:185-195 \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 \u0060macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift:5\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":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f37d490a2638a71f595f689f4eb5deadfc3c2b9911707cbbcc8d0a20050808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): macUSB/Features/Installation/UniversalInstallationView.swift:469-479 | macUSB/Features/Installation/UniversalInstallationView.swift:491-501 \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 \u0060macUSB/Features/Installation/UniversalInstallationView.swift:469\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, \u0060macUSB/Features/Installation/UniversalInstallationView.swift:480\u0060 calls \u0060ProgressView\u0060, \u0060controlSize\u0060 and \u0060macUSB/Features/Installation/UniversalInstallationView.swift:502\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":"macUSB/Features/Installation/UniversalInstallationView.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"4678c16889cb72558de7db37c06485468d04b1241ab0ebf7620b80eb08308b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): macUSB/Shared/Services/Helper/HelperService/HelperServiceRepairUI.swift:101-111 | macUSB/Shared/Services/Helper/HelperService/HelperServiceStatusUI.swift:191-201 \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 \u0060macUSB/Shared/Services/Helper/HelperService/HelperServiceRepairUI.swift:101\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":"macUSB/Shared/Services/Helper/HelperService/HelperServiceRepairUI.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1873ba3ba6574a47057b5d0cbc059594ccd9ee59e16a3a2fffd0ab88c19c3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): macUSB/Shared/Services/USBDriveLogic.swift:26-35 | macUSB/Shared/Services/USBDriveLogic.swift:58-68 \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 \u0060macUSB/Shared/Services/USBDriveLogic.swift:26\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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. 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":"macUSB/Shared/Services/USBDriveLogic.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc8bcfba70e629031b4e231d14afaca8eacc3498ecec062761a3c4c99eb70ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:24-33 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift:19-29 \u2014 before extracting anything, compare \u0060macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift\u0060 and \u0060macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 117 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 \u0060macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:24\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4518c03af9e2427a45c4c78a673d63b3cfb6de7c80edccd7fde1103635e5f9cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): macUSB/Features/Analysis/AnalysisLogic.swift:399-408 | macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift:10-19 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift:328-337 | macUSB/Shared/Services/InstallerSourceImageUnmountRegistry.swift:124-133 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macUSB/Features/Analysis/AnalysisLogic.swift:399\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":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8c0d931fddba8ec87a8836fc9170e4d3af1e5ee1f339c2325acafe3d2a6df5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): macUSB/Shared/Services/Helper/HelperService/HelperServiceEnsureReadyFlow.swift:159-168 | macUSB/Shared/Services/Helper/HelperService/HelperServiceEnsureReadyFlow.swift:231-240 | macUSB/Shared/Services/Helper/HelperService/HelperServiceEnsureReadyFlow.swift:256-265 | macUSB/Shared/Services/Helper/HelperService/HelperServiceEnsureReadyFlow.swift:305-314 \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 \u0060macUSB/Shared/Services/Helper/HelperService/HelperServiceEnsureReadyFlow.swift:159\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 \u0060completion\u0060 to \u0060@escaping EnsureCompletion\u0060 in one and \u0060@escaping (Bool, String?) -\u003E Void\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":"macUSB/Shared/Services/Helper/HelperService/HelperServiceEnsureReadyFlow.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"37472da6bd0179239dcc293918e9e1548159c48344a0aa02636866b5d2b2f798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:42-51 | macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:59-68 | macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:100-109 \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 \u0060macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:42\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":"macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"adde6aaee7b90ee275be392c309e2398df4903919a54c4a86d0365df433910c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift:74-83 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift:372-381 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift:368\u0060 calls \u0060waitUntilExit\u0060, \u0060readDataToEndOfFile\u0060 and \u0060macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift:72\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":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxArchiveReader.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ac5a5932ae671d649a63937b0c5e5572f2bbbffea1a427c818062f9a91d328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): macUSB/Features/Installation/UniversalInstallationView.swift:300-308 | macUSB/Features/Installation/UniversalInstallationView.swift:321-329 | macUSB/Features/Installation/UniversalInstallationView.swift:466-474 | macUSB/Features/Installation/UniversalInstallationView.swift:488-496 \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 \u0060macUSB/Features/Installation/UniversalInstallationView.swift:300\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":"macUSB/Features/Installation/UniversalInstallationView.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"59041854ff626d0f71bcddb24842cde6dedf8899743bde9c853baee2525aab3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): macUSB/Features/Downloader/UI/MacOSDownloaderDiskImageAlerts.swift:34-42 | macUSB/Features/Downloader/UI/MacOSDownloaderDiskImageAlerts.swift:44-52 | macUSB/Features/Downloader/UI/MacOSDownloaderDiskImageAlerts.swift:54-60 \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. 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":"macUSB/Features/Downloader/UI/MacOSDownloaderDiskImageAlerts.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c25a67272b8167280d502b394871dad4434a9d76646f6eca931e9bda757a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): macUSB/Features/Analysis/AnalysisLogic.swift:445-453 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift:366-374 \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 \u0060macUSB/Features/Analysis/AnalysisLogic.swift:445\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":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"318bd5588cd71fbc8824a6dfbd416bab75a51190b27f9ad35498a30dbd268ef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSImageMounting.swift:180-188 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift:217-229 \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 \u0060macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSImageMounting.swift:180\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSImageMounting.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2218d0bf74205ab6df08a676581da4dd64bf470c8ebf76fa522b6f8013ecd27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSImageMounting.swift:252-261 | macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSImageMounting.swift:321-330 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSImageMounting.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad5a751853129e6c0585ec869a31e90f1db3cab4372edf0bac14f511811262d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift:348-356 | macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift:368-376 \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 \u0060macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift:348\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82743f16bcb54d8c2b1f64414e9cbbbff0e7a6149aff39d99aada52bfe01051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): macUSB/Features/Installation/UniversalInstallationView.swift:412-420 | macUSB/Features/Installation/UniversalInstallationView.swift:523-531 \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 \u0060macUSB/Features/Installation/UniversalInstallationView.swift:412\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":"macUSB/Features/Installation/UniversalInstallationView.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"b559845e75fd26bebc092efc6dc96805063852b428899c4028111ad10d1e7f70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): macUSB/Shared/Services/USBDiscoveryRegistryProbe.swift:29-37 | macUSB/Shared/Services/USBDriveLogic.swift:71-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDiscoveryRegistryProbe.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f5fe71890f2f50c045cc3676b7cf35029ea17bd417a38ef93fd33b843aaf5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:23-31 | macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:262-269 \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 \u0060macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift:23\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/DownloaderAssembly/DownloaderAssemblyProcess.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e980b8550304d3b99cbae79caeb3f6e60c947c11146bbaae8e343c7cc12627f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): macUSBHelper/Workflow/Windows/HelperWorkflowWindowsCopyProgressParsing.swift:17-25 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsCopyProgressParsing.swift:54-62 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsCopyProgressParsing.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33856b2c4215121c35e3ab63d3076431083edd68550d0a8c2dbe00680dcc7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): macUSBHelper/Workflow/Windows/HelperWorkflowWindowsTargetResolution.swift:138-146 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsTargetResolution.swift:170-177 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsTargetResolution.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"828cc7b68f89a1c1e2b7edb410a5f8e994140e78440332aa9067cb15b07c8c18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:42-49 | macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:59-66 | macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:74-83 | macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift:100-107 \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. 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":"macUSB/Features/Downloader/UI/MacOSDownloaderPrerequisiteAlerts.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"999df6e55ddac02928416d01e83d868bb699295e254adbe3981cd163f1f047a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): macUSB/Features/Analysis/AnalysisLogic.swift:447-454 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift:368-375 | macUSB/Shared/Services/InstallerSourceImageUnmountRegistry.swift:223-230 \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 \u0060macUSB/Features/Analysis/AnalysisLogic.swift:447\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":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"0821a54d994763d5b684ce404cbc14f0947f2b4ea73d96f036cfde023c336685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:80-87 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift:98-105 | macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootDiskOperations.swift:97-103 \u2014 before extracting anything, compare \u0060macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift\u0060 and \u0060macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 117 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 \u0060macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:80\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, \u0060macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootDiskOperations.swift:104\u0060 calls \u0060Pipe\u0060 and \u0060macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:88\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":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"f231afb74fdf050fe222803c22a720b8852a4a2e1663ebc13238923e33ed3af4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsClassification.swift:221-229 | macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsClassification.swift:237-245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Windows/AnalysisLogicWindowsClassification.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"00047c169ba223763b457051e7c2fc58197e8c5222070bdc450e8b51fb53c01e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): macUSB/Features/Finish/FinishUSBView.swift:500-507 | macUSB/Features/Installation/UniversalInstallationView.swift:522-528 \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 \u0060macUSB/Features/Finish/FinishUSBView.swift:500\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":"macUSB/Features/Finish/FinishUSBView.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca3dc7286c25c8c84acbd5099368e403ba5ae578890e0d9d7125a425d670def"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): macUSBHelper/Workflow/HelperWorkflowFileOperations.swift:242-249 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsStages.swift:385-392 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/HelperWorkflowFileOperations.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3698061a1f724d5e6102a094b9050b16e5ed7ce57973ecdfc4217f195dfff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): macUSB/Features/Finish/FinishUSBView.swift:481-487 | macUSB/Features/Installation/UniversalInstallationView.swift:299-305 | macUSB/Features/Installation/UniversalInstallationView.swift:320-326 | macUSB/Features/Installation/UniversalInstallationView.swift:465-471 | macUSB/Features/Installation/UniversalInstallationView.swift:487-493 \u2014 there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macUSB/Features/Finish/FinishUSBView.swift:481\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":"macUSB/Features/Finish/FinishUSBView.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e42259d4c5ef59b578b067b3a44de836a6510fe2bdd3b6d93f579645a9230ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): macUSB/Features/Analysis/AnalysisLogic.swift:459-465 | macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxLifecycle.swift:380-386 | macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSImageMounting.swift:168-174 \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 \u0060macUSB/Features/Analysis/AnalysisLogic.swift:459\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":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4bea6849aeec6c118629150e28eaa9592b03472d82fb742c71ce52e600aa78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): macUSBHelper/Workflow/Windows/HelperWorkflowWindowsCopyProgressParsing.swift:19-25 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsCopyProgressParsing.swift:56-62 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsWimSplitProgressParsing.swift:8-14 \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 \u0060macUSBHelper/Workflow/Windows/HelperWorkflowWindowsCopyProgressParsing.swift:19\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":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsCopyProgressParsing.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae02de4dcf21285d79a2173c9b9b3c01049be64ed70ce38ac89a3efa825135d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:60-67 | macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:344-350 \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 \u0060macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:60\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"68360b830c7d8f051f276ef4e93844bec9c6d5f541064f88c3f77ef4eb72ca08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift:37-43 | macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift:40-46 \u2014 before extracting anything, compare \u0060macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift\u0060 and \u0060macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 \u0060macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift:37\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"865f5b0cac7c526b4ca12caac258fcc72903a42885f4dcf047dcd461b7b9d60b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 15): macUSB/App/macUSBApp.swift:160-165 | macUSB/App/macUSBApp.swift:167-172 | macUSB/App/macUSBApp.swift:174-179 | macUSB/App/macUSBApp.swift:181-186 | macUSB/App/macUSBApp.swift:188-193 | macUSB/App/macUSBApp.swift:195-200 | macUSB/App/macUSBApp.swift:202-207 | macUSB/App/macUSBApp.swift:209-214 | macUSB/App/macUSBApp.swift:216-221 | macUSB/App/macUSBApp.swift:223-228 | macUSB/App/macUSBApp.swift:230-235 | macUSB/App/macUSBApp.swift:237-242 | macUSB/App/macUSBApp.swift:244-249 | macUSB/App/macUSBApp.swift:251-256 | macUSB/App/macUSBApp.swift:258-263 \u2014 all 15 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060macUSB/App/macUSBApp.swift:158\u0060 calls \u0060Divider\u0060 and \u0060macUSB/App/macUSBApp.swift:165\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":"macUSB/App/macUSBApp.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"67483487bad29e35e4c4e2f7a053e019b1fecd8ce193d6b369066e611430ec42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): macUSB/Features/Analysis/SystemAnalysisView.swift:130-135 | macUSB/Features/Downloader/UI/MacOSDownloaderDiskImageAlerts.swift:8-13 | macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift:222-231 \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 \u0060macUSB/Features/Analysis/SystemAnalysisView.swift:130\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":"macUSB/Features/Analysis/SystemAnalysisView.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"492fc14a3b6f1258dfaded2df79000ec36b7fadc150775ac8013eb66670dd95e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:550-555 | macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift:200-204 \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 \u0060macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:550\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":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dcd17bc2f489000e8fe7da2d60c1a837422626979fed0adc4943f6b27e6eeb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 11): macUSB/Features/Downloader/UI/MacOSDownloaderDiskImageAlerts.swift:70-79 | macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift:239-248 | macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift:262-271 | macUSB/Features/Installation/CreatorLogic.swift:39-43 | macUSB/Features/Installation/CreatorLogic.swift:133-137 | macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendAlertLogic.swift:52-56 | macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift:43-47 | macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift:60-64 | macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift:101-105 | macUSB/Shared/Services/Helper/HelperService/HelperServiceStatusUI.swift:29-33 | macUSB/Shared/Services/NotificationPermissionManager.swift:89-93 \u2014 there are 11 copies across 8 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 11 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macUSB/Features/Downloader/UI/MacOSDownloaderDiskImageAlerts.swift:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendAlertLogic.swift:50\u0060 calls \u0060log\u0060 and \u0060macUSB/Features/Installation/CreatorLogic.swift:131\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":"macUSB/Features/Downloader/UI/MacOSDownloaderDiskImageAlerts.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2c9529e62a2f36921d3f7668f66738b27b291f12c2f49ceedc4642a94669f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10): macUSB/App/macUSBApp.swift:503-508 | macUSB/Features/Welcome/WelcomeAutoSkipPreferences.swift:20-25 | macUSB/Shared/Services/FullDiskAccessPermissionManager.swift:127-132 | macUSB/Shared/Services/FullDiskAccessPermissionManager.swift:159-164 | macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift:69-74 | macUSB/Shared/Services/Helper/HelperService/HelperServiceRepairUI.swift:90-95 | macUSB/Shared/Services/Helper/HelperService/HelperServiceStatusUI.swift:117-122 | macUSB/Shared/Services/Helper/HelperService/HelperServiceStatusUI.swift:140-145 | macUSB/Shared/Services/Helper/HelperService/HelperServiceStatusUI.swift:180-185 | macUSB/Shared/Services/NotificationPermissionManager.swift:64-69 \u2014 there are 10 copies across 7 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 10 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060macUSB/Shared/Services/FullDiskAccessPermissionManager.swift:167\u0060 calls \u0060beginSheetModal\u0060 and \u0060macUSB/App/macUSBApp.swift:509\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":"macUSB/App/macUSBApp.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62f2121981b173d28b99d156ae77c262a9625784756ce054f137df83eb127d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): macUSB/App/ContentView.swift:176-180 | macUSB/App/macUSBApp.swift:98-102 | macUSB/App/macUSBApp.swift:125-129 | macUSB/Features/Installation/macOS/CreatorMacOSRosettaLogic.swift:64-68 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060macUSB/App/macUSBApp.swift:104\u0060 calls \u0060addButton\u0060, \u0060String\u0060 and \u0060macUSB/App/ContentView.swift:183\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":"macUSB/App/ContentView.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce47f994513dbb797dc7bbba252d3a14f36461cc6c33f1be3771d83fe3b6227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:550-554 | macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyProcessUtils.swift:119-123 | macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift:200-204 \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 \u0060macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift:550\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":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyLegacyFlow.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b1f997b7260ec92c7abe21e69eda0e68cbcc242b76715c76a35b1fe201c6ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 11): macUSB/Features/Installation/CreatorLogic.swift:44-48 | macUSB/Features/Installation/CreatorLogic.swift:138-139 | macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift:47-51 | macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift:48-52 | macUSB/Features/Installation/macOS/CreatorMacOSRosettaLogic.swift:69-70 | macUSB/Features/Welcome/WelcomeAutoSkipPreferences.swift:25-26 | macUSB/Shared/Services/FullDiskAccessPermissionManager.swift:132-133 | macUSB/Shared/Services/Helper/HelperService/HelperServiceRepairUI.swift:145-146 | macUSB/Shared/Services/Helper/HelperService/HelperServiceStatusUI.swift:34-35 | macUSB/Shared/Services/NotificationPermissionManager.swift:69-70 | macUSB/Shared/Services/NotificationPermissionManager.swift:94-95 \u2014 before extracting anything, compare \u0060macUSB/Features/Installation/Linux/CreatorLinuxUnmountRecoveryLogic.swift\u0060 and \u0060macUSB/Features/Installation/Windows/CreatorWindowsUnmountRecoveryLogic.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 \u0060macUSB/Features/Installation/CreatorLogic.swift:44\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":"macUSB/Features/Installation/CreatorLogic.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"116e0926e96f0f943c9c1d1e2a911a0eaf91e4dd53e602f84b7872bdb526be16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift:43-48 | macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift:50-55 \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 \u0060macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift:43\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":"macUSB/Features/Analysis/Logic/AnalysisLogicFileSelection.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c86ec0cc08661545e6d89206e7d4445e68024a600c1e6c6566c6d5bf0c4c77f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxClassification.swift:501-505 | macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoveryDistributionParser.swift:34-38 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/Linux/AnalysisLogicLinuxClassification.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"a124baa8ede2170fd2e01d3cb7651f2a20e7bc2c988599228b65859318998c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): macUSB/Features/Analysis/RawLinuxImage/RawLinuxImageSelectionCoordinator.swift:23-27 | macUSB/Shared/Services/AppTerminationCoordinator.swift:63-67 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/RawLinuxImage/RawLinuxImageSelectionCoordinator.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"93dacc1f706328e76d7040cc3a790fcd95db1a5c6259493ea90b23f2329154f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift:213-222 | macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift:227-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"239c9e3047485e14994d3f505639be7dd3f88877927bea1b459ce1a12da1a0e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): macUSB/Features/Welcome/WelcomeStartupUpdateChecker.swift:47-60 | macUSB/Shared/Services/UpdateChecker.swift:44-57 \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 \u0060macUSB/Features/Welcome/WelcomeStartupUpdateChecker.swift:47\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":"macUSB/Features/Welcome/WelcomeStartupUpdateChecker.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa5d6a0e019fa946f153a51bd92554819f602735f01cc03ed8a477bf41f4800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 5): macUSB/Shared/Services/FullDiskAccessPermissionManager.swift:132-135 | macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift:75-79 | macUSB/Shared/Services/Helper/HelperService/HelperServiceStatusUI.swift:147-151 | macUSB/Shared/Services/NotificationPermissionManager.swift:69-72 | macUSB/Shared/Services/NotificationPermissionManager.swift:94-97 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060macUSB/Shared/Services/FullDiskAccessPermissionManager.swift:132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060macUSB/Shared/Services/Helper/HelperService/HelperServiceDiagnostics.swift:74\u0060 calls \u0060addButton\u0060, \u0060String\u0060 and \u0060macUSB/Shared/Services/FullDiskAccessPermissionManager.swift:131\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":"macUSB/Shared/Services/FullDiskAccessPermissionManager.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceab818c3c7497df81a38f2918e6dab13ee358af2970bef26a1852d42cd7500b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootArtifact.swift:242-247 | macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootLayoutValidator.swift:61-66 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Windows/MacUSBoot/HelperWorkflowWindowsMacUSBootArtifact.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba070f486f0dafc8131b6c037f522322c1a51c63ac5c24358db66350a6f5a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift:846-852 | macUSBHelper/Workflow/Linux/HelperWorkflowLinuxVerification.swift:122-128 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/MacOSVerificationLogic.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1170861646aa302aa25cbedf69c8a01947955388b1e35c43b30e50c336bf194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): macUSB/Features/Finish/FinishUSBView.swift:783-787 | macUSB/Features/Installation/UniversalInstallationView.swift:672-676 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Finish/FinishUSBView.swift"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4d7a1af6eb24397e32afd817e0391042d7f27a863932b74ec4c2d59ac55c5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): macUSB/Shared/Services/Helper/HelperIPC.swift:309-313 | macUSBHelper/IPC/HelperIPC.swift:236-240 \u2014 before extracting anything, compare \u0060macUSB/Shared/Services/Helper/HelperIPC.swift\u0060 and \u0060macUSBHelper/IPC/HelperIPC.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/Helper/HelperIPC.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"0744054048640cfac6f5eb0a2c2a01afc075ef9398a3118c95e3eb629c04b895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): macUSB/Shared/Services/Helper/HelperIPC.swift:315-319 | macUSBHelper/IPC/HelperIPC.swift:242-246 \u2014 before extracting anything, compare \u0060macUSB/Shared/Services/Helper/HelperIPC.swift\u0060 and \u0060macUSBHelper/IPC/HelperIPC.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/Helper/HelperIPC.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"35cf7f4f143cb1a9b4ae21da8bfab3d0948dfc360483f193ee0e6b23fdb56675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): macUSBHelper/DownloaderAssembly/DownloaderAssemblyExecutor.swift:14-22 | macUSBHelper/Workflow/HelperWorkflowExecutor.swift:39-43 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060DownloaderAssemblyRequestPayload\u0060 in one and \u0060HelperWorkflowRequestPayload\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":"macUSBHelper/DownloaderAssembly/DownloaderAssemblyExecutor.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd8c51b27272abad0778f6990f57f0779eeacd8d042d9200476009e0883eee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift:172-178 | macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift:200-206 \u2014 before extracting anything, compare \u0060macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift\u0060 and \u0060macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c4e7c8bc1d5d320fbd53e4119d9ca302e87b0641e29a8cf601f86cdd83cf9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): macUSB/Shared/Services/Helper/HelperIPC.swift:70-83 | macUSBHelper/IPC/HelperIPC.swift:70-83 \u2014 before extracting anything, compare \u0060macUSB/Shared/Services/Helper/HelperIPC.swift\u0060 and \u0060macUSBHelper/IPC/HelperIPC.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/Helper/HelperIPC.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0508440327d6c78e41d85495931fa2a983c2ce4ff12f5d4a8b75f115d2d2130c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MenuState (LCOM4 4): MenuState\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":"macUSB/Shared/Services/MenuState.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"850e9bca7ce9f3fb1d4ac31c51801fb6cb1653d10577745d27da81d3b53733fc"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (XCTest or Swift Testing), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Analysis/SystemAnalysisView.swift: macUSB/Features/Analysis/SystemAnalysisView.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in SystemAnalysisView.detectedOrUnsupportedView at line 366. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Analysis/SystemAnalysisView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisView.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba4b07d067c064ae4ee254d043cd2a77e90317136c0e71f4094d3c8111fb720"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Installation/UniversalInstallationView.swift: macUSB/Features/Installation/UniversalInstallationView.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in UniversalInstallationView.body at line 188. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Installation/UniversalInstallationView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/UniversalInstallationView.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8384f67da040804725e8f7a8082ee27d723c0e7a3a9653d74114a9111180b21"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/App/macUSBApp.swift: macUSB/App/macUSBApp.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in macUSBApp.body at line 71. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/App/macUSBApp.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/App/macUSBApp.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a2b70e6dc4be3e10526a7f6f6cfe3ed50626cea2fa79019efe03a85c5f6835"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Installation/CreatorHelperLogic.swift: macUSB/Features/Installation/CreatorHelperLogic.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in UniversalInstallationView.startCreationProcessWithHelper at line 32. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Installation/CreatorHelperLogic.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d2a77b98fad1e24ea160fd74b21193c4534c4d78d27ae29edbc868f5ba07d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Shared/Services/USBTargetDiscoveryService.swift: macUSB/Shared/Services/USBTargetDiscoveryService.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in USBTargetDiscoveryService.scan at line 6. 2 of those changes were fix/bug commits, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Shared/Services/USBTargetDiscoveryService.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBTargetDiscoveryService.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0134a6f0f8f582d2e4b4eb9feb3630711a4c991ca42a4a46c3ca7cd107c9b56"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Finish/FinishUSBView.swift: macUSB/Features/Finish/FinishUSBView.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in FinishUSBView.body at line 175. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Finish/FinishUSBView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Finish/FinishUSBView.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"908211e613225db03212c8fd86d8f1648d5fc693dd04a9401a4abf36bad766b0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Analysis/AnalysisLogic.swift: macUSB/Features/Analysis/AnalysisLogic.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AnalysisLogic.selectedDriveForInstallation at line 112. 1 of those changes was a fix/bug commit, and the other 16 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Analysis/AnalysisLogic.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/AnalysisLogic.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d425f00c5d9ffe32998ba2e6d338d53a6115e808388a670d46f86fbf88a6a7b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Analysis/Logic/AnalysisLogicUsbDrives.swift: macUSB/Features/Analysis/Logic/AnalysisLogicUsbDrives.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in AnalysisLogic.checkCapacity at line 218. 1 of those changes was a fix/bug commit, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Analysis/Logic/AnalysisLogicUsbDrives.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/AnalysisLogicUsbDrives.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d1933e0fb7536bf94953431a187b60e4cf6f058400130903bf3a5f6dd1f078"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift: macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 84 in AnalysisLogic.applyMacosCompatibilityForMountedInstaller at line 5. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSCompatibility.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5225772f5437855cd768213a4c4ef94edc546de69577e7a38bf57bf2500bb02"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Downloader/Logic/Download/MacOSDownloadOrchestrator.swift: macUSB/Features/Downloader/Logic/Download/MacOSDownloadOrchestrator.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in MontereyDownloadFlowModel.runWorkflow at line 4. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Downloader/Logic/Download/MacOSDownloadOrchestrator.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Download/MacOSDownloadOrchestrator.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a294cc549a64cf2cc3e82ac9faa2c7ea4e8af405408c9459983420dd331e9a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Analysis/Logic/AnalysisLogicAnalysisFlow.swift: macUSB/Features/Analysis/Logic/AnalysisLogicAnalysisFlow.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in AnalysisLogic.startAnalysis at line 36. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Analysis/Logic/AnalysisLogicAnalysisFlow.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/AnalysisLogicAnalysisFlow.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f5dc70d8e405d000bb6de037d667cb98fe146a928999a34283e4a18df89cf9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift: macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SystemAnalysisUSBSectionView.body at line 88. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisUSBSectionView.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"058eb87afc936307ce9dd9bda6f0c1aa031dcdae417ca9f38825b8f4c17e7847"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Analysis/AnalysisUSBDiscoveryPresentation.swift: macUSB/Features/Analysis/AnalysisUSBDiscoveryPresentation.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in AnalysisLogic.usbDiscoveryNotice at line 85. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Analysis/AnalysisUSBDiscoveryPresentation.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/AnalysisUSBDiscoveryPresentation.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8893832589fefd900d82a77f2714127209688aa47123691d788db8746c0d5da9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoveryCatalogParser.swift: macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoveryCatalogParser.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in MacOSCatalogService.fetchDownloadManifest at line 120. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoveryCatalogParser.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoveryCatalogParser.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"0428df3b22c42cbb0060f1983769b2f5aef8b17596257ca2315631dd26e845d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Analysis/Logic/AnalysisLogicUSBAdmission.swift: macUSB/Features/Analysis/Logic/AnalysisLogicUSBAdmission.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in AnalysisLogic.confirmUSBTargetForHandoff at line 9. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Analysis/Logic/AnalysisLogicUSBAdmission.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/AnalysisLogicUSBAdmission.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe3ddeae62e57a54766e63cec334239a0cae7c15f20ac69468e2e27973c7b4a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Downloader/Logic/DiskImage/MacOSDiskImageCreator.swift: macUSB/Features/Downloader/Logic/DiskImage/MacOSDiskImageCreator.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in MontereyDownloadFlowModel.runDiskImageCreation at line 4. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Downloader/Logic/DiskImage/MacOSDiskImageCreator.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/DiskImage/MacOSDiskImageCreator.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c1bfa5f74ea7fe00095b686cbbd69c9dce1510524589802b478cbc54cc5f52"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Downloader/UI/MacOSDownloaderSummaryView.swift: macUSB/Features/Downloader/UI/MacOSDownloaderSummaryView.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in MacOSDownloaderWindowShellView.downloadSummaryView at line 5. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Downloader/UI/MacOSDownloaderSummaryView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/UI/MacOSDownloaderSummaryView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e13058cb43da8fa4cf80b2ecad62a573e914a8cc3ec81cc548099c3eea3080"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Shared/Services/USBDiscoveryVolumeCollector.swift: macUSB/Shared/Services/USBDiscoveryVolumeCollector.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in USBDiscoveryVolumeCollector.collect at line 12. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Shared/Services/USBDiscoveryVolumeCollector.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDiscoveryVolumeCollector.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a17a4694a9c48309b02566e9910bb69faffe14b47b0b61f98175aeb6ad5b49"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Features/Finish/FinishUSBEjectLogic.swift: macUSB/Features/Finish/FinishUSBEjectLogic.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in FinishUSBEjectLogic.performEject at line 65. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Features/Finish/FinishUSBEjectLogic.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Finish/FinishUSBEjectLogic.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3e4695db4c790da832af20a287fb913da2edec7bf7c0b0da5032f408845b4e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macUSB/Shared/Services/USBDiscoveryRegistryProbe.swift: macUSB/Shared/Services/USBDiscoveryRegistryProbe.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in USBDiscoveryRegistryProbe.media at line 17. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-27..2026-10-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-27 20:56:13 \u002B01:00\u0027 --until=\u00272026-10-25 20:56:13 \u002B01:00\u0027 --full-history --no-merges -- macUSB/Shared/Services/USBDiscoveryRegistryProbe.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Shared/Services/USBDiscoveryRegistryProbe.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"602ced013bd13f12dbe0603efa7e05793a66c2b0c48304b07a93a657c223e9b7"}},{"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 \u0060macUSB.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cdf743670a9aca4136e4916b5418b3975233ad93c79967986b81995cbad13c"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060bundleId\u0060 spells \u0060Id\u0060 where 35 names in the project spell it \u0060ID\u0060: 35 of 36 names in project repository spell the token \u0060ID\u0060 (35 of 36; unit: names in project repository containing \u0060ID\u0060). Peers: AnalysisLogic.selectedDriveSelectionID (macUSB/Features/Analysis/AnalysisLogic.swift:64); AnalysisLogic.activeImageAnalysisRunID (macUSB/Features/Analysis/AnalysisLogic.swift:178); AnalysisLogic.handleImageAnalysisTimeout(runID) (macUSB/Features/Analysis/AnalysisLogic.swift:363); AnalysisUSBHeldPresentation.selectionID (macUSB/Features/Analysis/AnalysisUSBDiscoveryPresentation.swift:15); MacOSInstallerEntry.catalogProductID (macUSB/Features/Downloader/Logic/Discovery/MacOSDiscoveryModels.swift:25). Rename to \u0060bundleID\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/App/macUSBApp.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fc04a7bb8ed56cc4862aab0734d5f8e28676fe89b3e9162675252527209ccd"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MacOSCleanupLogic.swift \u2194 MacOSDownloaderProcessView.swift: \u0060macUSB/Features/Downloader/Logic/MacOSCleanupLogic.swift\u0060 and \u0060macUSB/Features/Downloader/UI/MacOSDownloaderProcessView.swift\u0060 change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060821949fd\u0060 Add disk image output workflow; \u00609dcb08f0\u0060 Improve downloader localization coverage and disk-space messaging; \u00602d9f4e02\u0060 Refine downloader state messaging and discovery UI behavior \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/MacOSCleanupLogic.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"344ebc6e36e5097081302a51cd5f704925e338ffbc48434f85cacd0cb0641eb9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MacOSCleanupLogic.swift \u2194 MacOSDownloaderWindowShellView.swift: \u0060macUSB/Features/Downloader/Logic/MacOSCleanupLogic.swift\u0060 and \u0060macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift\u0060 change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060c327767d\u0060 Align downloader text presentation; \u00609dcb08f0\u0060 Improve downloader localization coverage and disk-space messaging; \u00602d9f4e02\u0060 Refine downloader state messaging and discovery UI behavior \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/MacOSCleanupLogic.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae3205417238d3d78cd6042edd26195df73603e815871354291c38c8f4c566e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AnalysisLogicUsbDrives.swift \u2194 SystemAnalysisView.swift: \u0060macUSB/Features/Analysis/Logic/AnalysisLogicUsbDrives.swift\u0060 and \u0060macUSB/Features/Analysis/SystemAnalysisView.swift\u0060 change together 64% of the time (9 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u006077ba029d\u0060 Bound USB discovery and balance IOKit references; \u0060e5f96cba\u0060 Apply capacity rules to installer flows; \u00607f8f3a32\u0060 Use physical USB targets as the default picker source \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/Logic/AnalysisLogicUsbDrives.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"176f5ce0f84fc65fde6707c3c8beca3f457f193c60980cabd7b19fb626d97d85"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SystemAnalysisView.swift \u2194 USBDriveLogic.swift: \u0060macUSB/Features/Analysis/SystemAnalysisView.swift\u0060 and \u0060macUSB/Shared/Services/USBDriveLogic.swift\u0060 change together 64% of the time (7 of the 11 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 7 shared commits counted here, the most recent 3 are \u006077ba029d\u0060 Bound USB discovery and balance IOKit references; \u0060466580d3\u0060 Make macOS Option target switching immediate; \u006024157cf6\u0060 Use physical targets for macOS USB preparation \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Analysis/SystemAnalysisView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9930381bb72893ed3a3696fa8b2b0d2c2dc4da4cf16a8e1ec0fe233bded38466"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: MacOSDownloadOrchestrator.swift \u2192 MacOSDownloaderProcessView.swift, MacOSDownloaderSummaryView.swift, MacOSDownloaderWindowShellView.swift: \u0060macUSB/Features/Downloader/Logic/Download/MacOSDownloadOrchestrator.swift\u0060 changes together with 3 other files \u2014 \u0060macUSB/Features/Downloader/UI/MacOSDownloaderProcessView.swift\u0060, \u0060macUSB/Features/Downloader/UI/MacOSDownloaderSummaryView.swift\u0060, \u0060macUSB/Features/Downloader/UI/MacOSDownloaderWindowShellView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/Features/Downloader/Logic/Download/MacOSDownloadOrchestrator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66dd1c3c925f126ab03d61606cdd28fb80b144e44e620ba65a398b7647bc131"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: macUSBApp.swift \u2194 WelcomeView.swift: \u0060macUSB/App/macUSBApp.swift\u0060 and \u0060macUSB/Features/Welcome/WelcomeView.swift\u0060 change together 53% of the time (10 of the 19 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 10 shared commits counted here, the most recent 3 are \u0060320be0c9\u0060 Confirm and guard automatic welcome screen navigation; \u00606fffa694\u0060 Add optional automatic welcome screen navigation; \u0060282a2c7a\u0060 Lock language changes after workflow start \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macUSB/App/macUSBApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5ddc9a50f13149df64327a30f24033bea79f1875284a9086975309ba8fdc4c"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060CharacterSet.letters.contains(scalar) || CharacterSet.decimalDigits.contains(scalar) || scalar == \u0022 \u0022\u0060 appears character-identically in 2 files \u2014 macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendConfiguration.swift, macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendValidation.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":"macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendConfiguration.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"00153e930aeb5c571f9cbc734791522b47d798c7ed502f3b75beb85c4e5169d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ext == \u0022dmg\u0022 || ext == \u0022iso\u0022 || ext == \u0022cdr\u0022\u0060 appears character-identically in 2 files \u2014 macUSB/Features/Analysis/Logic/AnalysisLogicAnalysisFlow.swift, macUSB/Features/Analysis/Logic/macOS/AnalysisLogicMacOSLifecycle.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":"macUSB/Features/Analysis/Logic/AnalysisLogicAnalysisFlow.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f37407edc737bf76d535b4c862ecb9ad648e88de95cb57d7b85d4d050aeed0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.name.caseInsensitiveCompare(\u0022InstallAssistant.pkg\u0022) == .orderedSame || item.url.lastPathComponent.caseInsensitiveCompare(\u0022InstallAssist\u2026\u0060 appears character-identically in 2 files \u2014 macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyOrchestrator.swift, macUSB/Features/Downloader/Logic/MacOSVerificationLogic.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":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyOrchestrator.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"6480a2a1c8964061aadf82124572df76b98cd6616ed13afcbc7bcf692ef68f98"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.name.caseInsensitiveCompare(\u0022InstallAssistantAuto.pkg\u0022) == .orderedSame || item.url.lastPathComponent.caseInsensitiveCompare(\u0022InstallAs\u2026\u0060 appears character-identically in 3 files \u2014 macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyOrchestrator.swift, macUSB/Features/Downloader/Logic/Download/MacOSDownloadNamingPolicy.swift, macUSB/Features/Downloader/Logic/MacOSVerificationLogic.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":"macUSB/Features/Downloader/Logic/Assembly/MacOSAssemblyOrchestrator.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6eb778ea4913cf96f83832ef445bd5f6f65785fd5766e3b538c854df80b49cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lowered.contains(\u0022at least one volume could not be unmounted\u0022) || lowered.contains(\u0022unmount was dissented by pid\u0022) || lowered.contains(\u0022reso\u2026\u0060 appears character-identically in 2 files \u2014 macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift, macUSBHelper/Workflow/Windows/HelperWorkflowWindowsUnmountLogic.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":"macUSBHelper/Workflow/Linux/HelperWorkflowLinuxUnmountLogic.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbfbbecae5f4d99b81b85fafe7d30fd8562a78e1d835571297e47daae002738"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060skipHardwareRequirements || useMacLanguageAndRegion || preventDeviceEncryption || disableDataCollection || skipWirelessSetup || skipMicrosof\u2026\u0060 appears character-identically in 2 files \u2014 macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendConfiguration.swift, macUSBHelper/Workflow/Windows/Autounattend/HelperWorkflowWindowsAutounattendConfiguration.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":"macUSB/Features/Installation/Windows/Autounattend/CreatorWindowsAutounattendConfiguration.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f291457e9b5361ab316cb8a515846e3c1cd47058b712a9b625ca10189463c41d"}},{"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":"macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d5db2132440e477ec5b384be719633945ca86ac7337141979c30ed75e87737"}},{"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":"macUSBHelper/Workflow/HelperWorkflowDiskResolution.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff727ec47e364183fc709b93ec5712838d91e2ac5a5dbe0d6f3a6f847e985504"}},{"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":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c119bc1a4bf6ff35385822a7f24b5a990f64bd4c532f21e01c9a7fe3bef4de"}},{"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":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsSourceLogic.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c90d8ef9f5e4f538d3079aec0294bd91fdca73d3fdc6a9e51aad469dd285db1"}},{"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":"macUSBHelper/Workflow/Windows/HelperWorkflowWindowsStages.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"554d58b3dc02aebd704e430bc9e6fc00ce9f4de251183c00a223c67580c2f32b"}},{"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":"macUSB/Shared/Services/Windows/WindowsToolchainProbeService.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4503968327e03b2f879877efc915aa607777bacbcf436de4d08a23551a1a8e2"}},{"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":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16a5ecafd075e5251b10a0fb58be2d9b8875521913c7f3d4b615ec1dc017819"}},{"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":"macUSB/Features/Installation/CreatorHelperLogic.swift"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"14586c75d96db8597d6d80f5cf7047e11428bed5b5049815ad4d3cb4cac8253f"}},{"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":"macUSB/Features/Downloader/Logic/Download/MacOSDownloadRetry.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1602eb0be093482979c42e4c3f9d24ec552a88a2df4c38d7fbd32fe3c2ba68b8"}}],"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-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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":"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":0,"secretScannerRunsExcluded":0}}}]}